Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

multiple lines lookup in google sheets

I have a sheet called SLA and another sheet as Worksheet

the SLA has a unique entry of Product IDs but the worksheet may have multiple entries of the same Product ID

for example:
SLA-

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Product ID Target
ABC1 30
DEF2 30
567V 30

Worksheet needs to update the Target column but only at the first entry of the Product ID-

Product ID Target
ABC1 30
ABC1
ABC1
ABC1
DEF2 30
DEF2
567V 30

I want to fill in the target column in the worksheet from SLA but just at the first row of each Product ID

how can I do this in google sheets using formula

Please help!

>Solution :

You may try:

=map(D2:D,lambda(Σ,if(countif(D2:Σ,Σ)=1,xlookup(Σ,A:A,B:B,),)))
  • adjust the formula as per your tab names and ranges

enter image description here

logic: first row of each Product ID is figured by using countif(D2:Σ,Σ)=1 & then using lookup to pull target value when condition is met

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading