The mini sheet example contains text of 1/2 " in C4 and a formula in D4 that is aimed at converting that text into it's correct number value. The result should be 0.5 and not 45323.00, can anyone help with correcting the formula?
Book1 | ||||
---|---|---|---|---|
C | D | |||
4 | 1/2 " | 45323.00 | ||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D4 | D4 | =IF(ISBLANK(C4), "", IF(ISNUMBER(VALUE(SUBSTITUTE(SUBSTITUTE(C4, " mm", ""), """", ""))), VALUE(SUBSTITUTE(SUBSTITUTE(C4, " mm", ""), """", "")), IF(ISERROR(FIND(" ", C4)), VALUE(LEFT(C4, FIND("/", C4)-1)) / VALUE(MID(C4, FIND("/", C4)+1, LEN(C4) - FIND("/", C4))), VALUE(LEFT(C4, FIND(" ", C4)-1)) + VALUE(MID(C4, FIND(" ", C4)+1, FIND("/", C4) - FIND(" ", C4)-1)) / VALUE(MID(C4, FIND("/", C4)+1, FIND("""", C4)-FIND("/", C4)-1)) ) ) ) |
Last edited by a moderator: