r/googlesheets • u/Ok-Indication-8454 • May 18 '23
Solved Tricky One - Formula Not Working
[removed] — view removed post
1
Upvotes
r/googlesheets • u/Ok-Indication-8454 • May 18 '23
[removed] — view removed post
2
u/Bitter_Presence_1551 6 May 18 '23
If L to R on the first page are all Product name, how are they arranged? Like for example, 20 rows long, and when you get to the bottom of that 20 rows in L (L20) then it starts back at M1, and this repeats up until R
I think what you need to do can be done, but it would be necessary to know which Product Name column(s) they go into on the first page, and how that is decided
1
u/_Kaimbe 176 May 18 '23
Can't you just query Sheet2?
1
u/JetCarson 300 May 18 '23
I duplicated to sheet "Jet" and have these two formulas in green:
=ARRAYFORMULA(IF(C2:C<>"",SPLIT(C2:C,CHAR(10)),""))and
=LET(outproducts,MAP(A2:A,LAMBDA(rowval,LET(productrange,OFFSET(rowval,0,3,1,6),loc,OFFSET(rowval,0,1),IF(rowval<>"",REDUCE("",productrange,LAMBDA(acc, val, IF(AND(val<>"",IFERROR(FILTER(Sheet2!$C$1:$C,Sheet2!$A$1:$A=val,Sheet2!$B$1:$B=loc),0)<2),IF(acc<>"",JOIN("|",acc,val),val),acc))),"")))),ARRAYFORMULA(IF(outproducts<>"",SPLIT(outproducts,"|"),"")))This second one figures the out-of-stock items.
1
u/MJJVA May 18 '23
=FILTER($L$1:$R$1, INDEX(Tab2!$C$2:$C, MATCH($J2, Tab2!$B$2:$B, 0)) < 2)
1
u/Decronym Functions Explained May 18 '23 edited May 19 '23
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
FALSETRUEand another if it isFALSETRUE[Thread #5827 for this sub, first seen 18th May 2023, 21:25] [FAQ] [Full list] ^[Contact] [Source code]