Caly
Board Regular
- Joined
- Jul 19, 2015
- Messages
- 160
- Office Version
- 365
- 2013
- 2011
- 2010
- 2007
- Platform
- Windows
Hi I have a table with cost data that I’m using index match for but now I want to add to that additional criteria to apply but struggling with applying the vlookup if that is correct or not.
This is the table chart for the cost data in columns A through C:
Col A. Col B. Col C.
1. Start. End. Floor.
2. $0.00. $2.00. 35%
3. $2.01. $4.00. 18%
The initial formula was just looking at the cost of the item to bring in what the floor percent value is for it based on its cost. And this is in the data tab with the formula in column C. Below is that formula:
B:
Col A. Col B. Col C.
1. Category. Cost. Formula for the floor
2. Apple. $2.60. 18%
=if(index(‘cost tab’!$C$2:$C$3,
match($C2,’cost tab’!$B$2:$B$3,1))
But now I need to also look at if the category says Apple or anything else added to a tab taht will have different categories and then values for those taht will be different from the standard values in the cost tab. I was trying to do a vlookup but I’m getting a SPILL error message.
Below is the category table
Col A Col B
1. Category. Percentage
2. Apple. 10%
3. Grape. 2%
4. Kiwi. 5%
I was trying to do this in front of the other formula but getting an error message of #SPILL!
=if($A2=vlookup(‘category table’!$A$2:$A$4,1,false),vlookup($A2,’category table’!$A$2:$B$4,2,false),
Thank you so much
This is the table chart for the cost data in columns A through C:
Col A. Col B. Col C.
1. Start. End. Floor.
2. $0.00. $2.00. 35%
3. $2.01. $4.00. 18%
The initial formula was just looking at the cost of the item to bring in what the floor percent value is for it based on its cost. And this is in the data tab with the formula in column C. Below is that formula:
B:
Col A. Col B. Col C.
1. Category. Cost. Formula for the floor
2. Apple. $2.60. 18%
=if(index(‘cost tab’!$C$2:$C$3,
match($C2,’cost tab’!$B$2:$B$3,1))
But now I need to also look at if the category says Apple or anything else added to a tab taht will have different categories and then values for those taht will be different from the standard values in the cost tab. I was trying to do a vlookup but I’m getting a SPILL error message.
Below is the category table
Col A Col B
1. Category. Percentage
2. Apple. 10%
3. Grape. 2%
4. Kiwi. 5%
I was trying to do this in front of the other formula but getting an error message of #SPILL!
=if($A2=vlookup(‘category table’!$A$2:$A$4,1,false),vlookup($A2,’category table’!$A$2:$B$4,2,false),
Thank you so much