Lookup results seem unclear

sunrise06

Active Member
Joined
Oct 27, 2006
Messages
264
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!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
What formula are you using ???
I'm guessing a simple VLOOKUP would be all you need ??
 
Upvote 0
Tell me the desired result for "Marketing Sales", there are 3 possibilities:
- Marketing
- Sales
or
- Marketing and Sales
 
Upvote 0
Michael, the attached document shows you the formula. It is not a simple VLOOKUP as it is a "contains" argument, per se.
 
Upvote 0
Dante Armor, I am assuming Marketing Sales would return Marketing and Sales Marketing would return Sales, not Sales for both. Then again, I do not have a clear understanding of their formula.
 
Upvote 0
As I can't open the attached....I asked the question ????
 
Upvote 0
What formula are you using ???
I'm guessing a simple VLOOKUP would be all you need ??

I share the formula.


=IF(ISNUMBER(search(Validation!$S$2,$F2)),Validation!$S$2,IF(ISNUMBER(search(Validation!$S$3,$F2)),Validation!$S$3,
IF(ISNUMBER(search(Validation!$S$4,$F2)),Validation!$S$4,
IF(ISNUMBER(search(Validation!$S$5,$F2)),Validation!$S$5,
IF(ISNUMBER(search(Validation!$S$6,$F2)),Validation!$S$6,
IF(ISNUMBER(search(Validation!$S$7,$F2)),Validation!$S$7,
IF(ISNUMBER(search(Validation!$S$8,$F2)),Validation!$S$8,
IF(ISNUMBER(search(Validation!$S$9,$F2)),Validation!$S$9,"Other"))))))))
 
Upvote 0
Dante Armor, I am assuming Marketing Sales would return Marketing and Sales Marketing would return Sales, not Sales for both. Then again, I do not have a clear understanding of their formula.

Do not worry about the formula, the important thing is to say what result you want.
 
Upvote 0
The inconsistency is not of the formula. The inconsistency is in the data you have:


- Marketing Sales
- Sales Marketing
- Vice President of Sales
- Co-Founder and President



The texts belong to 2 avatar.

Avatar options:
[TABLE="class: grid, width: 76"]
<tbody>[TR]
[TD]CEO[/TD]
[/TR]
[TR]
[TD]Sales[/TD]
[/TR]
[TR]
[TD]Marketing[/TD]
[/TR]
[TR]
[TD]Founder[/TD]
[/TR]
[TR]
[TD]President[/TD]
[/TR]
[TR]
[TD]Owner[/TD]
[/TR]
[TR]
[TD]Partner[/TD]
[/TR]
[TR]
[TD]Human Resources[/TD]
[/TR]
</tbody>[/TABLE]


You should explain a search pattern.
 
Upvote 0
Thank you, as it is not my file I am not sure which one is preffered. I guess one of my questions is why do they return the same value and why do the Vice President of Sales and Vice President of Operations not return President for both?
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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