What I'm trying to do is increment number and then loop subtract the first 2
digits by 1
and then increment the rest until the first 2
digits = 0
So I have M201001
would become m191002
and next would be m181003
until m011020
What I'm trying to do is increment number and then loop subtract the first 2
digits by 1
and then increment the rest until the first 2
digits = 0
So I have M201001
would become m191002
and next would be m181003
until m011020
What you'll need to do is break up your value into 3 using
left
,mid
andright
functions.Then do the looping as you require it. I'm trying it out myself so I'll update my answer once I've done so.
Added Code:
If you need any explanation please ask. I will be happy to explain.
Try this
Test using this