My platform is Windows 7 and I use Excel 2010.
I receive a worksheet everymonth that contains 2 fields, State_Of_Area and Area_Name. I need to create a new column of the Area_Name based the those two fields, and a 3rd field I place in the worksheet named Acceptable States.
If the Area_Name = "Outside Area - Name of State" and the State_Of_Area is listed in the field of Acceptable States, the Area_Name becomes "InstateOutOfArea." However, if the state in State_Of_Area is CA, which is an acceptable state, the Area_Name becomes "CA_InStateOutOfArea." States not listed in the list of Acceptable States are all named "Outside." Everything else keeps the same name in the new Area_Name field.
I am using a 3 step process to arrive at this, replacing the name as is unles it contains the word "Outside". The next step is to replace the name if the State_Of_Area is in an acceptable state, and then finding California and fixing those names. There must be a way to do this with one formula.
I've found plenty of examples based on numbers fields, but not so many for text fields.
Thanks in advance for your help.
<TBODY>
</TBODY>
I receive a worksheet everymonth that contains 2 fields, State_Of_Area and Area_Name. I need to create a new column of the Area_Name based the those two fields, and a 3rd field I place in the worksheet named Acceptable States.
If the Area_Name = "Outside Area - Name of State" and the State_Of_Area is listed in the field of Acceptable States, the Area_Name becomes "InstateOutOfArea." However, if the state in State_Of_Area is CA, which is an acceptable state, the Area_Name becomes "CA_InStateOutOfArea." States not listed in the list of Acceptable States are all named "Outside." Everything else keeps the same name in the new Area_Name field.
I am using a 3 step process to arrive at this, replacing the name as is unles it contains the word "Outside". The next step is to replace the name if the State_Of_Area is in an acceptable state, and then finding California and fixing those names. There must be a way to do this with one formula.
I've found plenty of examples based on numbers fields, but not so many for text fields.
Thanks in advance for your help.
<TBODY> </TBODY> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<TBODY>
</TBODY>