I have a google spreadsheet that I am trying to manipulate data on. I have a Master spreadsheet, and once a week, it is duplicated and renamed, by the week. An example of this would be Sept 8-12 2014 and then the next would be Sept 13-21 2014. I have the sheet set to do a sum of each row, and put the total in the second last column. In the last column, I would like to do a grand running total for the year.
So, if for example my column that totalled everything was AC, and the last one was AD, is there a way that I can set my spreadsheet to pull the data from AD of the last sheet, and then continuing summing up the total on the new current sheet after the Master spreadsheet is duplicated and renamed each week?
Thank you,
Paul
Yes, you can reference data from other sheets. You may have to change what sheet it references every time you duplicate though.
Alternatively, with appscript, you can use the getSheets() method to get every sheet. Then you can pull whatever necessary cell data from each sheet.
Related
I have 2 google spreadsheet
a membership database // with 8 column of data for 1 record. Currently there are around 3000 record in the sheet and it is growing at a rate of around 1500 records per month. New members enter these info via a google form. And then I wrote some apps script to assign membership number to each record in numeric order e.g. KS000001--->KS000002 with onSubmit trigger.
a sales record // which import the entire membership database with function importrange and record sales.
Whenever I enter a sales record, I need to check if he is a registered member in real time and match the sales record with the respective membership number.
Sometimes the importrange just doesnt work and shows #REF
This is the function I use
=ImportRange("xxxxsheetidxxxxxx","Membership DB!A1:I5000")
Is there a more reliable way to do this? I need this in real time for today newly joined member.
The idea I have in mind is to cut the database into two parts and update it everynight.
Method:
Copy the entire membership database to the sales record at 12:00am. e.g. record (KS000001-KS003000). Use importrange to import the newly joined member during the day e.g. record (KS003001 - latest). Both array are in the same column A:I for easier look up.
Is there any better alternatives?
Thank you
I have created a script that opens a new spreadsheet every month (on the first day of the month) and enters the necessary data into that sheet. Apart from this sheet, I also have a changeLog sheet that counts how many lines have been entered into the monthly sheets.
Now, this script of mine, whenever it's opening a new sheet, it is putting it in the first place, moving all the other sheets to the right. changeLog sheet is at the very end of the row and will eventually leave the preview. Is there a way to lock the changeLog to the very left and keep it there?
When inserting sheet, use insertSheet(index) or insertSheet(sheetName,index) with a index greater than or equal to 1.
I have an Auto Update data which gets updated on Daily Basis based on Date , but it has one issue
basically when say Data get updated for 2nd August , Data of 1st August gets cleared as I have written formula based on date conditions, in other words we can have only values only in one column based on the date, so I want the data of the current and previous days to be pasted as values in another sheet so that I can track and do data manipulation when it comes to Month end .
In short, I need admins at my work to be able to punch in whether someone is on leave or not into a sheet that informs other sheets to create daily staffing lineups all based in Google Sheets. Right now, I have them deleting whole columns of values and keeping track of what day it is every day. Obviously this is open to error and is a task I'd like to eliminate.
Essentially, I have 7 cell-wide table with the first one being =today() and each one in that row being =today()+1 through =today()+6. What I want to see happen is for the values (underneath) that correspond to that day move (to the left) as the date updates. Furthermore, icing on the cake, I need the new =today()+6 to automatically generate with "no" in each cell under that newly generated date (column H in the below example).
For example, in my submitted sheet, today Karen is OFF in column B. However, in two days time she'll be on VAC which, by that time, should be column B.
I appreciate any help.
Schedule
Here's a link to the sample sheet
Your task can be done if you change the way your managers enter data. If they fill out the data in a table like this
then your master table would look like this
you need to clear the contents in the range B5:H9 and copy the following formula into cell B5
=ArrayFormula(IFNA(VLOOKUP(TRUE&TRUE&$A5:$A,{(Sheet2! $A:$A<=B3)&(Sheet2!$B:$B>=B3)&Sheet2!$C:$C,Sheet2!$D:$D},2,FALSE), "no"))
Then you need to extend this formula to cell B9
I have a Google Sheets that updates automatically throughout every day but sometimes gets stopped up. I want to store and update the time and date of the last time any cell in the first column is changed in a single cell.
For example:
1. I open a sheet.
2. The sheet automatically pulls and updates a .csv file from a server.
3. The cells are regenerated and updated.
4. When any cell in the first column is changed
5. Update the time of the last edit in a cell of another sheet.
I use this :
DocsList.getFileById("myID_Spreadsheet").getLastUpdated()