Formula Suggestion

W

Ward

I'm currently using the formula below to calculate the number entered in C1:

=IF(C1="","",IF(C1<99,"1st",TRUNC((C1-99)/84,0)+2&MID("thstndrdth",MIN(9,2*RIGHT(TRUNC((C1-99)/84,0)+2)*(MOD(TRUNC((C1-99)/84,0)+2-11,100)>2)+1),2)))

I now need the formula to calculate increments of 183 beginning at 211 not
98 like above. Would this work:?

=IF(C5="","",IF(C5<212,"1st",TRUNC((C5-212)/183,0)+2&MID("thstndrdth",MIN(9,2*RIGHT(TRUNC((C5-212)/183,0)+2)*(MOD(TRUNC((C5-212)/183,0)+2-11,100)>2)+1),2)))
 
P

p45cal

Ward;490602 said:
I'm currently using the formula below to calculate the number entered i
C1:

=IF(C1="","",IF(C1<99,"1st",TRUNC((C1-99)/84,0)+2&MID("thstndrdth",MIN(9,2*RIGHT(TRUNC((C1-99)/84,0)+2)*(MOD(TRUNC((C1-99)/84,0)+2-11,100)>2)+1),2)))

I now need the formula to calculate increments of 183 beginning at 21
not
98 like above. Would this work:?

=IF(C5="","",IF(C5<212,"1st",TRUNC((C5-212)/183,0)+2&MID("thstndrdth",MIN(9,2*RIGHT(TRUNC((C5-212)/183,0)+2)*(MOD(TRUNC((C5-212)/183,0)+2-11,100)>2)+1),2)))

This is a guess:
Yes.


Try it
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top