I know this should be relatively simple, I just can't figure out all the pipefitting.
I have a column of text strings (codes) that start with certain strings (for example, "PV", "SS", "WL") and I want a formula that returns / sets a value based on those strings.
I was hoping to use a simple "IF" formula, perhaps like this (although this doesn't work):
=IF(A4="PV*","P-1",IF(A4="SS*","P-2","P-3"))
of course the "PV*" doesn't work ... so I guess I just need to know how to match the first 2 characters of the string in the cell I'm checking?
I have a column of text strings (codes) that start with certain strings (for example, "PV", "SS", "WL") and I want a formula that returns / sets a value based on those strings.
I was hoping to use a simple "IF" formula, perhaps like this (although this doesn't work):
=IF(A4="PV*","P-1",IF(A4="SS*","P-2","P-3"))
of course the "PV*" doesn't work ... so I guess I just need to know how to match the first 2 characters of the string in the cell I'm checking?