#1   Report Post  
Rus
 
Posts: n/a
Default text formulas

I have "Y,N,&NA" in one column. In another column off to the right I am
counting those inputs. A total is then calculating those Y(which formulate
to be 100%) and N (which formulate to be 0%) and then averaging them.

However, I don't want the NA to be part of the average. Meaning, if NA is
input, then the count would be NA, instead of 0% (like the N). It throws off
the average and I want it excluded from the avg calculation

Any thoughts on how to get this to work??
  #2   Report Post  
Mangus Pyke
 
Posts: n/a
Default

On Mon, 18 Jul 2005 07:06:07 -0700, Rus
wrote:
I have "Y,N,&NA" in one column. In another column off to the right I am
counting those inputs. A total is then calculating those Y(which formulate
to be 100%) and N (which formulate to be 0%) and then averaging them.

However, I don't want the NA to be part of the average. Meaning, if NA is
input, then the count would be NA, instead of 0% (like the N). It throws off
the average and I want it excluded from the avg calculation

Any thoughts on how to get this to work??


For the percentage of Y:

=COUNTIF(A1:A100,"=Y")/COUNTIF(A1:A100,"<NA")

For the percentage of N:

=COUNTIF(A1:A100,"=N")/COUNTIF(A1:A100,"<NA")

MP-
--
"Learning is a behavior that results from consequences."
B.F. Skinner
  #3   Report Post  
Rus
 
Posts: n/a
Default

That one seems to work. However, it gives me the"#DIV/0" and I need them to
read "NA" in that cell for my average calculation to work. Any more
thoughts??

"Mangus Pyke" wrote:

On Mon, 18 Jul 2005 07:06:07 -0700, Rus
wrote:
I have "Y,N,&NA" in one column. In another column off to the right I am
counting those inputs. A total is then calculating those Y(which formulate
to be 100%) and N (which formulate to be 0%) and then averaging them.

However, I don't want the NA to be part of the average. Meaning, if NA is
input, then the count would be NA, instead of 0% (like the N). It throws off
the average and I want it excluded from the avg calculation

Any thoughts on how to get this to work??


For the percentage of Y:

=COUNTIF(A1:A100,"=Y")/COUNTIF(A1:A100,"<NA")

For the percentage of N:

=COUNTIF(A1:A100,"=N")/COUNTIF(A1:A100,"<NA")

MP-
--
"Learning is a behavior that results from consequences."
B.F. Skinner

  #4   Report Post  
Tim C
 
Posts: n/a
Default

Try:

=COUNTIF(A1:A100,"Y")/(COUNTIF(A1:A100,"Y")+COUNTIF(A1:A100,"N"))

Tim C

"Rus" wrote in message
...
I have "Y,N,&NA" in one column. In another column off to the right I am
counting those inputs. A total is then calculating those Y(which
formulate
to be 100%) and N (which formulate to be 0%) and then averaging them.

However, I don't want the NA to be part of the average. Meaning, if NA is
input, then the count would be NA, instead of 0% (like the N). It throws
off
the average and I want it excluded from the avg calculation

Any thoughts on how to get this to work??



  #5   Report Post  
Tim C
 
Posts: n/a
Default

Or shorter:

=1/(1+COUNTIF(A1:A100,"N")/COUNTIF(A1:A100,"Y"))

Tim C

"Tim C" wrote:

Try:

=COUNTIF(A1:A100,"Y")/(COUNTIF(A1:A100,"Y")+COUNTIF(A1:A100,"N"))

Tim C


"Rus" wrote:


I have "Y,N,&NA" in one column. In another column off to the right I am
counting those inputs. A total is then calculating those Y(which
formulate
to be 100%) and N (which formulate to be 0%) and then averaging them.

However, I don't want the NA to be part of the average. Meaning, if NA
is
input, then the count would be NA, instead of 0% (like the N). It throws
off
the average and I want it excluded from the avg calculation

Any thoughts on how to get this to work??



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 text in formulas Andreas Excel Worksheet Functions 2 July 11th 05 12:07 PM
show text after formulas Shirley Excel Discussion (Misc queries) 3 June 30th 05 09:19 PM
HOW DO I CORRECT A CONDITION IN WHICH ALL FORMULAS ACT LIKE TEXT? CHERYLZ Excel Worksheet Functions 1 June 22nd 05 12:58 AM
Excel formulas to create large blocks of text Greg Boettcher Excel Discussion (Misc queries) 5 June 12th 05 06:41 PM
I want Excel to allow cells with formulas and unrelated text blueboy Excel Discussion (Misc queries) 9 March 4th 05 12:22 AM


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