Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 193
Default Create helper column which returns a text string based on multiplecriteria.

Have a column of data containng production codes, and need a helper
column to categorize them.
Need to identify a few characters within the cells contents, and
return another value based on what it finds:

Source data looks like this:
V009.ELE120
V144.128
V785.ELE150
V450.ELE22
T543.ELE295
Y564.ELE965
G125701.DYS021

If the cells contents contain a ELE120 or ELE150 a "Production" would
be returned. Any other ELE's (not containing the 120 or 150
immediately following) would return "Sunshine".
If the cell contains DYS, another value would be returned.
Data to be looked up is preceded by the period. All other characters
can be ignored.

Tried: =IF(A1="*ELE120*","Production",IF(A1="*ELE150*"Pro duction",IF
(A1="*DYS*","System")))

But the wildcard of having ELE coupled with 2 or 3 additional digits
make this formula cumbersome. All the other ELE's would be something
else. I think there's something wrong with the wildcard* character.

ideas?

Thanks for any help.
Pierre
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Create helper column which returns a text string based on multiple criteria.

Try this:

=IF(OR(COUNTIF(A1,"*.ELE"&{120,150})),"Production" ,IF(COUNTIF(A1,"*.ELE*"),"Sunshine",IF(COUNTIF(A1, "*.DYS*"),"System","")))

--
Biff
Microsoft Excel MVP


"Pierre" wrote in message
...
Have a column of data containng production codes, and need a helper
column to categorize them.
Need to identify a few characters within the cells contents, and
return another value based on what it finds:

Source data looks like this:
V009.ELE120
V144.128
V785.ELE150
V450.ELE22
T543.ELE295
Y564.ELE965
G125701.DYS021

If the cells contents contain a ELE120 or ELE150 a "Production" would
be returned. Any other ELE's (not containing the 120 or 150
immediately following) would return "Sunshine".
If the cell contains DYS, another value would be returned.
Data to be looked up is preceded by the period. All other characters
can be ignored.

Tried: =IF(A1="*ELE120*","Production",IF(A1="*ELE150*"Pro duction",IF
(A1="*DYS*","System")))

But the wildcard of having ELE coupled with 2 or 3 additional digits
make this formula cumbersome. All the other ELE's would be something
else. I think there's something wrong with the wildcard* character.

ideas?

Thanks for any help.
Pierre



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 193
Default Create helper column which returns a text string based onmultiple criteria.

On Mar 27, 3:44*pm, "T. Valko" wrote:
Try this:

=IF(OR(COUNTIF(A1,"*.ELE"&{120,150})),"Production" ,IF(COUNTIF(A1,"*.ELE*"),*"Sunshine",IF(COUNTIF(A1 ,"*.DYS*"),"System","")))

--
Biff
Microsoft Excel MVP

"Pierre" wrote in message

...



Have *a column of data containng production codes, and need a helper
column to categorize them.
Need to identify a few characters within the cells contents, and
return another value based on what it finds:


Source data looks like this:
V009.ELE120
V144.128
V785.ELE150
V450.ELE22
T543.ELE295
Y564.ELE965
G125701.DYS021


If the cells contents contain a ELE120 or ELE150 a "Production" would
be returned. *Any other ELE's (not containing the 120 or 150
immediately following) would return "Sunshine".
If the cell contains DYS, another value would be returned.
Data to be looked up is preceded by the period. *All other characters
can be ignored.


Tried: =IF(A1="*ELE120*","Production",IF(A1="*ELE150*"Pro duction",IF
(A1="*DYS*","System")))


But the wildcard of having ELE coupled with 2 or 3 additional digits
make this formula cumbersome. All the other ELE's would be something
else. *I think there's something wrong with the wildcard* character.


ideas?


Thanks for any help.
Pierre- Hide quoted text -


- Show quoted text -


Thank you, yet once again. I annoint you: "Sir Genius".

Pierre
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Create helper column which returns a text string based on multiple criteria.

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Pierre" wrote in message
...
On Mar 27, 3:44 pm, "T. Valko" wrote:
Try this:

=IF(OR(COUNTIF(A1,"*.ELE"&{120,150})),"Production" ,IF(COUNTIF(A1,"*.ELE*"),*"Sunshine",IF(COUNTIF(A1 ,"*.DYS*"),"System","")))

--
Biff
Microsoft Excel MVP

"Pierre" wrote in message

...



Have a column of data containng production codes, and need a helper
column to categorize them.
Need to identify a few characters within the cells contents, and
return another value based on what it finds:


Source data looks like this:
V009.ELE120
V144.128
V785.ELE150
V450.ELE22
T543.ELE295
Y564.ELE965
G125701.DYS021


If the cells contents contain a ELE120 or ELE150 a "Production" would
be returned. Any other ELE's (not containing the 120 or 150
immediately following) would return "Sunshine".
If the cell contains DYS, another value would be returned.
Data to be looked up is preceded by the period. All other characters
can be ignored.


Tried: =IF(A1="*ELE120*","Production",IF(A1="*ELE150*"Pro duction",IF
(A1="*DYS*","System")))


But the wildcard of having ELE coupled with 2 or 3 additional digits
make this formula cumbersome. All the other ELE's would be something
else. I think there's something wrong with the wildcard* character.


ideas?


Thanks for any help.
Pierre- Hide quoted text -


- Show quoted text -


Thank you, yet once again. I annoint you: "Sir Genius".

Pierre


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
Can I insert 'carriage/line returns' in text string? DC-Frank Excel Worksheet Functions 1 June 16th 08 04:54 PM
Help formula that returns a text string from another sheet Stuart k Excel Worksheet Functions 1 April 7th 08 01:53 PM
Create a 'text' string based on whether values appear in other cel Ben Excel Worksheet Functions 4 February 20th 07 10:05 AM
use concatenate function to put carrage returns in a text string dabblingandconfused Excel Worksheet Functions 4 August 15th 06 04:58 PM
What is a helper column? RMPPOD Excel Discussion (Misc queries) 3 January 28th 05 07:37 PM


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

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

About Us

"It's about Microsoft Excel"