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

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
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,214,613
Messages
6,120,515
Members
448,968
Latest member
Ajax40

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