Need some help generating a formula

NathanB

New Member
Joined
Dec 29, 2010
Messages
8
Here's the deal: I need a formula that looks at cell (x) which is a percent. If the % is a positive number less than 5%, the result is $160.00. If the % is greater than 5%, the result is $320.00. If the % is a negative number less than -5%, the result is -$160.00. If the % is greater than -5%, the result is -$320.00.

For example, if the cell reads -6.20%, the result should be -$320.00. If the cell reads 1.24%, the result should be $160.00.


Thanks in advance for the assist!
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
What happens on the boundaries? eg exactly -5%, 0%, 5%
 
Upvote 0
At 0%, the result should be $0.00. 5% - positive or negative - is the change-over point. So 5% or > is $320.00, -5% or greater is -$320.00. Sorry I wasn't clear on that.
 
Upvote 0
See if this does what you want.

BTW, I think you might have your 'greater' and 'less' mixed up for negative numbers. -6% is LESS than -5%.

Excel Workbook
AB
1-6.20%-320
21.24%160
30.00%0
4-2.30%-160
525.00%320
% to number
 
Upvote 0
.. or possibly this

=IF(A1=0,0,IF(ABS(A1)<0.05,160,320)*SIGN(A1))
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,253
Members
452,900
Latest member
LisaGo

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