I need a formula to lookup text in a cell & return a set result in another cell.
So if D2 contains the abbreviation "BA", F2 would say BA, if D2 contains the abbreviation "MA", F2 would say MA.
Any help would be appreciated.
I need a formula to lookup text in a cell & return a set result in another cell.
So if D2 contains the abbreviation "BA", F2 would say BA, if D2 contains the abbreviation "MA", F2 would say MA.
Any help would be appreciated.
try
=IF(COUNTIF(D2,"*BA*"),"BA",IF(COUNTIF(D2,"*MA*"),"MA",""))
you could use a MATCH
And various other ways to solve, but this is how i would solve
Wayne
if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here
If you have a solution to your thread - Please mark your thread solved do the following: >
Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.
That worked perfectly. Thank you so much for your help! I'll mark the post as solved.
Hi there and welcome. Try this formula in F2: =IF(ISERROR(FIND("BA",D2)),IF(ISERROR(FIND("MA",D2)),"","MA"),"BA")
John
you are welcome , as mentioned loads of different ways to solve , including match/find etc
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks