Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default program formula to ignore any cell displaying "N/A"

I have built a complicated workbook that pulls from
individual worksheets. I am searching for a way to build
a formula that will calculate a range of cells. That
range consists of some that are used and some that are
not. The ones that are not used are displaying "N/A" as a
result of the formula build.
Can anyone tell me how to build a formula and or function
formula that can calculate the range using only the cells
with a value in them. That range will remain constant but
the cells will change from "N/A" to a value each time it
is used.
Thanks for your help
Ed P
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 93
Default program formula to ignore any cell displaying "N/A"

Ed P,
My Test range is P2:P12
to sum
=SUMIF(P2:P12,"<#N/A")
to count
=COUNTIF(P2:P12,"<#N/A")
and array formulas (hit Enter while keeping Ctrl and Shift keys down)
=AVERAGE(IF(ISERROR(P2:P12),"",P2:P12))
=MAX(IF(ISERROR(P2:P11),"",P2:P11))
HTH
Cecil

"Ed P" wrote in message
...
I have built a complicated workbook that pulls from
individual worksheets. I am searching for a way to build
a formula that will calculate a range of cells. That
range consists of some that are used and some that are
not. The ones that are not used are displaying "N/A" as a
result of the formula build.
Can anyone tell me how to build a formula and or function
formula that can calculate the range using only the cells
with a value in them. That range will remain constant but
the cells will change from "N/A" to a value each time it
is used.
Thanks for your help
Ed P



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
Help displaying "Maximum" or "Minimum" if cell is max or min in a group? RussAllison Excel Discussion (Misc queries) 1 February 24th 11 02:22 AM
How to ignore hidden columns in an "Average" formula? DotK Excel Discussion (Misc queries) 8 January 1st 10 01:49 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
use "button" to make calculation ignore a cell Excel Worksheet Functions 5 March 21st 06 04:54 PM
Complex if test program possible? If "value" "value", paste "value" in another cell? jseabold Excel Discussion (Misc queries) 1 January 30th 06 10:01 PM


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