pull down to refresh

If you can modify the sheet with your data, I would recommend creating a new column which concatenates ID and SERVICE (but with a delimiter to prevent false lookups)
Then you can use this to generate a simple VLOOKUP, eg:
For those who aren't familiar - the use of the $ sign means that the formula will "stick" to that column (or row) when dragging a formula along or down.
The thing is that ID and service are repeated lines too. So ID 1234 could be on 4 or 6 lines, but having different services. This literally switching lines to columns with lookup for 2 references and return the data for each service.
I know I have to make a vlookup + if formula but can't get it working right now.
reply
10 sats \ 3 replies \ @sigit 16 Dec
The formula works for the case you describe - see below (also I fixed the range element, is now $A:$D)
Or are you saying there can be multiple lines for the same combination of ID and Service?
In which case you would like to sum the Data column?
reply
In which case you would like to sum the Data column?
No I don't want to sum data. Only want to copy data from each service line into a service column.
IDServiceData
1234AAA4032AAABBBCCCDDDEEE
1234BBB1451234vlookup or IF ?vlookup or IF ?vlookup or IF ?vlookup or IF ?vlookup or IF ?
1234CCC136,5456
1234DDD48658
1234EEE56
456
456
658
658
reply
0 sats \ 1 reply \ @sigit 16 Dec
Does this make sense?
LKPIDServiceData
=B2&"|"&C21234AAA4032AAABBBCCCDDDEEE
^^ Drag this DOWN1234BBB1451234=VLOOKUP($E3&"|"&F$2,$A:$D,4,0)
1234CCC136,5456^^ Drag this down, then drag them all across
1234DDD48658
1234EEE56
456
456
658
658
By "Drag" I mean the fact that you can click on the bottom right of the cell and "drag" the formula down. This will update the cell references accordingly and display the corresponding values.
reply
I get formula error. Why did you create column A, just to concatenate column B and C? I don't need exactly that, I need only to search and compare.
reply