Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Brian
 
Posts: n/a
Default if a cell = a particular letter or even contains that letter

=IF(M22="all","a",IF(M22="e","r","a"))

Notice the "e", how can I insert the following:

....If m22 contains "e" anywhere,"r","a"))

Thanks

Brian
  #2   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Sun, 27 Feb 2005 16:31:03 -0800, "Brian"
wrote:

=IF(M22="all","a",IF(M22="e","r","a"))

Notice the "e", how can I insert the following:

...If m22 contains "e" anywhere,"r","a"))

Thanks

Brian


.... =IF(COUNTIF(m22,"*e*")0,"r","a")


--ron
  #3   Report Post  
Ragdyer
 
Posts: n/a
Default

Try this:

=IF(M22="all","a",IF(ISNUMBER(SEARCH("e",M22)),"r" ,"a"))
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Brian" wrote in message
...
=IF(M22="all","a",IF(M22="e","r","a"))

Notice the "e", how can I insert the following:

...If m22 contains "e" anywhere,"r","a"))

Thanks

Brian


  #4   Report Post  
Rob van Gelder
 
Posts: n/a
Default

=IF(LEN(A1)LEN(SUBSTITUTE(A1, "e","")), "r", "a")

--
Rob van Gelder - http://www.vangelder.co.nz/excel


"Brian" wrote in message
...
=IF(M22="all","a",IF(M22="e","r","a"))

Notice the "e", how can I insert the following:

...If m22 contains "e" anywhere,"r","a"))

Thanks

Brian



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 do I get a letter in one cell ito equal a number in anotherl.. Dave Cadey Excel Discussion (Misc queries) 4 February 25th 05 02:37 PM
Capitalize first letter when type a name in each cell. Craig Brody Excel Worksheet Functions 6 December 20th 04 03:21 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM
Function / formula to be used if cell contains a letter. Cameron Stewart Excel Worksheet Functions 2 November 2nd 04 12:12 AM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 PM


All times are GMT +1. The time now is 01:53 PM.

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"