Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Perform a "Conditional Substitute/Replace"

I have two worksheets:
1st wksht has raw data including one column with users' unix IDs
2nd wksht has users' full names

After adding a new column to the right of the unix ID column, I want to
search for every occurrence of each user's unix ID (in the 1st wksht) and
place the user's full name (from the 2nd wksht) into the new column on the
right (for instance:

Sheet1 unix id="brubble"
Sheet2 unix id="Barney Rubble (brubble)"
After adding new column to right of Sheet1 unix id="brubble", function
searches Sheet2 and every row that contains "brubble" will have "Barney
Rubble (brubble)" placed in cell immediately to the right.

Hope this makes sense.

BTW, using Excel 2003 on a Windows 2000 platform

--
Thanks!
Bay Area DebG
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Perform a "Conditional Substitute/Replace"

If I understand correctly, the ID in Sheet1 is embedded in the ID name in
Sheet2 i.e in the brackets and not in a separate column If this is correct
try putting this in B2 in Sheet1 and copy down:

=VLOOKUP("*" & A2&"*",Sheet2!A:A,1,FALSE)

It assumes IDs & ID names are in column A on both sheets.

HTH

"Bay Area DebG" wrote:

I have two worksheets:
1st wksht has raw data including one column with users' unix IDs
2nd wksht has users' full names

After adding a new column to the right of the unix ID column, I want to
search for every occurrence of each user's unix ID (in the 1st wksht) and
place the user's full name (from the 2nd wksht) into the new column on the
right (for instance:

Sheet1 unix id="brubble"
Sheet2 unix id="Barney Rubble (brubble)"
After adding new column to right of Sheet1 unix id="brubble", function
searches Sheet2 and every row that contains "brubble" will have "Barney
Rubble (brubble)" placed in cell immediately to the right.

Hope this makes sense.

BTW, using Excel 2003 on a Windows 2000 platform

--
Thanks!
Bay Area DebG

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Perform a "Conditional Substitute/Replace"

That worked perfectly. You are an absolute god/goddess... I shall be grateful
forever! THANK YOU!!! :-)
--
Let me know if this helps!
Bay Area DebG


"Toppers" wrote:

If I understand correctly, the ID in Sheet1 is embedded in the ID name in
Sheet2 i.e in the brackets and not in a separate column If this is correct
try putting this in B2 in Sheet1 and copy down:

=VLOOKUP("*" & A2&"*",Sheet2!A:A,1,FALSE)

It assumes IDs & ID names are in column A on both sheets.

HTH

"Bay Area DebG" wrote:

I have two worksheets:
1st wksht has raw data including one column with users' unix IDs
2nd wksht has users' full names

After adding a new column to the right of the unix ID column, I want to
search for every occurrence of each user's unix ID (in the 1st wksht) and
place the user's full name (from the 2nd wksht) into the new column on the
right (for instance:

Sheet1 unix id="brubble"
Sheet2 unix id="Barney Rubble (brubble)"
After adding new column to right of Sheet1 unix id="brubble", function
searches Sheet2 and every row that contains "brubble" will have "Barney
Rubble (brubble)" placed in cell immediately to the right.

Hope this makes sense.

BTW, using Excel 2003 on a Windows 2000 platform

--
Thanks!
Bay Area DebG

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
perform 1 function, stop, perform different function nastech Excel Discussion (Misc queries) 0 August 22nd 06 12:21 PM
perform a calculation when a certain phrase appears in a cell Eddie_of_Succasunna Excel Worksheet Functions 1 July 6th 06 09:11 AM
How to perform "ifcount" in many sheets Khoshravan Excel Discussion (Misc queries) 3 May 21st 06 04:45 PM
How to perform "ifcount" in many sheets Khoshravan Setting up and Configuration of Excel 1 May 21st 06 01:32 PM
How can perform a summation? Leebo Excel Worksheet Functions 5 August 23rd 05 04:38 PM


All times are GMT +1. The time now is 05:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"