If then add

billandrew

Well-known Member
Joined
Mar 9, 2014
Messages
743
Good afternoon all

Dividing the below, when the result is greater than 8 add .5 to the divisor and then divide the dividend by the new divisor.

[TABLE="width: 252"]
<colgroup><col width="70" style="width:53pt"> <col width="86" style="width:65pt"> <col width="96" style="width:72pt"> </colgroup><tbody>[TR]
[TD="width: 70, align: right"]70.25[/TD]
[TD="width: 86, align: right"]8.2[/TD]
[TD="width: 96, align: right"]8.57[/TD]
[/TR]
[TR]
[TD="align: right"]65.41[/TD]
[TD="align: right"]5.25[/TD]
[TD="align: right"]12.46[/TD]
[/TR]
[TR]
[TD="align: right"]20.35[/TD]
[TD="align: right"]2.5[/TD]
[TD="align: right"]8.14[/TD]
[/TR]
</tbody>[/TABLE]
 
untested but you could try wrapping the whole thing in an if statement

=IF(IF(A1/B1>8,A1/(B1+ROUNDUP((A1/8-B1)/0.5,0)*0.5),A1/B1)>8,8,IF(A1/B1>8,A1/(B1+ROUNDUP((A1/8-B1)/0.5,0)*0.5),A1/B1))
 
Upvote 0

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Mr. wideboydixon

WOW! Thank You for trying to interpret my need and sticking with me.

The shifting requirement comment by the way is hilarious....

Regards
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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