Forum Discussion
Help with a formula to sort dimensions?
- Oct 10, 2019
Hi J-Griff,
In the attached file, the formula for Thick in B2 is:
=LEFT($E2,
FIND("x",$E2)-1)Moreover, the formula for Width in C2 is:
=MID($E2,
FIND("x",$E2)+1,
FIND("-",$E2)-FIND("x",$E2)-1)Finally, the formula for Length in D2 is:
=MID($E2,
FIND("-",$E2)+1,
FIND(" ",$E2)-FIND("-",$E2)-1)
In the attached version of your file, I wrapped all formulas with IFERROR. Given your explanation, I found it operose to ascertain the apposite formula. Nonetheless, I unearthed this formula in F7 for you:
=IFERROR(MID($F7,FIND("-",$F7)+1,
LOOKUP(10,--MID($F7,ROW($A$1:INDEX($A:$A,LEN($F7))),1),
ROW($A$1:INDEX($A:$A,LEN($F7))))-FIND("-",$F7)),"")
Twifoo Thank you for all your help. I was able to build upon your first set of formulas to achieve my desired result. By adding a another column and applying the formula, =SUBSTITUTE(SUBSTITUTE(G7,"X ","X"),"- ","-") to the Grade/Description column, I was able to eliminate the formatting discrepancies which allowed your original formulas to work perfectly. Thanks again for all your help! I would not have been able to figure it out without you!
- TwifooOct 11, 2019Silver ContributorThe pleasure is mine.