Caly
Board Regular
- Joined
- Jul 19, 2015
- Messages
- 161
- Office Version
- 365
- 2013
- 2011
- 2010
- 2007
- Platform
- Windows
I have two sets of criteria and looking to match the answer based on that using index match. But I also want to add an if statement so that if there is not a match to the header name specified in that chart area, that the formula will then return another answer for the result. 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%
But I have another data set not part of the criteria for the headers here of Apple and Pear. I’m trying to add in where if. There is not a match to Apple or Pear that another index match can be used to bring in data for another range. I tried writing it like the below but am getting a #N/A
=IFEEROR(MATCH(H2,$D$1:$E$1,0),
INDEX(D$2:E$3,MATCH(I2,B$2:B$3,1), MATCH(H2,D$1:E$1,0),”No”
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%
But I have another data set not part of the criteria for the headers here of Apple and Pear. I’m trying to add in where if. There is not a match to Apple or Pear that another index match can be used to bring in data for another range. I tried writing it like the below but am getting a #N/A
=IFEEROR(MATCH(H2,$D$1:$E$1,0),
INDEX(D$2:E$3,MATCH(I2,B$2:B$3,1), MATCH(H2,D$1:E$1,0),”No”