ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Fix for #VALUE! error (https://www.excelbanter.com/excel-worksheet-functions/8536-fix-value-error.html)

Pat

Fix for #VALUE! error
 
=IF(ISNA(MATCH(CC!$C106,PF05!$BM$24:$BM$1000,0))," ",IF(INDEX(PF05!Y$24:Y$100
0,MATCH(CC!$C106,PF05!$BM$24:$BM$1000,0))="UpdateC C",INDEX(PF05!$AP$24:$AP$1
000,MATCH(CC!$C106,PF05!$BM$24:$BM$1000,0)),""))

The above formula is in H106


When the following formula includes H106 in the formula an the error #VALUE!
will occur if there is no value to return in H106

=$H106+$BI106+$AS106+$AT106+$AU106-$BA106-INDIRECT("IV" & ROW())

Question: should the 1st or 2nd formula be changed to prevent the error?

Thankyou
Pat



Jerry W. Lewis

"" is a character string that cannot be coerced into a number, thus
addition with it is undefined.

=SUM($H106,$BI106,$AS106,$AT106,$AU106)-$BA106-INDIRECT("IV" & ROW())

will ignore non-numeric values in H106, BI106, AS106, AT106, or AU106

Jerry

Pat wrote:

=IF(ISNA(MATCH(CC!$C106,PF05!$BM$24:$BM$1000,0))," ",IF(INDEX(PF05!Y$24:Y$100
0,MATCH(CC!$C106,PF05!$BM$24:$BM$1000,0))="UpdateC C",INDEX(PF05!$AP$24:$AP$1
000,MATCH(CC!$C106,PF05!$BM$24:$BM$1000,0)),""))

The above formula is in H106


When the following formula includes H106 in the formula an the error #VALUE!
will occur if there is no value to return in H106

=$H106+$BI106+$AS106+$AT106+$AU106-$BA106-INDIRECT("IV" & ROW())

Question: should the 1st or 2nd formula be changed to prevent the error?

Thankyou
Pat




All times are GMT +1. The time now is 11:00 PM.

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