Been devising a way to count from 1-999 using just two characters.
The way it goes is, 1-100 is denoted by "01-00" (00 being 100), 101-776 is denoted by AA through ZZ, 777-999 is denoted by A0, A1, A2, etc. through W2 (999).
code so far is
=IF(AND(ISNUMBER(NUMBERVALUE(MID(O17,6,2))),NUMBERVALUE(MID(O17,6,2))=0),100,IF(ISNUMBER(NUMBERVALUE(MID(O17,6,2)))>0,MID(O17,6,2),IF(COUNT(FIND({0,1,2,3,4,5,6,7,8,9},MID(O17,6,2)))=1,COLUMN(INDIRECT(MID(O17,6,1)&1))*10+MID(O17,7,1)+767,COLUMN(INDIRECT(MID(O17,6,2)&1))+74))) to be extracted from a string e.g. 0AAV0AE23A (AE's equivalent value would then be 105)
I've already checked the formula about 50 times, and tried to separate each IF function and they work fine individually (given that their conditions are met). The #VALUE! only returns when I consolidate the IF functions into one single formula.
If functions and their corresponding ranges:
IF(AND(ISNUMBER(NUMBERVALUE(MID(O17,6,2))),NUMBERVALUE(MID(O17,6,2))=0),100 for 100 alone
IF(ISNUMBER(NUMBERVALUE(MID(O17,6,2)))>0,MID(O17,6,2) for numbers 1-99
IF(COUNT(FIND({0,1,2,3,4,5,6,7,8,9},MID(O17,6,2)))=1,COLUMN(INDIRECT(MID(O17,6,1)&1))*10+MID(O17,7,1)+767,COLUMN(INDIRECT(MID(O17,6,2)&1))+74) for 777-999, with the False value being for 101-776
I would also appreciate if there was a simple way to write the code but really my main concern is to find out why the #VALUE! return keeps on showing up.
EDIT: mistake in denotation of 777. It should be A0, not A1 (already edited accordingly)
