Index Match with Data Rage

jsical

New Member
Joined
May 22, 2020
Messages
14
Office Version
  1. 365
Platform
  1. Windows
1633996743123.png


I am trying to find a Index Match formula or any other formula that allows me look the value given the Year and the Size from the table on the right. i.e Year=2023 & Size 150, Answer= 15. i have try multiple index match option but i am not sure how to a data range, i.e if Size is between 50-100. Any help its greatly appreciated.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
You could use array as shown below.

XLOOKUP(A2,F2:L2,XLOOKUP(B2,{50;100;500;1000;5000},F3:L7,,1))

Kind regards

Saba
 
Upvote 0
Thank you, that is the formula i am using but, i am trying to figure if there is a way to have a data range, i.e if B2>=50 & B2<=100. without having to recreated the table.
You could use array as shown below.

XLOOKUP(A2,F2:L2,XLOOKUP(B2,{50;100;500;1000;5000},F3:L7,,1))

Kind regards

Saba
Thank you but getting an Value Error.
 
Upvote 0
unfortunately, I get a value error. I have added a new column for the size ranges, but i cant figure out how to solve the issue. I want the formula to look up the value corresponding to the year and the size, but the size its a range. In this sample it should return 20, given that the size falls between 51-100 and the year is 2024.
1634000597910.png
 
Upvote 0
Maybe:
Book1
ABCDEFGHIJKLMNOP
1YearSizeAnswerSize2022202320242025202620272028202920302031
220245519205029272557303024188
35110021201923352731911
410150014151528122417122616
550110006910179153192524
6100110000367826145272724
Sheet1
Cell Formulas
RangeFormula
C2C2=INDEX($G$2:$P$6,XMATCH($B$2,$F$2:$F$6,1),MATCH($A$2,$G$1:$P$1,0))
 
Upvote 0
Maybe:
Book1
ABCDEFGHIJKLMNOP
1YearSizeAnswerSize2022202320242025202620272028202920302031
220245519205029272557303024188
35110021201923352731911
410150014151528122417122616
550110006910179153192524
6100110000367826145272724
Sheet1
Cell Formulas
RangeFormula
C2C2=INDEX($G$2:$P$6,XMATCH($B$2,$F$2:$F$6,1),MATCH($A$2,$G$1:$P$1,0))
thank you very much!! that work perfect
 
Upvote 0

Forum statistics

Threads
1,215,045
Messages
6,122,830
Members
449,096
Latest member
Erald

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