I have the following. I want to do a VLOOKUP (or similar) that will return only the results in Column B (Value) when the Criteria (Column A) is Yes, but I need the results in Column D to have no gaps as shown, so I think it needs an addition to the VLOOKUP to achieve this, but I don't know if it can be done with just a formula or would require some VBA? If the latter, I don't know how I would achieve this?
Obviously if I do a straight VLOOKUP, the results in Column D will have blanks in it everytime there is a 'No' in Column A and I need the results to appear as per Column D below, without the blanks, is this possible to do?
I've just noticed that the text below doesn't display so well, So, I've added a sample sheet.
Many thanks
A B D
Criteria Value Result
Yes 1000 1000
Yes 2000 2000
Yes 500 500
No 100 20
No 450 21
No 750 500
Yes 20 20
Yes 21 35
Yes 500 50
No 7 1000
No 7 250
Yes 20 257
No 15
Yes 35
No 47
No 80
No 41
Yes 50
No 9
No 12
Yes 1000
Yes 250
Yes 257
Bookmarks