Lookup results seem unclear

sunrise06

Active Member
Joined
Oct 27, 2006
Messages
262
Office Version
  1. 365
Platform
  1. Windows
I am trying to help a friend and I am confused by the results. In a separate column called "Avatar", they want to identify the role of each individual based on their title. For instance, if the title has the word SALES in it, they want the avatar to be SALES, if the title has the word MARKETING, they want the avatar to be MARKETING. The results they are getting are confusing. For example, look at my Sheets document and look as the results for Marketing Sales and Sales Marketing and Vice President of Sales and Vice President of Operations.

Can anyone explain why the “Avatar” being returned is inconsistent? I am not very familiar with this formula. Perhaps there is a better solution?

Here is my sample file: https://docs.google.com/spreadsheets/d/1QH7nb6ztmID63BhC8gCt8iEdcyu-RnnBkfPQ4uRvsN8/edit?usp=sharing

Thanks!
 
Thanks, Dante Amor, if it is found in two Avatar's how it is determined which one is returned? Does it return the first one? Is there a better formula to accomplish this?
 
Upvote 0

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Thanks, Dante Amor, if it is found in two Avatar's how it is determined which one is returned? Does it return the first one? Is there a better formula to accomplish this?


how it is determined which one is returned?
This is determined by you or your friend.

The formula searches for each avatar within the text.
When it finds a match there it stops.

CEO
Sales
Marketing

Text:
Marketing Sales


<tbody>
</tbody>

<tbody>
</tbody>
First look for "CEO", you can not find it. Then look for "Sales", find it and put Sales.





Avatar
Sales
Marketing
Founder
President

<colgroup><col width="76" style="width:57pt"> </colgroup><tbody>
</tbody>


Text:

Vice President of Sales

Look for sales, find sales.

Vice President of Operations

Look for sales , do not find sales.
Look for marketing, do not find marketing.
look for founder, do not find founder
look for president, find president.

<colgroup><col></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,326
Messages
6,124,256
Members
449,149
Latest member
mwdbActuary

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top