Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 115
Default SUM - but ignoring text in the data range

Does anyone know how to get the total of a data range which consists of a mix
of values and #VALUE! text. The cells in the data range are using an INDEX
formula, so I want to ignore the cells that don't generate a value, but count
up the ones that did generate a value. (Without manually selecting the 'good'
cells).

Any ideas?

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default SUM - but ignoring text in the data range

Change the formulas in the cells to be summed:

=IF(ISERROR(YourFormula),"",YourFormula)

Or use a helper column to avoid evaluating all formulas twice.


--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"carol" wrote in message ...
| Does anyone know how to get the total of a data range which consists of a mix
| of values and #VALUE! text. The cells in the data range are using an INDEX
| formula, so I want to ignore the cells that don't generate a value, but count
| up the ones that did generate a value. (Without manually selecting the 'good'
| cells).
|
| Any ideas?
|
| Thanks in advance.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default SUM - but ignoring text in the data range

One way

=SUM(IF(ISNUMBER(A1:A100),A1:A100,FALSE))

Which is an array formula so commit with
Ctrl+Shift+Enter.

Mike
"carol" wrote:

Does anyone know how to get the total of a data range which consists of a mix
of values and #VALUE! text. The cells in the data range are using an INDEX
formula, so I want to ignore the cells that don't generate a value, but count
up the ones that did generate a value. (Without manually selecting the 'good'
cells).

Any ideas?

Thanks in advance.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default SUM - but ignoring text in the data range

In general, allowing errors as expected values is terrible practice - it
masks other (real) errors, and it desensitizes the user to error values.

Better to trap the #VALUE! errors in the first place. For instance, if
the #VALUE! error is caused by

=A1 + B1

where A1 or B1 may contain text, use

=IF(COUNT(A1:B1)=2,A1+B1,"")

or

=SUM(A1,B1)

since SUM() ignores text.

If you trap the errors first, you can use SUM() to total your range.


In article ,
carol wrote:

Does anyone know how to get the total of a data range which consists of a mix
of values and #VALUE! text. The cells in the data range are using an INDEX
formula, so I want to ignore the cells that don't generate a value, but count
up the ones that did generate a value. (Without manually selecting the 'good'
cells).

Any ideas?

Thanks in advance.

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
Graph while ignoring text but not changing text to #NA haruun Charts and Charting in Excel 1 April 29th 08 01:49 AM
Ignoring #N/A in an Autosum range Jaye Excel Worksheet Functions 6 July 9th 07 09:35 PM
Ignoring text and errors with Sumproduct SteveC Excel Worksheet Functions 3 May 1st 06 07:05 PM
sort a range of numbers ignoring preceding letters j0hnt52 Excel Discussion (Misc queries) 1 April 17th 06 04:04 AM
can you find specific text in a string ignoring any other text chriscp Excel Discussion (Misc queries) 1 September 18th 05 09:54 PM


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