I have specific list of names (ABC, BCD, ......., JKL), Then separately I am maintain the another location with those list of name plus another separate words (Like - Off, ON, .... etc)
So I need count then no of name mention only in that specific list.
You can get my example in below G sheet, also Feel Free to contact me for any clarification.
https://docs.google.com/spreadsheets/d/1bKA1KOs36ZDfR6VY18Md260MaFJWvO8uY3zto8jscOE/edit?usp=sharing
Indika
Best regards
Indika
try:
=INDEX(BYROW(XLOOKUP(D2:O11, A2:A, IFERROR(A2:A/0, 1),,,1),
LAMBDA(x, IFERROR(1/(1/SUM(x))))))
Here's a possible solution (I placed it in cell R2):
=ArrayFormula(BYROW(D2:O,LAMBDA(r,IF(COUNTBLANK(r)=COLUMNS(r),,
SUM(--REGEXMATCH(r,"\b"&TEXTJOIN("\b|\b",1,A2:A11)&"\b"))))))
try:
=INDEX(BYROW(IF(""=IFNA(VLOOKUP(D2:O11, A2:A, 1, )), 0, 1),
LAMBDA(x, IFERROR(1/(1/SUM(x))))))
In Office 365 you could use:
=BYROW(D2:O11,LAMBDA(x,SUM(--(ISNUMBER(MATCH(x,$A$2:$A$11,0))))))
In older versions:
=SUM(--(ISNUMBER(MATCH(D2:O2,$A$2:$A$11,0))))
Related
I'll try to explain this the best i can.
I've got a database that hardly ever changes on 1 tab and i've got a dynamic table on other tab which is generated with data from the web.
I am trying to set up a formula that changes the outcome based on the colors i selected.
i can't link the original sheet but i tried to put together a small test sheet to make it more clear
https://docs.google.com/spreadsheets/d/114DxB1vqdH9MHuE5jr-iR1WfUdjMk4sY0dtvkCN80Y8/edit?usp=sharing
The linked sheet discribes what i want to get.
i tried allot of formulas and the closest i got gave me only the first result and it was combination of filter and vlookup but i accidently deleted that and can't really reproduce it...
added formula to your sheet. Please test it out:
=ARRAYFORMULA(QUERY(LAMBDA(ax,{PROPER(INDEX(ax,,1)),IFERROR(SPLIT(VLOOKUP(INDEX(ax,,2),A:A&"🐠"&B:B,1,),"🐠"))})(QUERY(SPLIT(FLATTEN(D3:D&"|"&E3:E&"🐠"&TRANSPOSE(G3:G10)),"|",0,0),"Select * Where Col1!=''")),"Select * Where Col2!=''"))
-
Another option it stacks up different queries with REDUCE, also gives you a message if product is not found in that colour:
=REDUCE({A2:B2,"colour"},SEQUENCE(COUNTA(E3:E)),LAMBDA(a,v,{a; IFERROR (QUERY(A3:B100,"SELECT '"&INDEX(D3:D,v)&"',A,B where A = '"&INDEX(E3:E,v)&"' and B matches '"&JOIN("|",FILTER(G3:G,G3:G<>""))&"' label '"&INDEX(D3:D,v)&"' ''",),{INDEX(D3:D,v),INDEX(E3:E,v),"not found in any colour"})}))
try:
=INDEX(QUERY({VLOOKUP(A3:A10, {E3:E10, D3:D10}, 2, ), A3:B10},
"where Col3 matches '"&TEXTJOIN("|", 1, G3:G10)&"'", ))
I have several tables that represent rooms in our office, each table includes a column of few cells contain workers names and a device named like the following "Device A", "device B" etc.
Table 1:
HR G1:G6
George
Ema
Benjamin
Johanna
Device A
Table 2:
Dev H1:H6
Josh
Jenna
Tom
Jessica
Device B
I want to summarize all their names exclude the device to a cell on a new table.
Table 3:
Room
NAME A1:B3
HR
George, Ema, Benjamin, Johanna
Dev
Josh, Jenna, Tom, Jessica
The issue is that I can change the devices order so the names on the table can change often.
I want to use TEXTJOIN (or other tool) to combine all cells unless the cell includes "Device" in it, without specify exactly which one.
I tried to use REGEXMATCH, VLOOKUP, SEARCH, COUNTIF but they all return a list, so its not working well inside TEXTJOIN.
I've tried to use FILTER too but wildcard doesn't work there so I must provide the full name of the device.
Please your advice,
Thanks in advance!
You should be able to do something like
=textjoin(", ", 1, filter(G1:G6, not(regexmatch(G1:G6, "Device"))))
or
=textjoin(", ", 1, filter(G1:G6, left(G1:G6, 6) <> "Device"))
(Include the sheet name if you want the results to appear on a different tab).
I have a Google sheet - table 1 below and all the data is given. Table 1 data is people(VenderNo) claim that they want to join event with what data(EventStartDate) and what booth number(BoothNo). So the data is duplicated because people update it with new line and never allowd to delete or update the existing record(table 1).
Input data
And I also have a Google sheet - table 2 below and only EventStartDate and BoothNo are given. All I want to do is the result like table 2's VenderNo. The purpose of table 2 is trying to summarize which vendor is eventually joining the event with latest booth number.
Ideal result like blow:
Output data
May I know how to write this formula in table 2 column C (VendorNo) with autofill function like ={ "VendorNo"; unique(General!A2:A) } without hand dragging the formula?
Any thoughts and thank you.
P.S.: I am sorry I couldn't post image above directly because I don't have enough reputation.
Revision 1 for Mike Result: (Yellow highlight mismatched, since v001 should not join the same event date with 2 booths)
Revision 2 for Mike Result: (Yellow highlight mismatched, since v004 added to 2022-11-11 for BoothNo A01. BoothNo C01 doesn't erase as expected, Because same vendor(VendorNo) should only be with same date( EventStartDate) & latest booth selection(BoothNo))
Try
={"vendor";arrayformula(if(
iferror(vlookup(E2:E&"~"&F2:F,{B2:B&"~"&C2:C,A2:A,C2:C},3,0))
=
iferror(vlookup(vlookup(E2:E&"~"&F2:F,{B2:B&"~"&C2:C,A2:A},2,0)&"~"&E2:E,({unique({A2:A&"~"&B2:B}),(vlookup(unique({A2:A&"~"&B2:B}),SORT({A2:A&"~"&B2:B,C2:C,row(A2:A)},3,0),2,0))}),2,0),""),
iferror(vlookup(E2:E&"~"&F2:F,{B2:B&"~"&C2:C,A2:A},2,0)),""
))}
You don't need a Formula for that. Just select your columns and go to "Data" ->"Sort data"->"advanced sort settings" and then sort by column "EventStartDate" and secondly add sort by another column and add "BoothNo".
In the end you can run a data clean up to remove duplicates. You find it also under data.
to get the latest update from your table 1 you can use:
=SORTN(SORT(A2:C, B2:B, 0), 9^9, 2, 1, 1)
for your table 2 try:
={"VN"; INDEX(IFNA(VLOOKUP(E2:E&F2:F,
SORTN(SORT({B2:B&C2:C, A2:C}, B2:B, 0), 9^9, 2, 2, 1), 2, 0)))}
In Google Sheets, I'm trying to indicate whether each cell in a specific column (the "Target Column") contains any of the words listed in a group of cells (the "Word Warehouse"), organized into different "Categories". If the word appears in the Word Warehouse, I would like the cell to spit out the category that it's listed under, e..
See attached sheet here: https://docs.google.com/spreadsheets/d/10jiicpOpplaURrF0UtTi9HM2TFP04-tinynpnFef2mE/edit#gid=0
Thanks in advance!
Try:
=INDEX($2:$2,1,MAX((ISNUMBER(SEARCH(IF(LEN($D$3:$F$7),$D$3:$F$7),A3))*COLUMN($D$3:$F$7))))
Alternatively, you can also try
=ArrayFormula(iferror(VLOOKUP(regexextract(proper(A2:A), textjoin("|", 1, D2:F)), split(flatten(D2:F&"_"&D1:F1),"_"), 2, 0)))
This formula allows for an array output, so dragging down is not necessary.
I am trying to list all the locations my teammates look after. I need help with my formula.
=INDEX($B$2:$B$175,MATCH(0,IF($K$2=$D$2:$D$175,COUNTIF($L$2:$L2,$B$2:$B$175),""),0))
Some have 1 location and others have as much as 34.
What I want to accomplish is that when I select, in this example Jose Y, it will show all 34 properties that he looks out for.
based on your uploaded image use:
=JOIN(", ", FILTER(A:A, C:C=E2))
or not joined:
=QUERY(A:C, "select A where C = '"&E2&"'", 0)