I'm using the following formula to pull in data from the Purchases sheet tab on Google Sheets within our spreadsheet.
=SUMIFS(PURCHASES!$H$2:$H$2000,PURCHASES!$F$2:$F$2000,"101")
What's happening though is every entry is causing the "2" and the "2000" to increase by 1. I don't want that, because data could then be missed (and it is). Any ideas?
I really need help. Thank you so much in advance!
We cannot know exactly what is going on, because we can't see your sheet. But two common ways to fix the issue are these:
1.) Use INDIRECT for your references:
=SUMIFS(INDIRECT("PURCHASES!H2:H2000"),INDIRECT("PURCHASES!F2:F2000"),"101")
2.) Include the entire column as the reference:
=SUMIFS(PURCHASES!$H:$H,PURCHASES!$F:$F,"101")
There are other options as well, but they'd require our being able to view your sheet via a shared link.
Related
Unfortunately I don't know how to source this and was wondering if someone could show me how. I am trying to learn hear so the correct answer is great, but the "How to get the answer" is more important to me.
I am using google sheets, and looking to bring in a table or data point from a website. I know =importhtml works for this but I don't know how to tell it what to get, I just keep getting people giving me the answers instead of the how too.
The current one I am looking for is the website "https://www.marketbeat.com/stocks/NASDAQ/TSLA/earnings/" Using TSLA as the example stock. I am looking to bring in the table that has all the earnings dates. The header is "TESLA (NASDAQ:TSLA) EARNINGS HISTORY BY QUARTER". I am just looking for all the dates in that table, but if it is easier to bring in the whole table I'll do that instead. But I know these websites update and that can change how the =importhtml works, so I would like to be able to fix it myself.
Also I am on a Mac
Thanks for any help.
=index(IMPORTHTML("https://www.marketbeat.com/stocks/NASDAQ/TSLA/earnings/","table",2),,1)
"2" is the table index for the one you are looking for and "1" is the column that you need.
Delete 1 and you will get the whole table.
=index(IMPORTHTML("https://www.marketbeat.com/stocks/NASDAQ/TSLA/earnings/","table",2))
Not sure if anyone knows how to do this but could really do with your help,
I have a google sheet that contains 4 or 5 sheets at the moment and that number will increase as we go on,
I have a fantastic piece of code I found that can pull in the data from a Google Sheet Tab using the URL,
however it only does the one tab,
so I was wondering if anyone knows a way to create a list of all the tabs in a google sheets URL's
here is a URL to the first sheet
https://docs.google.com/spreadsheets/d/1G-2PJHClHmI0hrYsV1QxNDzyXG0Kze0IIxzb_n3n6oQ/edit#gid=303111374
so I need a way to go to this then import the URLs for all other sheets
please help if you can, any ideas would be great, also if you have a better way to pull all sheets into excel I'm all ears.
I am trying to find a way to link several google forms to one google sheet without separate tabs. I am creating a database so I want different employees to be responsible for different sections of the same spreadsheet.
You need to use "IMPORTRANGE". I had to do that recently. https://support.google.com/docs/answer/3093340?hl=en You have to tell the receiving sheet what range of the feeder sheets to import and then give permission.The trick is, if someone adds columns to a feeder sheet, you have to make sure the data is not "overlapping" in the receiving sheet. Otherwise, you'll get an error.
I have two google sheets. In one I have created a function and want to put it into the other. In the first sheet it works great and has no issues, in the second sheet it seems to automatically insert the "continue(1,2,) etc.
The code I have, which works in the first sheet is:
=SPLIT(ADDTOTAL(SORT('REPORT LOOKUP'!F1:F35)),",")
(Addtotal is a custom script) but in the second sheet where it seems to autoinsert the "continue" it has duplicates and additional columns.
Anyone know what the issue woudl be, how I can turn off the continue if I need to?
Thanks
Sigh- much pain could have been avoided if I had checked dates the sheets were created. The difference is that the one sheet is a new google doc, the other old. The new sheets do not behave the same way as the old, they no longer use the "continue" function but just post the data.
Hello everyone I am attempting to modify a script that I found in this post (Archiving in Google Spreadsheets with Date Using Apps Script). The goal is to set it up on a time trigger/button to a specific range of cells into a sheet within the same workbook. When it is archived it should overwrite the previously archived data within the range of cells on the "archive" sheet. I have played with this script with this suggested script from this post and removed the "delete" and "priorities" components of the action, but am still having problems getting it to simply overwrite what is already there. I will continue to work with it withing my limited knowledge as I continue to learn, but would greatly appreciate any help or tips. Or if their is a preexisting code that would serve the purpose that I have missed I would love to hear about it.
Thank you for any insight you can provide and for all the help in the past.
*and thanks to Jad and the User1786546 for the original posting.
I had a quick look at the script post.
If you wanted it to delete the archive data before writing to it, you might need to clear the contents of the sheet first before writing the data.
targetsheet.clearContent();
This will clear the whole target sheet, (the target sheet is a variable in the script you linked to, this name can be changed), including column headers.
If this is undesirable, then you may wish to use
getRange().clearContent();
Please see this link for more info.
https://developers.google.com/apps-script/reference/spreadsheet/range#clearContent()
If you still need further help, try sharing a dummy spreadsheet, with realistic data and sheets.