Lookup in a matrix?

Gids007

New Member
Joined
Feb 12, 2019
Messages
18
Office Version
  1. 365
Platform
  1. Windows
Hi There,

I want to return a number based on a horizontal and a vertical lookup. Here's the lookup table...

NISI
Beef Cattle Farming
9​
9​
Dairy Cattle Farming
12.5​
15.5​
Grain-Sheep and Grain-Beef Cattle Farming
9​
9​
Sheep Farming
5.5​
5.5​
Sheep-Beef Cattle Farming
5.5​
5.5​

I have 2 columns within a dataset....below...I want a formula to return 15.5 in the lookup column....There are 100 rows of data with different combinations of Legal Entity and NISI...any help appreciated...

Legal Entity Industry NameNISIlookup
Dairy Cattle FarmingSI
Dairy Cattle FarmingSI
Dairy Cattle FarmingSI
Dairy Cattle FarmingSI
Dairy Cattle FarmingSI
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Try INDEX(range,row_index, column_index)
with row and column _ index, using MATCH function.
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

If there are only 2 choices for the column to look in you could also try this. (I have changed some of the sample data)

22 06 27.xlsm
ABC
1NISI
2Beef Cattle Farming99
3Dairy Cattle Farming12.515.5
4Grain-Sheep and Grain-Beef Cattle Farming8.29
5Sheep Farming5.56
6Sheep-Beef Cattle Farming5.57
7
8
9Legal Entity Industry NameNISIlookup
10Dairy Cattle FarmingSI15.5
11Sheep FarmingNI5.5
12Sheep-Beef Cattle FarmingSI7
13Grain-Sheep and Grain-Beef Cattle FarmingSI9
14Dairy Cattle FarmingNI12.5
Lookup
Cell Formulas
RangeFormula
C10:C14C10=VLOOKUP(A10,A$2:C$6,2+(B10="SI"),0)
 
Upvote 0

Forum statistics

Threads
1,215,081
Messages
6,123,016
Members
449,093
Latest member
ikke

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