MATCH vs VLOOKUP

kimberlie3

New Member
Joined
Jan 12, 2023
Messages
11
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hoping someone can help me out!!! I want to search for a value from one column, into another column and output a different column....if that makes any sense.

I have a column of receivers numbers that detected. I have another column of all possible receivers, followed by 2 more columns of the lats/longs. I want to take my data set and look for it in my list of possibilities and output the lat/long.

Is this even a possibility without doing it manually (some of the datasets are quite large).

I attached an imaged of what it looks like and what I want it to output.

Any help would be greatly appreciated!!
 

Attachments

  • Ex.jpg
    Ex.jpg
    253.3 KB · Views: 18

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Put this formula to X2:
Excel Formula:
=VLOOKUP($Q2, $S$2:$U$28, COLUMNS($A$1:A$1), 0)
Drag to right, drag to down.
 
Upvote 0
Welcome to the MrExcel board!

We cannot see your column labels and your column descriptions seem a bit messed up to me, but with your versions you should be able to use the more efficient XLOOKUP.
See if you can adapt this tiny sample** to suit your layout. The formula in I2 is copied across and down.

** For the future, I suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with.

23 01 13.xlsm
DEFGHIJ
1AllLatLong
210456647.6-55.111952847.7-55.2
311952847.7-55.210456647.6-55.1
411953447.3-55.311952847.7-55.2
511953447.3-55.3
Lookup
Cell Formulas
RangeFormula
I2:J5I2=XLOOKUP($H2,$D$2:$D$4,E$2:E$4)
 
Upvote 0
Welcome to the MrExcel board!

We cannot see your column labels and your column descriptions seem a bit messed up to me, but with your versions you should be able to use the more efficient XLOOKUP.
See if you can adapt this tiny sample** to suit your layout. The formula in I2 is copied across and down.

** For the future, I suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with.

23 01 13.xlsm
DEFGHIJ
1AllLatLong
210456647.6-55.111952847.7-55.2
311952847.7-55.210456647.6-55.1
411953447.3-55.311952847.7-55.2
511953447.3-55.3
Lookup
Cell Formulas
RangeFormula
I2:J5I2=XLOOKUP($H2,$D$2:$D$4,E$2:E$4)
I tried your example but I just get "#NAME?" as the output. I tried to download XL2BB but I do not have admin rights on the computer I am using so it will not let me download.
 

Attachments

  • Excel.PNG
    Excel.PNG
    104.4 KB · Views: 8
Upvote 0
Put this formula to X2:
Excel Formula:
=VLOOKUP($Q2, $S$2:$U$28, COLUMNS($A$1:A$1), 0)
Drag to right, drag to down.
When I do that, it just gives me the receiver number and not the lat/long that corresponds to that receiver number unfortunately
 
Upvote 0
I tried your example but I just get "#NAME?" as the output. I tried to download XL2BB but I do not have admin rights on the computer I am using so it will not let me download.
I got it!!! Wohoo!! Thank you so much for your help :)
 
Upvote 0
I tried your example but I just get "#NAME?"
In that case are you sure that your profile version information is correct? It shows that you have Excel 365 and 2021, both of which have XLOOKUP - the likely cause of the #NAME? error in older versions of Excel.

Edit: I was drafting my post when you last posted so I had missed that one. So, are you saying that it works with XLOOKUP now?
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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