Home |
Search |
Today's Posts |
#4
![]() |
|||
|
|||
![]()
It's not pretty but it works (might be a start...?):
TRIMLEFT: =RIGHT(H4,LEN(H4)-MIN(IF((MID(H4,ROW(INDIRECT("1:"&LEN(H4))),1)<" "),(ROW(INDIRECT("1:"&LEN(H4)))),""))+1) TRIMRIGHT: =LEFT(H4,MAX(IF((MID(H4,ROW(INDIRECT("1:"&LEN(H4)) ),1)<" "),(ROW(INDIRECT("1:"&LEN(H4)))),""))) TRIMLEFT&RIGHT: Combine the two Ola Sandstrom Note: Since it's an Array formula you have to end the formulas by holding down Ctrl+Shift and then press Enter. It will work if " " is Not found both at the beginning and at the end. My idea was to find the Min position <" " (trimleft) and the Max...(trimright) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Maintaining cell reference after sorting | Excel Discussion (Misc queries) | |||
Cell Reference Math | Excel Worksheet Functions | |||
Missing Reference in Excel 2003 | Excel Discussion (Misc queries) | |||
Incrementing rows (or columns) to a reference in another worksheet | Excel Worksheet Functions | |||
How do I reference multiple rows | Excel Worksheet Functions |