# formula help

#### ddelano

##### New Member
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
One way:
=IF(F26="","",IF(F26<10,(10-F26)*C28,IF(F26>25,(25-F26)*C28,"")))

#### Fergus

##### Well-known Member
try: =C28*IF(F26<10,(10-F26),IF(F26>25,25-F26,0))

It worked.

Thank you.

Replies
6
Views
118
Replies
0
Views
78
Replies
9
Views
63
Replies
5
Views
74
Replies
2
Views
170

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.

### Which adblocker are you using?

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

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