Newbie help - with vlookup - google-sheets-formula

I am new to Google Sheets and need some help in validating data from one sheet into another. I have a list of item on other sheets and just want to validate on my master sheet whether that item is on each of my two other sheets.
On my master sheet (Delivered List), I have a list of approx 5k items and want to check to see which items are on my two other lists, Live Yes and Live No.
Here is the Delivered List sheet.
!Delivered List](https://i.stack.imgur.com/ffyp4.png)
In column K, I need a formula to check Live Yes to see which items in column D are on that sheet.
In column L, check Live No list for same.
Here are the screenshots of Live Yes and Live No.
I hope this is clear enough and if anyone can help me with this.
thanks tremendously!
AJ
I tried copying a similar formula from another example, but couldn't get it to work.

The syntax for google sheets VLOOKUP is VLOOKUP(search_key, range, index, [is_sorted]). So in this case, the key you're looking for is the Item column. And you're looking for it in the Item # column on the delivered list sheet.
I don't have sheets up right now, but my guess is that, for example, the first cell of "On Delivered List" for "Live Yes" would be =VLOOKUP(C3,'Delivered List'!D:D,FALSE).

Try put this in K3 of your 'Delivered List' sheet.
This should do what you want.
=ArrayFormula(LAMBDA(LOOKUPVALUE,
IF(LOOKUPVALUE="","",
SPLIT(
BYROW(LOOKUPVALUE,LAMBDA(ITEM,
XLOOKUP(ITEM,'Live Yes'!$C:$C,'Live Yes'!$C:$C,"UNFOUND")<>"UNFOUND"&","&
XLOOKUP(ITEM,'Live No'!$C:$C,'Live No'!$C:$C,"UNFOUND")<>"UNFOUND"
)),","
)
)
)('Delivered List'!$D$3:$D))

Related

How use filter formula in Google Sheet with data contains #N/A

For my example, I have 2 columns A,B in Google Sheet
Column A with list of Stocks symbols like AAPL, IBM, etc....
Column B with simple formula of GOOGLEFINANCE(A2,"price")
Sometimes GOOGLEFINANCE returns error and the cells display #N/A. But this is not my issue...
I would like using filter in column B which show all symbols with prices greater than 100 or #N/A
I prefer not using extra column to achieve that
I'm struggling with it and still didn't find the way to get my result
Just note, my issue isn't GOOGLEFINANCE, It's like example to get the #N/A value
My tought was using filter with formula like: =OR(ISNA(B:B), B:B>100)
But it seems it's ignore the #N/A and doesn't show it
Link for example
In my question I tried the formula "=OR(ISNA(B:B), B:B>100)"
But I must know that if Google Sheets "see" cells with N/A on this column - The result is automatically N/A, even if I put the ISNA in the first condition
So to solve it I used a formula like this:
=IF(ISERROR(B:B), TRUE, B:B>100)
I updated the sheet if someone wants to check it

Data Validation Dropdown With Filtered Data Range

I'd like to use data in column D
For a drop down in another sheet (data validation)
Only items where column A is less than 9
I tried List from a range
But it looks like you cannot put a formula in the range box
e.g.
=FILTER(GrpsTY!D2:D, GrpsTY!A2:A < 9)
Any suggestions?
formulas are not supported in data validation. the best course of action is to create a helper column with your filtered entries and then feed it to data validation.
Maybe they have added the functionality since the most recent answer (last July, 2020)?
I'm trying to figure out a formula that will let me validate data using a filtered list, and stumbled onto this:
This image shows that Google Sheets supports data validation using a custom formula
For Criteria, select "Custom formula is" instead of the default, "List from a range".
Hope this helps anyone who comes after me :)

Excel 2017 Formula - Average data by month, while being filterable

