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 Using text instead of number. e.g. If(E10=C,1,0)

Hello
I wish to have a column for texts, either 'C','S' or 'E' and combinations of
CSE

such as @IF(E10=C,1,0) and @IF(E10=CS,2,0) and IF(E10=CSE,3,0)

I want to put the text CSE in Column D and the formula in Column G.

Hope you can help and that this makes sence?

How do I do this.

Thanks

John
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Using text instead of number. e.g. If(E10=C,1,0)

From your example it seem the text is in D not E
How about =LEN(E10) ?
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"walkersuniverse" wrote in
message ...
Hello
I wish to have a column for texts, either 'C','S' or 'E' and combinations
of
CSE

such as @IF(E10=C,1,0) and @IF(E10=CS,2,0) and IF(E10=CSE,3,0)

I want to put the text CSE in Column D and the formula in Column G.

Hope you can help and that this makes sence?

How do I do this.

Thanks

John



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 620
Default Using text instead of number. e.g. If(E10=C,1,0)

=IF(E10="C",1,IF(E10="CS",2,IF(E10="CSE",3,"result unspecified")))
--
David Biddulph

"walkersuniverse" wrote in
message ...
Hello
I wish to have a column for texts, either 'C','S' or 'E' and combinations
of
CSE

such as @IF(E10=C,1,0) and @IF(E10=CS,2,0) and IF(E10=CSE,3,0)

I want to put the text CSE in Column D and the formula in Column G.

Hope you can help and that this makes sence?

How do I do this.

Thanks

John



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 303
Default Using text instead of number. e.g. If(E10=C,1,0)

enter in G10.......=if(D10="C",1,if(D10="CS",2,if(d10="CSE" ,3,"")))

or you could keep it simple and enter in G10 ... =len(d10)

Greetings from New Zealand
"walkersuniverse" wrote in
message ...
Hello
I wish to have a column for texts, either 'C','S' or 'E' and combinations
of
CSE

such as @IF(E10=C,1,0) and @IF(E10=CS,2,0) and IF(E10=CSE,3,0)

I want to put the text CSE in Column D and the formula in Column G.

Hope you can help and that this makes sence?

How do I do this.

Thanks

John



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Using text instead of number. e.g. If(E10=C,1,0)

I don't think you posted ALL of the rules....but here are a couple guesses at
what you might want.

If D1 *may* contain C,S,E or a combination of those (in single occurrences)
Then....maybe this:
G1: =SUM(COUNTIF(D1,"*"&{"C","S","E"}&"*"))

However, if D1 will ONLY contain C,S,E or a combination of those (in single
occurrences)
Then....maybe this:
G1: =LEN(D1)

If there are more rules, though, please post them.

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"walkersuniverse" wrote:

Hello
I wish to have a column for texts, either 'C','S' or 'E' and combinations of
CSE

such as @IF(E10=C,1,0) and @IF(E10=CS,2,0) and IF(E10=CSE,3,0)

I want to put the text CSE in Column D and the formula in Column G.

Hope you can help and that this makes sence?

How do I do this.

Thanks

John



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
Copy from a Cell to a text box. AJL Excel Worksheet Functions 9 November 7th 06 04:58 PM
Text entries behaving like numbers jkiser Excel Discussion (Misc queries) 12 August 30th 06 09:29 PM
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 06:16 PM
How do I look up a number within a string of text Rich Hayes Excel Worksheet Functions 3 October 14th 05 05:49 PM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM


All times are GMT +1. The time now is 10:58 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"