If Function with 2 Separate Ranges

snaplink22

Board Regular
Joined
Jul 6, 2018
Messages
129
Hello,

I am attempting to return a value from a range of cells, based off another range of cells. Here's an example of what I would like to do:

Tab 1
A1 - Is one of ten hand-keyed in options (cancel, order, hold, etc.)
B1 - Returns a date from a range of dates located on a second tab, based on the value of what is in A1

Tab 2
A1 - Contains all of the 10 options that can be keyed into cell A1 on Tab1
B2 - Each option in cell A1 has a corresponding date next to it.

Order 7-5-18
Hold 7-12-18
Cancel 7-15-18

So when I input 'Order' in to A1 on Tab 1, B1 on Tab 1 returns a value of 7-5-18.

Any help on this matter is greatly appreciated.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Welcome to the board.

Try in B1:

=VLOOKUP(A1,Sheet2!A1:B10,2,0)

I assume you mean that Order is in A1, Hold is in A2, Cancel is in A3, etc. If all the values are in A1, that's a much tougher option, and I'd recommend putting them in different cells.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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