Vlookup to only display cells with matching values

PurpleButterfly

New Member
Joined
Mar 31, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello lovely humans,

I'm trying to create a summarised list of all comments next to cells with the value of "N". So far I have =VLOOKUP("N",N4:O21,2,FALSE) and I've dragged it down and it's automatically made the next one be N5:O22 etc. The rest of the values remain the same. I'm getting it do the Vlookup in column P from row 4 onwards. (Not sure if this is right)

I tried =IF(VLOOKUP("N",N4:O21,2,FALSE)="",VLOOKUP("N",N5:O21,2,FALSE),VLOOKUP("N",N4:O21,2,FALSE)), but I got the same result, as described below:

If the first occurrence of N is in N5 and the second is in N11, it's returning the corresponding value of N5 in both P4 and P5, then it's returning the corresponding value of N11 in P6-P11, and #N/A for the rest of the rows.

If the "N" is in N5 and N11 I'm trying to get it to return O5 in P4 then O11 in P5.

I hope this makes sense, if anyone can help me that would be really awesome!
image001.jpg
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Welcome to the MrExcel board!

If the "N" is in N5 and N11 I'm trying to get it to return O5 in P4 then O11 in P5.
Is this what you mean?

22 03 31.xlsm
NOP
1
2
3
4ab
5Nbh
6N/Ack
7d
8e
9f
10g
11Nh
12i
13j
14Nk
15
N
Cell Formulas
RangeFormula
P4:P6P4=FILTER(O4:O20,N4:N20="N","")
Dynamic array formulas.
 
Upvote 0
Solution
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,214,561
Messages
6,120,228
Members
448,951
Latest member
jennlynn

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top