IF question, multiple criteria with comparison operators defined in cells

TheoMa

New Member
Joined
Jan 29, 2010
Messages
2
I am trying to figure out how to "code" this problem using a formula

I have 1 input value in A1 ex 333,000

Want to check it against this matrix

Columng A
Column A
Column B
Column C
<=
200,000
+10%
<=
300,000
+5%
>=
400,000
-5%
>=
600,000
-10%

<TBODY>
</TBODY>



Think of it as a volume discount/penalty applied to the unit price if the volume is above or below certain volume points. I want to be able to change the comparison sign in different cases

I tried IF(a1&a3&b3,c3,"") and it does not evaluate...

Thanks for looking into this
Theo
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
I tried IF(a1&a3&b3,c3,"") and it does not evaluate...

This will evaluate one line in your matrix.
=IF(COUNTIF(A1,A3&B3),C3,"")

You may want to consider using a VLOOKUP formula instead and change the cutoff values in the matrix instead of having different comparisons in column A

Example: =VLOOKUP(A1,B3:C7,2,TRUE)
<br />
Book1
BC
3010%
4200,0015%
5300,0010%
6400,000-5%
7600,000-10%
Sheet1
<br /><br />
 
Upvote 0
I have added a new column to do calc with, using number instead of %.
Assume data to check is in cell a1 enter this formula in cell a3
=IF(A1>=B10,A1*D10,IF(A1>=B9,A1*D9,IF(A1<=B7,A1*D7,A1*D8)))
Just uses a nested if statment

a b c d
7 <= 200,000 10% 1.1
8 <= 300,000 5% 1.05
9 >= 400,000 -5% 0.95
10 >= 600,000 -10% 0.9
 
Upvote 0

Forum statistics

Threads
1,215,525
Messages
6,125,325
Members
449,218
Latest member
Excel Master

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