Lookup Formula Question

floggingmolly

Board Regular
Joined
Sep 14, 2019
Messages
85
I have a workbook with 2 sheets. On Sheet1 I have in column G a list of Station Numbers. On Sheet 2 I have Station #'s in Column A and Column B, then in E there is a due date. I am trying to figure out a formula that will look for a certain # on sheet 2 in column A and B, then return the date in column E. Not sure if that makes sense. For Example: On Sheet 1 in column G I have station #200. On Sheet 2 that # might be in Column A or B depending on their location, so I need to somehow do a lookup in A and B to find #200, then give me the corresponding date from column E. If anyone could help it would be greatly appreciated. I have been trying for 3 days and can't get it to work.
 

Some videos you may like

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

etaf

Well-known Member
Joined
Oct 24, 2012
Messages
4,575
Office Version
  1. 365
Platform
  1. MacOS
could the number be in both a and b
you could use a vlookup() with an iferror()

iferror(vlookup(lookup in A), vlookup(lookup in b))
 

floggingmolly

Board Regular
Joined
Sep 14, 2019
Messages
85
could the number be in both a and b
you could use a vlookup() with an iferror()

iferror(vlookup(lookup in A), vlookup(lookup in b))
That worked perfect. Thank you so much. Is it still possible to hide N/A if the # is in neither column? I tried doing the "" in the formulas but didnt seem to work
 

etaf

Well-known Member
Joined
Oct 24, 2012
Messages
4,575
Office Version
  1. 365
Platform
  1. MacOS
i think embedding another iferror
iferror(vlookup(lookup in A), iferror(vlookup(lookup in b),""))
 

etaf

Well-known Member
Joined
Oct 24, 2012
Messages
4,575
Office Version
  1. 365
Platform
  1. MacOS
you are welcome
 

Watch MrExcel Video

Forum statistics

Threads
1,127,177
Messages
5,623,199
Members
415,957
Latest member
Newguy1924

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
Top