Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 63
Default in excel 2003 a formula if cells have 0 = n 1-3 =s 4ormore=s

Excel 2003 I need to create a formula that would count each cell with a
number in it as 1 and assign a letter
if cells adds up to 0 = N
if cells adds up 1-3 = I
if cells adds up to 4 = S
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 96
Default in excel 2003 a formula if cells have 0 = n 1-3 =s 4ormore=s

Try the following formula (which assumes your range of cells you want checked
is A6:A13.

=IF(COUNT(A6:A13)=0,"N",IF(AND(COUNT(A6:A13)=1,CO UNT(A6:A13)<=3),"I",IF(COUNT(A6:A13)=4,"S","Other" )))

Hope this helps.

Bill Horton

"Vick" wrote:

Excel 2003 I need to create a formula that would count each cell with a
number in it as 1 and assign a letter
if cells adds up to 0 = N
if cells adds up 1-3 = I
if cells adds up to 4 = S

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default in excel 2003 a formula if cells have 0 = n 1-3 =s 4ormore=s


Vick,

Try,

=IF(COUNT(A1:A5)=0,"N",IF(COUNT(A1:A5)<=3,"I","S") )

A1:A5 is your range to count.

COUNT will also count dates if they appear in your range.


HTH

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=570030

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 63
Default in excel 2003 a formula if cells have 0 = n 1-3 =s 4ormore=s

Thanks William, but the answers keep saying "other"

"William Horton" wrote:

Try the following formula (which assumes your range of cells you want checked
is A6:A13.

=IF(COUNT(A6:A13)=0,"N",IF(AND(COUNT(A6:A13)=1,CO UNT(A6:A13)<=3),"I",IF(COUNT(A6:A13)=4,"S","Other" )))

Hope this helps.

Bill Horton

"Vick" wrote:

Excel 2003 I need to create a formula that would count each cell with a
number in it as 1 and assign a letter
if cells adds up to 0 = N
if cells adds up 1-3 = I
if cells adds up to 4 = S

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 96
Default in excel 2003 a formula if cells have 0 = n 1-3 =s 4ormore=s

If you keep getting OTHER it means that the count must be greater than 4. If
you want it to be S if it is 4 or greater change the formula to:

=IF(COUNT(A6:A13)=0,"N",IF(AND(COUNT(A6:A13)=1,CO UNT(A6:A13)<=3),"I",IF(COUNT(A6:A13)=4,"S","Other ")))

Hope this helps.

Bill Horton

"Vick" wrote:

Thanks William, but the answers keep saying "other"

"William Horton" wrote:

Try the following formula (which assumes your range of cells you want checked
is A6:A13.

=IF(COUNT(A6:A13)=0,"N",IF(AND(COUNT(A6:A13)=1,CO UNT(A6:A13)<=3),"I",IF(COUNT(A6:A13)=4,"S","Other" )))

Hope this helps.

Bill Horton

"Vick" wrote:

Excel 2003 I need to create a formula that would count each cell with a
number in it as 1 and assign a letter
if cells adds up to 0 = N
if cells adds up 1-3 = I
if cells adds up to 4 = S



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 63
Default in excel 2003 a formula if cells have 0 = n 1-3 =s 4ormore=s

Thanks Steve, I am almost there. I need to have it count the cells that have
a number greater than 0 and then count the cells as one and then assign the
following. If the cells have all 0 I need it to = N
1-3 = I
3-4 = S
0 = N

"SteveG" wrote:


Vick,

Try,

=IF(COUNT(A1:A5)=0,"N",IF(COUNT(A1:A5)<=3,"I","S") )

A1:A5 is your range to count.

COUNT will also count dates if they appear in your range.


HTH

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=570030


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 63
Default in excel 2003 a formula if cells have 0 = n 1-3 =s 4ormore=s

Thanks Williams, I am almost there. I need to have it count the cells that
have
a number greater than 0 and then count each cell as 1 and then assign the
following. If the cells have all 0 I need it to = N
1-3 cells with a number greater than 0 = I
3-4 cells with a number greater than 0 = S
all 0 in each cell = N


"William Horton" wrote:

If you keep getting OTHER it means that the count must be greater than 4. If
you want it to be S if it is 4 or greater change the formula to:

=IF(COUNT(A6:A13)=0,"N",IF(AND(COUNT(A6:A13)=1,CO UNT(A6:A13)<=3),"I",IF(COUNT(A6:A13)=4,"S","Other ")))

Hope this helps.

Bill Horton

"Vick" wrote:

Thanks William, but the answers keep saying "other"

"William Horton" wrote:

Try the following formula (which assumes your range of cells you want checked
is A6:A13.

=IF(COUNT(A6:A13)=0,"N",IF(AND(COUNT(A6:A13)=1,CO UNT(A6:A13)<=3),"I",IF(COUNT(A6:A13)=4,"S","Other" )))

Hope this helps.

Bill Horton

"Vick" wrote:

Excel 2003 I need to create a formula that would count each cell with a
number in it as 1 and assign a letter
if cells adds up to 0 = N
if cells adds up 1-3 = I
if cells adds up to 4 = S

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 63
Default in excel 2003 a formula if cells have 0 = n 1-3 =s 4ormore=s

I changed =if(sum(d6:g6)=0,'N"
that gives me the right letter

IF(AND(COUNT(A6:A13)=1,COUNT(A6:A13)<=3),"I",IF(C OUNT(A6:A13)=4,"S","Other")))
But the trouble is achieving the letter "S"

"William Horton" wrote:

If you keep getting OTHER it means that the count must be greater than 4. If
you want it to be S if it is 4 or greater change the formula to:

=IF(COUNT(A6:A13)=0,"N",IF(AND(COUNT(A6:A13)=1,CO UNT(A6:A13)<=3),"I",IF(COUNT(A6:A13)=4,"S","Other ")))

Hope this helps.

Bill Horton

"Vick" wrote:

Thanks William, but the answers keep saying "other"

"William Horton" wrote:

Try the following formula (which assumes your range of cells you want checked
is A6:A13.

=IF(COUNT(A6:A13)=0,"N",IF(AND(COUNT(A6:A13)=1,CO UNT(A6:A13)<=3),"I",IF(COUNT(A6:A13)=4,"S","Other" )))

Hope this helps.

Bill Horton

"Vick" wrote:

Excel 2003 I need to create a formula that would count each cell with a
number in it as 1 and assign a letter
if cells adds up to 0 = N
if cells adds up 1-3 = I
if cells adds up to 4 = S

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default in excel 2003 a formula if cells have 0 = n 1-3 =s 4ormore=s


Vick,

Try this,


=IF(COUNT(A6:A13)=COUNTIF(A6:A13,0),"N",IF(COUNTIF (A6:A13,"0")<=4,CHOOSE(COUNTIF(A6:A13,"0"),"I"," I","I","S"),"Other"))

HTH

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=570030

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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Running Excel 2000 VBA Application on Excel 2003 Excel Worksheet Functions 0 August 8th 06 06:04 PM
Using Excel 2000 VBA Application on Excel 2003 Excel Worksheet Functions 0 August 8th 06 02:36 AM
Convert Excel 4 formula to Excel 2003 format The Gasell Excel Worksheet Functions 3 April 12th 06 05:07 PM
Is there an Excel formula to sum color filled cells? Alfred Kingfisher Excel Worksheet Functions 3 March 3rd 06 12:32 PM


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