formula help

ddelano

New Member
Joined
Oct 18, 2006
Messages
2
Need formula help.

Here is what I need.

If F26 is less than 10, I need E28 to show the difference to make f26 reach ten. Example if F26= $8.00. I need E28 to = $2.00. This figure will then be multiplied by C28.

Or

If F26 is greater than $25, I need E28 to be a negative $$ to achieve a max of $25. Example if F26=$30. I need E28 to = -$5. This figure would then be multiplied by C28.

Any help would be appreciated.

Thank you.

David
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Von Pookie

MrExcel MVP
Joined
Feb 17, 2002
Messages
13,686
One way:
=IF(F26="","",IF(F26<10,(10-F26)*C28,IF(F26>25,(25-F26)*C28,"")))
 

Fergus

Well-known Member
Joined
Mar 10, 2004
Messages
1,174
try: =C28*IF(F26<10,(10-F26),IF(F26>25,25-F26,0))
 

Forum statistics

Threads
1,136,366
Messages
5,675,355
Members
419,565
Latest member
Phil57

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
Top