Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default IF Column A contains "xyz" replace with...


Hi,

At work we have to continiously delete a variable in column B:

For example:

We have to edit "Orange - Nokia - 6280" to become "Orange - Nokia"

and

"Vodafone - Motorola - V3" to become "Vodafone - Motorola".

In other words, deleting the phone model number after the phone
manufacturer.

Is there a forumla that will do the following:

If Column B contains "Orange/Vodafone - Nokia/Motorola - (mobile model
number)" delete the model number or variable after the phone
manufacturer

Thanks for reading and I hope i make sense.


--
noswad
------------------------------------------------------------------------
noswad's Profile: http://www.excelforum.com/member.php...o&userid=36993
View this thread: http://www.excelforum.com/showthread...hreadid=567161

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default IF Column A contains "xyz" replace with...

Hi!

Use EditReplace

Select the range of cells in question
Goto EditReplace
Find what: Orange - Nokia*
Replace with: Orange - Nokia
Relace All

Repeat the process for Vodafone - Motorola
Find what: Vodafone - Motorola*
Replace with: Vodafone - Motorola

If you do this often turn on the macro recorder when you do the above and in
the future just run the macro.

Biff

"noswad" wrote in
message ...

Hi,

At work we have to continiously delete a variable in column B:

For example:

We have to edit "Orange - Nokia - 6280" to become "Orange - Nokia"

and

"Vodafone - Motorola - V3" to become "Vodafone - Motorola".

In other words, deleting the phone model number after the phone
manufacturer.

Is there a forumla that will do the following:

If Column B contains "Orange/Vodafone - Nokia/Motorola - (mobile model
number)" delete the model number or variable after the phone
manufacturer

Thanks for reading and I hope i make sense.


--
noswad
------------------------------------------------------------------------
noswad's Profile:
http://www.excelforum.com/member.php...o&userid=36993
View this thread: http://www.excelforum.com/showthread...hreadid=567161



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default IF Column A contains "xyz" replace with...

If your format is always as presented in your samples, then this formula in a
helper cell should work......

=LEFT(A1,FIND("-",A1,FIND("-",A1,FIND("-",A1,1)+1))-2)

Vaya con Dios,
Chuck, CABGx3




"noswad" wrote:


Hi,

At work we have to continiously delete a variable in column B:

For example:

We have to edit "Orange - Nokia - 6280" to become "Orange - Nokia"

and

"Vodafone - Motorola - V3" to become "Vodafone - Motorola".

In other words, deleting the phone model number after the phone
manufacturer.

Is there a forumla that will do the following:

If Column B contains "Orange/Vodafone - Nokia/Motorola - (mobile model
number)" delete the model number or variable after the phone
manufacturer

Thanks for reading and I hope i make sense.


--
noswad
------------------------------------------------------------------------
noswad's Profile: http://www.excelforum.com/member.php...o&userid=36993
View this thread: http://www.excelforum.com/showthread...hreadid=567161


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
how can i multiply two columns edgar Excel Worksheet Functions 7 March 2nd 06 03:29 PM
Positioning Numeric Values Resulting from 6 Column Array Formula Sam via OfficeKB.com Excel Worksheet Functions 2 January 5th 06 02:03 AM
IF/AND/OR/DATEIF Issue...sorry...long post... EDSTAFF Excel Worksheet Functions 1 November 10th 05 12:28 AM
creating a bar graph Johnfli Excel Discussion (Misc queries) 0 October 26th 05 08:16 PM
How to replace column letter in refferences with a function using the old column letter? Dmitry Kopnichev Excel Worksheet Functions 6 October 13th 05 09:09 AM


All times are GMT +1. The time now is 05:21 AM.

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"