Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default adding numbers but not letters

I have two columns of mainly numbers - I want to know if each column has a
number of 5 or over. Using IF(AND(D3=5, E3=5), "yes", "no") gives the right
answer unless there is a letter in one of the cells. How can I get it to
ignore all letters?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default adding numbers but not letters

=IF(COUNT(D3:E3)=2,IF(AND(D3=5, E3=5), "yes", "no"),"no")
or
=IF(AND(COUNT(D3:E3)=2,D3=5, E3=5), "yes", "no")
best wishes

--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"SoozeeC" wrote in message
...
I have two columns of mainly numbers - I want to know if each column has a
number of 5 or over. Using IF(AND(D3=5, E3=5), "yes", "no") gives the
right
answer unless there is a letter in one of the cells. How can I get it to
ignore all letters?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 510
Default adding numbers but not letters

Hi,

Use Countif() :

=COUNTIF(D1:D5,"=5")

HTH
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default adding numbers but not letters

On Fri, 14 Dec 2007 04:39:01 -0800, SoozeeC
wrote:

I have two columns of mainly numbers - I want to know if each column has a
number of 5 or over. Using IF(AND(D3=5, E3=5), "yes", "no") gives the right
answer unless there is a letter in one of the cells. How can I get it to
ignore all letters?



=IF(AND(N(D3)=5, N(E3)=5), "yes", "no")


--ron
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default adding numbers but not letters

Many Thanks - that works fine

"Bernard Liengme" wrote:

=IF(COUNT(D3:E3)=2,IF(AND(D3=5, E3=5), "yes", "no"),"no")
or
=IF(AND(COUNT(D3:E3)=2,D3=5, E3=5), "yes", "no")
best wishes

--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"SoozeeC" wrote in message
...
I have two columns of mainly numbers - I want to know if each column has a
number of 5 or over. Using IF(AND(D3=5, E3=5), "yes", "no") gives the
right
answer unless there is a letter in one of the cells. How can I get it to
ignore all letters?




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
Adding a space inbetween letters and numbers in a cell Jazzman10 Excel Discussion (Misc queries) 2 June 21st 07 01:31 PM
Help adding letters in column melisa0820 Excel Worksheet Functions 2 June 11th 07 02:28 PM
adding numbers with letters Singha Excel Discussion (Misc queries) 4 October 25th 06 01:34 PM
FORMULAS FOR ADDING LETTERS REPRESENTING NUMBERS koolone Excel Discussion (Misc queries) 1 April 8th 05 12:39 PM
adding letters in a payroll calendar ryanjh79 Excel Discussion (Misc queries) 6 December 17th 04 06:36 PM


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