I have a Google Sheet in which I mirror data that meets specific criteria from the main tab to various other tabs using =query and it works! But when I try to use the same exact formula in the same exact sheet in Excel, I return a #NAME? error. Is there an Excel-friendly formula I can use to do the same thing?
The sheet is comprised of a main tab called LeadList which, just as it sounds, is a list of a bunch of leads for potential sales. Column G is a Y/N (yes/no) column indicating if the item was sold. If a cell in Column G says Y, I want that whole row to show up on the next tab, titled SOLD. This was achieved in Sheets using the following formula pasted into the first available cell in the SOLD tab:
=query(LeadList!A5:J,"Select * Where G='Y'",0)
Here is a picture of the spreadsheet in Sheets
Thank you
Google sheets and Excel are not the same product. Google sheets has functions that don't work in Excel and vice versa.
Excel does not have an equivalent to the Google sheets "query" function.
Related
To explain my terrible title...
Lets say i have an excel (well its a google sheets file, but they are similar, except when they arent XD). This file has 200 tabs with lets say client names as their titles. and i also have a summary sheet with a table with much general info and in the table i have a column with the exact same names to those sheets (client names).
as i am trying to automate and add some functionality to that summary sheet (AND HAVE EXTRA OTHER SHEETS take info from the summary sheet) i want to find a way to use the names of clients from that column in 'summary' to have formulas go pick up specific cells from said sheets.
So:
1* sheet 'summary'
200*sheets "clients-names"
in 'summary' there is a table, with column with clients names (exact same text as the names of the sheets).
lets say i want a formula that in sheet 'summary', in cell A2 would pick the name of a sheet from the table, lets say from cell B2, and then it would bring up the information from the relevant sheet (named in cell B2) from lets say cell C2.
i can create manually connections for ALL the sheets and cells needed, but it would take a lot of time and the problem is that new sheets will be added (and the info to table) and some are gonna be deleted... and biggest problem is the file is gonna be used by sb else, so i want to set it uip to work and not have them "work on it" as they dont have much experience with spreadsheets (well way less than me)
I just had to input this in cell A1 in my 'summary' sheet:
=INDIRECT("'"&B2&"'!C2")
I have an Excel file with three sheets, with data in each sheet organised in the same manner - headers are the same.
Without using VBA (as macros are not allowed by my organisation's security policy), I would like to find all rows from all sheets that meet a simple column value check and show those rows in a separate sheet.
For example:
Sheet2 has,
Sheet3 has,
Sheet4 has,
I want sheet1 to have all rows from sheets 2-4 with Header7 column value = "Hit",
What I have achieved so far is, using an array formula I could get all the "hits" from one sheet in sheet1.
The formula for A2 to A6 in sheet1 is as below, with the ROW(1:1) changing to ROW(2,2) and so on from A3 onwards. Columns B to G use the same formula with range adjusted accordingly.
{=IFERROR(INDEX(Sheet4!$A$2:$A$6,SMALL(IF(Sheet4!$G$2:$G$6="Hit",ROW(Sheet4!$A$2:$A$6)),ROW(1:1))-1,1),"")}
What this does is a bit complicated. In short, it creates an array of either FALSE or row numbers based on Hit and then finds the index of the non-false values.
Now, I can solve the last part of combining the idea to include all sheets in two ways (I think).
Have another temporary sheet (sheet5) with all rows from sheets 2 to 4. Update my formula in sheet1 to use sheet5 instead of 4.
Have the range Sheet4!A2:A6 etc changed to include a 3D reference like Sheet2:Sheet4!A2:A6. But this doesn't work, and the documentation for 3D reference doesn't mention that it works with array functions.
PS: I don't have Power Query, which seemed to have an easy way to create a new sheet with all rows from multiple sheets, because I work on a Mac (MS Excel for Mac).
I work in office Excel online at it seems it is different than "regular" office. I have a standard case of two excel sheets that contain two matching columns both A columns (starting with 2 row, first is title of row). In first sheet I need to add second column value from second sheet where values from A match. This seems easy but, for some reason in online office this simple formula does not work:
=VLOOKUP(A2,Sheet2!$A$2:$B$4170,2,0)
this gives just N/A result although matching value in Sheet2 exists.
Column is in both sheets A, with title sku in row 1. Second sheet contains additional data in column 2 (B) which I want to put in F column of Sheet1 using this formula.
Can you tell me why this doesn't work? IS office.com different in term of formulas?
Also, when I pull down this formula this A starting number in "Sheet2!$A$THISNUMBER" gets bigger, like
=VLOOKUP(A3,Sheet2!$A$3:$B$4170,2,0)
I have two excel sheets with the similar header columns and dataset is similar however some times there are some miss-match with their values which I would like to compare with excel formulas or lookup or built in tool. Please advise
On Sheet1 you can place in column D (example is for row 2 to highlight the row with a mismatch) the following formula:
=IFERROR(VLOOKUP(Sheet1!A2,Sheet2!A:C,3,FALSE)=Sheet1!C2,FALSE)
This will output TRUE or FALSE depending if the email matches for the unique id. You can adapt using this either for a more complex formula or for conditional formatting.
If you are just looking to compare two spreadsheets, Windows comes with a function called Spreadsheet Compare. Just do a search in the task bar and it should come up. It is great if you are looking to compare two separate workbooks. If they are in the same workbook you can copy one into a new workbook then compare them. It will show every discrepancy.
i have a specific problem to solve. I dont know how to do it but want to do it without macro or worse without VB script.
I will explain what i have and then what i want to do.
I have (plan to have) many sheets in worksheet. first sheet is some intro sheet, where i have also one column containing name of sheets in every cell. i am using formula "=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,256)" so i can change name of sheet and it will change also name of sheet in intro sheet cell.
so for imagination i have column N and there i have sheet1, under that sheet2 and so on...
Each of sheets have the same construction and same formulas on the same place, so i have each sheet for every goods.
And now what i would like to have. I want to add a formula into intro sheet where i would summarize SUM (add) or something like that. It would take every value form each sheet on the same place on each sheet. so the formula would look something like this: "=sheet1!C4 + sheet2!C4 + sheet3!C4 + .... + 'any sheet'!C4" but i dont know how many sheets i will have and the number will sometimes change and i dont want to edit formula because i plan to have more this kind of dynamic formulas.
i will just add another sheet into column N and every formula using this excel type for cycle would take and recount formula using this dynamic array. i hope you understand what i want. my problem is much more complicated but when i describe it more into detials you would loose the point of my interest.
thanks for any suggestions
edit: but if there is only a solution using VBA script, i will have to use it. i dont want to change formula everytime i add another sheet into worksheet
What you describe is a 3D formula. You can do something like
=SUM(Sheet1:Sheet4!A1)
Excel will sum cell A1 in all sheets from Sheet1 to Sheet4 and any sheets that are between these two. You can insert new sheets and they don't have to be named SheetX.
In order to manage the 3D formulas more efficiently, you could use two sheets like bookends before and after the sheets you want to include in the formula: Insert two sheets called "First" and "Last" and ensure that all sheets you want to sum are arranged between these two sheets. Then on your intro sheet use
=SUM(First:Last!A1)
You can hide the "First" and "Last" sheets and only unhide them when you need to check your sheet arrangements for your formulas.
You can insert new sheets and make sure that they are located between your bookend sheets. Drag sheets in and out between the bookends to include or exclude them from the 3D formula.