ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   #VALUE! (https://www.excelbanter.com/excel-discussion-misc-queries/99837-value.html)

Andy

#VALUE!
 
I have a two part section of a spreadsheet

Section one contains numbers (with some fields having text in them).
Section two then calculates these numbers as a %age of the total.

As would be expected when Excel tries to calculate the %age of a text, it
returns the #VALUE! error message.

Is there anyway to hide these #VALUE! returns automatically, so only the
values of true %age cells are visible, or some If statement?

Thanks

DS

#VALUE!
 
Hi Andy,

If you use something like:

=IF(ISERR(A1/A2)=TRUE,"N/A",A1/A2)

Where A1 & 2 contain the text / values. This will replace the #VALUE! with
N/A - substitute that for whatever you like (if you put nothing in the
quotes, it will appear blank).

HTH
DS

"Andy" wrote:

I have a two part section of a spreadsheet

Section one contains numbers (with some fields having text in them).
Section two then calculates these numbers as a %age of the total.

As would be expected when Excel tries to calculate the %age of a text, it
returns the #VALUE! error message.

Is there anyway to hide these #VALUE! returns automatically, so only the
values of true %age cells are visible, or some If statement?

Thanks


Bondi

#VALUE!
 

Andy wrote:
I have a two part section of a spreadsheet

Section one contains numbers (with some fields having text in them).
Section two then calculates these numbers as a %age of the total.

As would be expected when Excel tries to calculate the %age of a text, it
returns the #VALUE! error message.

Is there anyway to hide these #VALUE! returns automatically, so only the
values of true %age cells are visible, or some If statement?

Thanks


Hi Andy,

One way would be to use this:

=IF(ISERROR(YourCalculation),"",YourCalculation)

Regards,
Bondi



All times are GMT +1. The time now is 12:27 AM.

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