Index match on two criteria

Caly

Board Regular
Joined
Jul 19, 2015
Messages
160
Office Version
  1. 365
  2. 2013
  3. 2011
  4. 2010
  5. 2007
Platform
  1. Windows
Hi I have two sets of criteria and looking to match the answer based on that using index match. How can I do that?

Example
I have a chart in a separate tab with ranges for cost and then associated percent values based on categories

Col A. Col B. Col C. ColD. ColE
Seq. Cost Start. Cost End. Apple. Pear
1. $0.00. $2.00. 2%. 3%
2. $2.01. $5.00. 4%. 5%

I want to write a formula that will provide the percent values from columns D and E of the values match for Apple or Pear based on the cost of the item

So if for example I need to know the percent value for Apple if the cost is $2.10, I want the resulting answer to say 4%

I was trying to write the formula like this but getting a #ref value

=index($d$2:$e4, match(“apple”,$d$1:$e$1,0), match(“2.10”,$b$2:$b4,1))
 
This is the layout just using a few rows of data for each section
 
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
I want to have a formula that will look at the different chart scenarios for the Dishware, Supplies, and then the chart that holds the data for Apple and Pear

Based on the cost for Pear for instance I want to bring in the Floor for Pear for the cost but looking at the different chart scenarios

I was trying an if statement but that did not work

=index($n$3:$o$4,
Match(b3,$l$3:$l$4,1),
Match(a3,$n$1:$o1,0),
If(a3<>”dishware”,index$e$3:$e$4,
Match(b3,$c$3:$c$4,1)),
Index($j:$j$4,
Match(b3,$h$3:$h$4,1))))
 
Upvote 0
I want to have a formula that will look at the different chart scenarios for the Dishware, Supplies, and then the chart that holds the data for Apple and Pear

Based on the cost for Pear for instance I want to bring in the Floor for Pear for the cost but looking at the different chart scenarios

I was trying an if statement but that did not work

=index($n$3:$o$4,
Match(b3,$l$3:$l$4,1),
Match(a3,$n$1:$o1,0),
If(a3<>”dishware”,index$e$3:$e$4,
Match(b3,$c$3:$c$4,1)),
Index($j:$j$4,
Match(b3,$h$3:$h$4,1))))
This is the layout of the charts
A BCDEFGHIJKLMNOPQRST
1DishwareSuppliesApplePearTypeCost Resulting floor based on the type and its cost Written formula
2SeqStartEndFloorSeqStartEnd FloorStartEndFloorFloorPear0.984%
310.00210%10.00222%0.0019.992%4%Supplies432%
422.01412%22.01432%2049.993%5%
 
Upvote 0
I think I got it. I had the wrong column reference for the cost. Below is the formula im using but please advise if there is a simpler approach

=if(s3=“Pear”,index($n3:$o$4,
match(t3,$l$3:$l4,1),
Match(s3,$n$1:$1,0)),
=if(s3=“Apple”,index($n3:$o$4,
match(t3,$l$3:$l4,1),
Match(s3,$n$1:$1,0)),
If(s3<>”dishware”,
Index($j$3:$j$4,match(t3,$h$3:$h$4,1)),
Index($e$3:$e$4,match(t3,$c$3:$c$4,1))))

S3 = input to say the chart name such as Pear or Apple or Dishware or Supplies

T3 = cost input to use based on input from S3

C3 = Dishware cost section
E3 = dishware floor percents

H3 = supplies cost section
J3 = supplies floor percents

L3 = pear and apple cost section
N3 = apple floor percents
O3 = pear floor percents
 
Upvote 0

Forum statistics

Threads
1,223,264
Messages
6,171,085
Members
452,378
Latest member
Hoodzy01

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