understanding formulas

Dummy Excel

Well-known Member
Joined
Sep 21, 2005
Messages
1,004
Office Version
  1. 2019
  2. 2010
  3. 2007
Platform
  1. Windows
Hi All,
I have inherited a spreadsheet, which has the below formula. Can someone please explain to me what it means/trying to do??

Code:
=(INT(E2/70)*860+IF(MOD(E2,70)>=30,860,IF(20<=MOD(E2,70),550,MOD(E2,70)*92)))/E2

Any help will be greatly appreciated
thanks
Sam
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Going to break this down with an example where E2=145.

Code:
=(a*860+IF(b>=30,860,IF(20<=b,550,b*92)))/E2
Algebra: E2/70=2.07 or 2r5.
a: INT(E2/70) = integer of 145 divided by 70 = 2
b: MOD(E2,70) = remainder of 145 divided by 70 = 5

Code:
=(a*860+IF(b>=30,860,c))/E2
c: IF(20<=b,550,b*92) = if b (the remainder) is greater than or equal to 20... TRUE = 550... FALSE = b (the remainder) times 92. For our "E2=145" example, this would be FALSE so 2*92 = 184

Code:
=(a*860+d)/E2
d: IF(b>=30,860,c) = if b (the remainder) is greater than or equal to 30... TRUE = 860... FALSE = c (184 in our example). For our "E2=145" example, this would be FALSE so 184.

So our "E2=145" example has a nested calculation of
Code:
=(a*860+d)/E2
or
Code:
=(2*860+184)/145
For a final result of 13.13.
 
Upvote 0
thanks judge for the detailed explanation.
In my spreadsheet my answer is 15.03448276.

I think the error is b*92=184 (b=2), should b=5?
 
Upvote 0

Forum statistics

Threads
1,224,508
Messages
6,179,189
Members
452,893
Latest member
denay

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