Conditional formula

asyamonique

Well-known Member
Joined
Jan 29, 2008
Messages
1,280
Office Version
  1. 2013
Platform
  1. Windows
-2,000/-5,000=100
-5,000/-10,000=150
-10,000/-20,000=250
-20,000and above=500

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>

Hello what can be the formula to show those results between the numbers?

Thanks
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
For a value in cell A1:
Code:
=IF(A1>=20000,500,IF(A1>=10000,250,IF(A1>=5000,150,IF(A1>=2000,100,0))))
 
Upvote 0
Let A1:C4 house your table...

-2,000-5,000100
-5,000-10,000150
-10,000-20,000250
-20,000500

<tbody>
</tbody>

Let E1 house a value of interest that you want to evaluate...

In F1 enter...

Either:

=INDEX($C$1:$C$4,MATCH(E1,$A$1:$A$4,-1))

Or:

=LOOKUP(ABS(E1),ABS($A$1:$A$4),$C$1:$C$4)
 
Upvote 0
Sorry, if your values really are negatives, we just need to change the signs and direction of arrows:
Code:
=IF(A1<=-20000,500,IF(A1<=-10000,250,IF(A1<=-5000,150,IF(A1<=-2000,100,0))))
 
Upvote 0

Forum statistics

Threads
1,216,797
Messages
6,132,747
Members
449,757
Latest member
budha465

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