VLookup question

iangessey

New Member
Joined
May 26, 2022
Messages
5
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi
Appreciate your help in advance.
I need to get my head around VLOOKUP and hopefully its the answer to my issue.

I have a large set of data with a column of unique ID references. - a months amount.
For a reconciliation i have a sample of data, from that same column of unique ID references that i need cross reference against the full list.

I have attached a csreen grab of the query.
Data in Colum A should appear in Column D, but i only want the results that match displayed

1732289497734.png


Am i on the right path with a VLOOKUP, or is there a more efficient way?Any help gratefully accepted!
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
many different way you could use:

i prefer to count function

in cell(B2) put =COUNTIF(D:D,A2)
this will count how many times the value in cell A2 exists in Column D
fill down as needed

the vlookup option would be =VLOOKUP(A2,D:D,1,0)
 
Upvote 0
Hello,

Yes, you can either use VLOOKUP or INDEX/MATCH. However, be careful on the "exact match" parameter, you have to set it to "exact match" or you will have false matches.

So the formula, to display only the values found, could be (in B1)

Excel Formula:
=IFERROR(VLOOKUP(A2; $D$2:$D$????; 1; FALSE); "")
Or

Excel Formula:
=IFERROR(INDEX($D$2:$D$????;MATCH(A2; $D$2:$D$????;0));"")

The values not found will raise an error, therefore we can use IFERROR and "" to mask them.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,334
Members
452,636
Latest member
laura12345

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