I am compiling a census and need a formula that will look up the data found in Column A and return/categorize the results into one of four values (either E, ES, EC or FF) in Column B.
Column A either contains "E", "ES" or "C".
I need the formula in Column B to return the following:
If A16=blank, then B16=blank.
If A16 is not blank but does not contain "E", then B16=blank.
If A16=E, then look up in Column A beginning at A16 and see if "SP" occurs before the next occurrence of "E" in Column A, if yes, then keep looking down in Column A to see if "C" also occurs before the next "E", if yes, then B16 = FF.
If A16=E, then look up in Column A beginning at A16 and see if "SP" occurs before the next occurrence of "E" in Column A, if yes, then keep looking down in Column A to see if "C" also occurs before the next "E", if no, then B16 = ES.
If A16=E, then look up in Column A beginning at A16 and see if "SP" occurs before the next occurrence of "E" in Column A, if no, then keep looking down in Column A to see if "C" also occurs before the next "E", if yes, then B16 = EC.
If A16=E, then look up in Column A beginning at A16 and see if "SP" occurs before the next occurrence of "E" in Column A, if no, then keep looking down in Column A to see if "C" also occurs before the next "E", if yes, then B16 = E.
Attached is sample census file.
My prayers to God in Jesus' name for the solution to this challenge of mine and a big THANK YOU in advance to anyone who has the wisdom they can impart to me here.
Bookmarks