Good Day!
I have been trying to find the best way to refine strings of text to something that is easily used in other programs (HD, P6, SAP). The goal is to have a standardized formatting and a string length that is acceptable (P6 does not accept long string lengths).
Ex. (you may also look at the attached excel file)
ORIGINAL TEXT
A2 = " Cut to Fill - Excavate, Load, Haul, Place, Level And Compact suitable common material;"
TRIM TEXT
C2 =TRIM(A2) = "Cut to Fill - Excavate, Load, Haul, Place, Level And Compact suitable common material;"
PROPER TEXT
D2 =PROPER(C2) = "Cut to Fill - Excavate, Load, Haul, Place, Level And Compact Suitable Common Material;"
SUBSTITUTE TEXT
This is where I get a little stuck. It works for one instance (Old Text = "Compaction", New Text = "Comp")
E2 =SUBSTITUTE(D2,substitute!$A$2,substitute!$B$2) = "Cut to Fill - Excavate, Load, Haul, Place, Level And Comp Suitable Common Material;"
BUT....I want it to read through a list of Old Text (Column A) and match that with the list of New Text (Column B). In this way I can have a seperate sheet of commonly used words to shorten. On my list I also have for example "Excavate" so that it will become "Exc"
I have been trying to nest a LOOKUP function, but haven't been able to work.
Thank you so much for your insight!
Bookmarks