Conditional formula

asyamonique

Well-known Member
Joined
Jan 29, 2008
Messages
1,286
Office Version
  1. 2013
Platform
  1. Windows
[TABLE="width: 219"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]-2,000[/TD]
[TD]/[/TD]
[TD]-5,000[/TD]
[TD]=[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]-5,000[/TD]
[TD]/[/TD]
[TD]-10,000[/TD]
[TD]=[/TD]
[TD]150[/TD]
[/TR]
[TR]
[TD]-10,000[/TD]
[TD]/[/TD]
[TD]-20,000[/TD]
[TD]=[/TD]
[TD]250[/TD]
[/TR]
[TR]
[TD]-20,000[/TD]
[TD="colspan: 2"]and above[/TD]
[TD]=[/TD]
[TD]500[/TD]
[/TR]
</tbody>[/TABLE]

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

Thanks
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
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...

[TABLE="class: grid, width: 192"]
<tbody>[TR]
[TD="width: 64, bgcolor: transparent, align: right"]-2,000[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]-5,000[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]100[/TD]
[/TR]
[TR]
[TD="width: 64, bgcolor: transparent, align: right"]-5,000[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]-10,000[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]150[/TD]
[/TR]
[TR]
[TD="width: 64, bgcolor: transparent, align: right"]-10,000[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]-20,000[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]250[/TD]
[/TR]
[TR]
[TD="width: 64, bgcolor: transparent, align: right"]-20,000[/TD]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="width: 64, bgcolor: transparent, align: right"]500[/TD]
[/TR]
</tbody>[/TABLE]

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,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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