- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Look-up string and replace with specified string
Hello all,
I have data of company names ( over 200 rows) and some company names show up multiple times but as with a slightly different name as subsidiaries. For example, "company A", "company A Power" , "company A Electric".
I'm looking to create a new custom column that classifies each company (using a list of names that are on a hard copy) as either End User or Stakeholder. So if company A is an End User then all rows "company A", "company A Power" , "company A Electric" should be replaced with "End User". Any hints would be very helpful!
Thank you,
Bogdan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Splitting is then defeinitely not going to works for you. Create a seperate 2 column Table with Company Names in column1 and Type in column2. Create a relationship between the 2 and write a RELATED() function to bring over data from column2 into Table1.
Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Rather than look up and replace, is your data in a state whereby you could split your current column in some way to get rid of the last word, then join in your external list?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@jthomson I am able to split the column with a space delimiter and simplify the formula (eg. "CompanyA Power" and CompanyA Gas" both become "CompanyA" which then I can write an IF statement IF(Table1[Counterparties] = "CompanyA", "End User", IF(....
I considered writing nested IF statements to do it for all 260 counterparties, but the issue is sometimes CompanyA Power is an End User, but CompanyA Gas is a Marketer or Unknown. So overall splitting is a good strategy, but might work 100% of the time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Splitting is then defeinitely not going to works for you. Create a seperate 2 column Table with Company Names in column1 and Type in column2. Create a relationship between the 2 and write a RELATED() function to bring over data from column2 into Table1.
Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
01-23-2025 05:42 AM | |||
01-22-2025 01:48 AM | |||
09-04-2024 04:51 AM | |||
10-26-2023 08:14 AM | |||
03-21-2025 12:31 AM |
User | Count |
---|---|
141 | |
117 | |
80 | |
65 | |
47 |