Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Formula percent complete excluding given text string

I am doing a matrix and need help with a formula to exclude certain items
from a percent completed formula. I want to count the number of items in a
column of data except if the field contains the text NA. Then the formula
should return a percent complete on fields that contain any other character
or number from the total number possible (again, excluding the NA
characters).
Example:
=(Number of items with a character EXCEPT NA)/COUNTIF(L3:L58,"<NA")
I got the first part of the formula from another posting, but cant figure
out how to get the number of items that have a response excluding NA and
blanks. Any help you can provide would be much appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Formula percent complete excluding given text string

The range A1:a6 contains:
#N/A, blank, z, #N/A, a, a
The formula =COUNTBLANK(A1:A6) returns 1 ( 1 blank)
Even if blank comes from formula such as =IF(B26, "a", "")
The formula =SUMPRODUCT(--(ISNA(A1:A6))) returns 2 (2 N/A)
The formula =COUNTA(A1:A6) returns 5 (5 that are not blank)
But if the blank in A2 came from formula such as =IF(B26, "a", ""), then
you get 6
The formula =SUMPRODUCT(--(NOT(ISNA(A1:A6)))) returns 4 (4 that are not NA)
Mix and stir to get desired result
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"smokief" wrote in message
...
I am doing a matrix and need help with a formula to exclude certain items
from a "percent completed" formula. I want to count the number of items in
a
column of data except if the field contains the text "NA". Then the
formula
should return a percent complete on fields that contain any other
character
or number from the total number possible (again, excluding the "NA"
characters).
Example:
=(Number of items with a character EXCEPT "NA")/COUNTIF(L3:L58,"<NA")
I got the first part of the formula from another posting, but can't figure
out how to get the number of items that have a response excluding "NA" and
blanks. Any help you can provide would be much appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Formula percent complete excluding given text string

I used the COUNTBLANK and COUNTA to get my results. The "NA" was not a #N/A,
so the ISNA did not work correctly. Thanks very much for your quick response.
I'm able to carry on now.

"Bernard Liengme" wrote:

The range A1:a6 contains:
#N/A, blank, z, #N/A, a, a
The formula =COUNTBLANK(A1:A6) returns 1 ( 1 blank)
Even if blank comes from formula such as =IF(B26, "a", "")
The formula =SUMPRODUCT(--(ISNA(A1:A6))) returns 2 (2 N/A)
The formula =COUNTA(A1:A6) returns 5 (5 that are not blank)
But if the blank in A2 came from formula such as =IF(B26, "a", ""), then
you get 6
The formula =SUMPRODUCT(--(NOT(ISNA(A1:A6)))) returns 4 (4 that are not NA)
Mix and stir to get desired result
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"smokief" wrote in message
...
I am doing a matrix and need help with a formula to exclude certain items
from a "percent completed" formula. I want to count the number of items in
a
column of data except if the field contains the text "NA". Then the
formula
should return a percent complete on fields that contain any other
character
or number from the total number possible (again, excluding the "NA"
characters).
Example:
=(Number of items with a character EXCEPT "NA")/COUNTIF(L3:L58,"<NA")
I got the first part of the formula from another posting, but can't figure
out how to get the number of items that have a response excluding "NA" and
blanks. Any help you can provide would be much appreciated.




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
Array Formula Minimum Excluding Text Adams SC Excel Discussion (Misc queries) 5 March 8th 07 02:29 PM
Track progress to lookup percent complete on another worksheet. IntricateFool Excel Worksheet Functions 0 June 2nd 06 04:20 PM
Percent Complete? bassec Excel Discussion (Misc queries) 1 March 28th 06 08:11 AM
Percent Complete? bassec Excel Discussion (Misc queries) 3 March 28th 06 03:31 AM
COUNTIF - everything excluding a string sans Excel Worksheet Functions 3 October 6th 05 08:32 PM


All times are GMT +1. The time now is 06:02 PM.

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"