Simple forumula/macro help

JohnnyB99

New Member
Joined
Jan 28, 2013
Messages
2
I have a simple sum formula with data linked from another workbook I would like for it to carry over back to zero every time the sum reaches 120,000. For example if the value input summed 150000, I would like it to read 30,000, and have some notification that it has went over once. Is this possible with a formula? Do I need to use a macro for this? Thanks for any help/advice.
Best,
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
The only thing I could come up with would take 2 cells.

if the total of the sum is in A1...try in B1
Code:
=IF(A1>120000,SUM(A1-120000))
and ...
in C1
Code:
=ROUND(A1/120000,0)

ideally I'd put the "120000" in a separate cell and use a reference to it.

you could also use conditional formatting in lieu of the formula in C1 but thats not going to give you a count, just let you know the value went over 120000.

I'm guessing there is probably a better way to do it but I'm lousy at math and VBA :)

Hopefully this can get you going in the right direction

Granted this route doesn't take into effect if the original value is less then 120,000
 
Last edited:
Upvote 0
JohnnyB99,

If you are happy to use two extra cells then you could perhaps do this...

Your existing SUM formula in C1 then Total after reset in B1 Resets in A1


Excel 2007
ABCDEF
112991122991<<< Your Sum Formula in C1
Sheet5
Cell Formulas
RangeFormula
A1=INT(C1/120000)
B1=MOD(C1,120000)


Hope that helps.
 
Upvote 0
to track the number of times it rolls over would really require a macro that increments each time the amount rolls
 
Upvote 0

Forum statistics

Threads
1,215,372
Messages
6,124,531
Members
449,169
Latest member
mm424

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