I'm not a VBA coder, and I would prefer an excel formula if possible, the easiest solution will be the best one.
Test workbook screenshot
As you can see, I have plenty of columns, which are filterable.
I am attempting to retrieve an average of Column L, but I want the data to be calculated for the correct month in G3:R3.
The resulting calculation needs to be recalculated when filtered, between customers, sites, status, job type etc.
I am referencing the resulting cells in another sheet, which gives an idea of trends I can glance at, as such filtering by month in each sheet, is not an option.
=AVERAGE(IF(MONTH(E9:E1833)=1,(J9:J1833)))
This one does not update with the filtered data.
=SUM(IF(MONTH(E9:E1833)=1,J9:J1833,0)) /SUM(IF(MONTH(E9:E1833)=1,1))
This one does not update with the filtered data.
I have tried 5 different SUBTOTAL formulas, some with OFFSET, none of these produce the same result I get when checking manually.
Each worksheet has over 1,500 hundred rows, the largest is 29148 rows. The data goes back as far as 2005.
Please can someone help me find a solution?
One possible solution is to create a helper column which returns 1 if the row is visible and returns 0 if the row is invisible (or blank). This allows a bit more freedom in your formulas.
For example, if you want to create a helper column in column X, type this into cell X9 and drag down:
= SUBTOTAL(103,A9)
Now you can create a custom average formula, for example:
= SUMPRODUCT((MONTH(E9:E1833)=1)*(X9:X1833)*(J9:J1833))/
SUMPRODUCT((MONTH(E9:E1833)=1)*(X9:X1833))
Not exactly pretty but it gets the job done. (Note this is an array formula, so you must press Ctrl+Shift+Enter on your keyboard instead of just Enter after typing this formula.)
With even more helper columns you could avoid SUMPRODUCT altogether and just accomplish this by doing a single AVERAGEIFS.
For example if you type into cell Y9 and drag down:
= MONTH(E9)
Then your formula could be:
= AVERAGEIFS(J9:J1833,X9:X1833,1,Y9:Y1833,1)
There isn't a clean way to do this without at least one helper function (if you want to avoid VBA).

Filter Data for Each Row in a Column

EVE Online Manufacturing Spreadsheet
In Batch!F3:G, I'm attempting to break down the data input from columns B3:C to their components (and eventually materials/minerals in I3:J) by using filter to compare results in Engine!P:R. Multiplied of course by the total number of each finished product I need.
I've been trying to figure out ways to arrayformula this together, and even tried quite a few query functions without success. The best I've been able to come up with is to string the actual formula together, appending them with {}, but this gets bloated quickly. I need this to be open ended because I have a tendency to build a lot of things at once. Any help would be appreciated, even just point me in the right direction!
Well, based on my limited knowledge about google sheet, I can only think of one way to do this automatically.
Here's a sheet I constructed based on your sheet.
https://docs.google.com/spreadsheets/d/1AfX8o05gUGPiN5S90w4o0yxuIYjsJRaXsaYUFTJuEPo/edit?usp=sharing
First, on Engine sheet, add one more column which will give you the number of materials required for that part, which is looked up in the PART LIST of BATCH sheet. For this I use VLOOKUP, as you see in D2.
Then on BATCH sheet, query the materials that VLOOKUP return positive, multiply it by the amount of item and then sum them.
This is done by the QUERY used in F3
This method only if you don't have duplicate item in your PART LIST, due to the way VLOOKUP work.
Of course if you want to break the material list further, you can do the same approach..

Use both arrayformula and filter in google sheets

I have a spreadsheet document with two sheets. Columns A is the name of a person. Rest of columns are informations about the person.
Using arrayformula() I "copied" column A of sheet1 to column A of sheet2 (so it updates automatically as soon as I add someone in the list).
All columns of sheet1 have filters so I can sort easily.
In the 2nd sheet I have other infos about the persons.
Now my problem is that when I sort from A-Z for instance, all info in sheet1 are sorted aswell. But in sheet2 they are all messed up.
I search for workarounds but didn't find any yet. I continue searching but I hope someone can help me here :)
Thanks for your answers !
(I can prepare a special sheet to show you my problem if you want)
Here is my doc so you can see what's wrong :
https://docs.google.com/spreadsheets/d/1YyVS-hRQ1s1H8hY_D8sr9_judYuGMtmhS1Algp-ESus/edit#gid=0

Resources