Multiple if condition help please

map6122

New Member
Joined
Jan 28, 2016
Messages
22
Hello fellas,

I have over 60000 rows of data in excel 2010.
Each row have unique client name

like I have 4 client names I want to keep the same as their real name in Client placeholder to automate column. I have another 40 clients like John and David that I want to assign them Other in Client placeholder to automate column. Is there a way to do it??
Thanks in advance.

Client name Client Placeholder to automate
ABCABC
ABC1ABC1
ABC2ABC2
JohnOther
DavidOther

<tbody>
</tbody>
 
you are right it's not actual names.
Sorry can't post confidential work stuff here. Entire excel data i posted was generic data.
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Yes let me explain more in detail.

ABC is main company

David and John is ABC subsidiary so i want excel to output ABC for John and David.

Main company abc have at least 20 small subsidiary. I will add rest 18 after you show me how to add two companies.
 
Last edited:
Upvote 0
Without realist samples....
L​
M​
1​
123 abc 456123 abc 456
2​
234 abc 567234 abc 567
3​
345 abc 678345 abc 678
4​
abcabc
5​
abdother
6​
acdother
7​
cadother
M1=IF(ISNUMBER(SEARCH("abc",L1)),L1,"other")
copied down
 
Upvote 0
you are right it's not actual names.
Sorry can't post confidential work stuff here. Entire excel data i posted was generic data.

That was why I asked for realist sample data, I fully understand you cannot post real data, but the closer your samples are, the better we can structure answers :)
 
Upvote 0
Yes let me explain more in detail.

ABC is main company

David and John is ABC subsidiary so i want excel to output ABC for John and David.

Main company abc have at least 20 small subsidiary. I will add rest 18 after you show me how to add two companies.
Here is an updated formula. Now it has "nested IFs". If you add 18 more names, it can become quite bulky.

=IF(OR(A1="ABC",A1="ABC1",A1="ABC2",A1="ABC3"),A1,IF(OR(A1="John",A1="David"),"ABC","Other"))
 
Upvote 0
map6122

Do you only want to do this just once.
If so, why not autofilter your data and deselect the 4 company names you want to keep the same, then type "other" into the top row and copy down.
then change the filter to company 1, write the company name in the top row, copy down and repeat for the other companies.

Dave
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
Members
449,088
Latest member
RandomExceller01

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