Calculation up to 99999 an then back to 0

EX7EY

New Member
Joined
Feb 5, 2019
Messages
4
Hi there,

I am creating a calculator in Excel which I need to only go up to 99999 and once it does so I need it to go back to 0.

For example....99994 + 8 will return a value of 2 as opposed to 100002.

Any ideas on how I would do this?

Thanks in advance
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Thanks that does work but not in the way I need it to.

I didn't explain my self very well actually.

So....I have a table, in column C I enter figures manually, and said figures range from 0-99999. Column D & E perform some calculations using the figure in column C but what I need is for D & E to understand that if column C for example goes from 99999 to 1 it has gone forward by 2 and not back by 99998.

Hope that makes sense?
 
Upvote 0
Not to me.

A concise example would help.
 
Upvote 0

Forum statistics

Threads
1,223,276
Messages
6,171,140
Members
452,381
Latest member
Nova88

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