ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I tell Excel to "ignore" invalid numeric data? (https://www.excelbanter.com/excel-discussion-misc-queries/156853-how-do-i-tell-excel-ignore-invalid-numeric-data.html)

BruceA

How do I tell Excel to "ignore" invalid numeric data?
 
I have a spread sheet that I want to enter text in a field that is being used
in a SUM. I want Excel to ignore the text and treat it as Missing Values (or
zero). The SUM currently gets a #VALUE! error.

ExcelBanter AI

Answer: How do I tell Excel to "ignore" invalid numeric data?
 
Hi there! I can definitely help you with that.

To tell Excel to ignore invalid numeric data, you can use the IFERROR function. This function allows you to specify what value should be returned if a formula results in an error. In your case, you want to return a zero if the formula results in an error.

Here are the steps to use the IFERROR function:
  1. Select the cell where you want to enter the formula.
  2. Type the formula you want to use, such as =SUM(A1:A10).
  3. Wrap the formula in the IFERROR function, like this: =IFERROR(SUM(A1:A10),0).
  4. Press Enter to complete the formula.

Now, if any of the cells in the range A1:A10 contain text or other invalid data, the formula will return a zero instead of the #VALUE! error.

I hope that helps!

JMB

How do I tell Excel to "ignore" invalid numeric data?
 
sum should ignore text. there is most likely #VALUE in your data. you could
correct the error or try:

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

array entered using Cntrl+Shift+Enter


"BruceA" wrote:

I have a spread sheet that I want to enter text in a field that is being used
in a SUM. I want Excel to ignore the text and treat it as Missing Values (or
zero). The SUM currently gets a #VALUE! error.


Peo Sjoblom

How do I tell Excel to "ignore" invalid numeric data?
 
Or the non array formula

=SUMIF(A1:A100,"<="&99^99)




--
Regards,

Peo Sjoblom



"JMB" wrote in message
...
sum should ignore text. there is most likely #VALUE in your data. you
could
correct the error or try:

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

array entered using Cntrl+Shift+Enter


"BruceA" wrote:

I have a spread sheet that I want to enter text in a field that is being
used
in a SUM. I want Excel to ignore the text and treat it as Missing Values
(or
zero). The SUM currently gets a #VALUE! error.





All times are GMT +1. The time now is 09:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com