Can anyone tell me why when I shortened the first formula below to the second formula, my file size increased 3 fold? Let me tell you a little about the file.
It has 13 worksheets: one for every month and one to total all the months. (I recently read a post that discourages this and I think I'll try putting all 13 in one worksheet later. But first answer this please).
Each month has 2000 rows of formulas in 10 columns. The formula below reads the code data entered in F10 and returns "ERR" unless the 4th item in the code is a number from 1 to 7, or a space bar character, or nonexistent (i.e. if the code entered is only 3 characters long).
=IF(F10="","",IF(OR(MID(F10,4,1)="1",MID(F10,4,1)="2",MID(F10,4,1)="3",MID(F10,4,1)="4",MID(F10,4,1)="5",MID(F10,4,1)="6",MID(F10,4,1)="7",MID(F10,4,1)=" ",MID(F10,4,1)="")=TRUE,MID(F10,4,1),"ERR"))
8 of the columns have the same basic formula (but they don't all check for a number from 1 to 8; each place in the code is limited to certain text or numbers). I know now the =TRUE is redundant.
I changed them all to this format:
=IF(F10="","",IF(MID(F10,4,1)=""," ",IF(OR(MID(F10,4,1)={"1","2","3","4","5","6","7"," "}),MID(F10,4,1),"ERR")))
This formula looks shorter and more efficient, but when I replaced all the cells with this format, it increased the file size 3X! Is there an easy idea of why? I prefer a smaller file size even if the formula looks less efficient.
Bookmarks