Possible Index/IF Function

jdavis971

New Member
Joined
Jun 29, 2023
Messages
4
Office Version
  1. 365
Platform
  1. Windows
I am trying to figure out the formula where I need a cell to auto populate a result based on the input of another cell.

For example. Column A (Region) will be the cell that will have the input. Column B (Destination Location) is the cell that I would like to auto populate based on the input in column A. Any help would be greatly appreciated

RegionDestination Location
North AlabamaVernon Hub
South MississippiMagnolia Hub
North LouisianaWest Monroe
North MississippiDirect
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Welcome.

How does Excel know what the destination is? Is that in another table somewhere?
 
Upvote 0
I should have been more clear. The formula would be in column B (Destination location), I was just showing that there could be multiple inputs, and based on the input, it could be a variety of outputs.
 
Upvote 0
I still don't know how a formula in the B column could determine the destination unless there's a correspondence table somewhere.
 
Upvote 0
Well, in order to show you an appropriate formula, it would be necessary to see the table!
 
Upvote 0
Yes, there would be a corresponding table.
So... something like this?

23 06 30.xlsm
ABCDEF
1RegionDestination LocationRegionDestination Location
2North AlabamaVernon HubNorth AlabamaVernon Hub
3South MississippiMagnolia HubNorth LouisianaWest Monroe
4North LouisianaWest MonroeNorth MississippiDirect
5North MississippiDirectSouth MississippiMagnolia Hub
Lookup
Cell Formulas
RangeFormula
B2:B5B2=XLOOKUP(A2,E$2:E$5,F$2:F$5)
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,375
Messages
6,124,578
Members
449,174
Latest member
chandan4057

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