Not sure if I should be using an IF function, a VLOOKUP function, or a combination of both...
I have two worksheets that serve as raw data. I have created a summary worksheet, which I am trying to lookup data from the data worksheets.
Worksheet 1
Cell A1 = ABC 01
Cell A2 = Blank
Worksheet 2
Cell A1 = Blank
Cell A2 = ABC 99
Worksheet 3 (Summary)
Cell A1
I want to lookup cell A1 in worksheet 1 and see if it contains the text string ''ABC''. If it contains the text string ''ABC'' (in this case, it does), then I want the value in cell A1 in worksheet 1 to be returned (in this case =''ABC 01''). If the test doesn't work, I want to check the value in cell A1 in worksheet 2.
Worksheet 3 (Summary)
Cell A2
Same thing, but, since cell A2 in worksheet 1 is blank, I want Excel to check cell A2 in worksheet 2. Since A2 in worksheet 2 contains the text string ''ABC'', I want the value in cell A2 in worksheet 2 to be returned (in this case = ''ABC 99'')
I tried the following IF statement:
=IF(Worksheet1!A1="ABC",Worksheet1!A1,IF(Worksheet2!A1="ABC", Worksheet2!A1,FALSE))
Problem is, the text has to be an exact match. I am looking for a match within a text string (ABC works with ABC 01, ABC 99, or ABC123, etc...)
Your help is greatly appreciated.
If my scenario is ambiguous...let me know, and I'll try another example!
Thanks in advance,
F499
I have two worksheets that serve as raw data. I have created a summary worksheet, which I am trying to lookup data from the data worksheets.
Worksheet 1
Cell A1 = ABC 01
Cell A2 = Blank
Worksheet 2
Cell A1 = Blank
Cell A2 = ABC 99
Worksheet 3 (Summary)
Cell A1
I want to lookup cell A1 in worksheet 1 and see if it contains the text string ''ABC''. If it contains the text string ''ABC'' (in this case, it does), then I want the value in cell A1 in worksheet 1 to be returned (in this case =''ABC 01''). If the test doesn't work, I want to check the value in cell A1 in worksheet 2.
Worksheet 3 (Summary)
Cell A2
Same thing, but, since cell A2 in worksheet 1 is blank, I want Excel to check cell A2 in worksheet 2. Since A2 in worksheet 2 contains the text string ''ABC'', I want the value in cell A2 in worksheet 2 to be returned (in this case = ''ABC 99'')
I tried the following IF statement:
=IF(Worksheet1!A1="ABC",Worksheet1!A1,IF(Worksheet2!A1="ABC", Worksheet2!A1,FALSE))
Problem is, the text has to be an exact match. I am looking for a match within a text string (ABC works with ABC 01, ABC 99, or ABC123, etc...)
Your help is greatly appreciated.
If my scenario is ambiguous...let me know, and I'll try another example!
Thanks in advance,
F499