ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Leave final cell blank (https://www.excelbanter.com/excel-worksheet-functions/248330-leave-final-cell-blank.html)

Scoober

Leave final cell blank
 
With the formula below S3 is populated with the correct answer.

=(IF(AND(B4="",C4="",D4="",E4="",F4="",G4="",H4="" ,I4="",J4="",K4="",L4="",M4="",N4="",O4="",P4="",Q 4="",R4=""),"",(B4-C4-D4-E4-F4-G4-H4-I4-J4-K4-L4-M4-N4-O4-P4-Q4-R4)))

However when i C&P this formula into S4 i get #Value! because cells B4 thru
R4 are empty. How can i change the above formula so S4 remains blank if no
figures are entered into cells B4 thru R4?
--


Scoober

Scoober

Leave final cell blank
 
Above is not quite right.

In the equation set out in S4 all other cells thru C4 thru R4 are empty but
b4 has a value in it.
--


Scoober


"Scoober" wrote:

With the formula below S3 is populated with the correct answer.

=(IF(AND(B4="",C4="",D4="",E4="",F4="",G4="",H4="" ,I4="",J4="",K4="",L4="",M4="",N4="",O4="",P4="",Q 4="",R4=""),"",(B4-C4-D4-E4-F4-G4-H4-I4-J4-K4-L4-M4-N4-O4-P4-Q4-R4)))

However when i C&P this formula into S4 i get #Value! because cells B4 thru
R4 are empty. How can i change the above formula so S4 remains blank if no
figures are entered into cells B4 thru R4?
--


Scoober


Jacob Skaria

Leave final cell blank
 
Try the below...
'if you have only +ve numbers
=IF(SUM(C4:R4)=0,"",B4-SUM(C4:R4))

'if you have negative numbers
=IF(COUNT(C4:R4)=0,"",B4-SUM(C4:R4))

If this post helps click Yes
---------------
Jacob Skaria


"Scoober" wrote:

Above is not quite right.

In the equation set out in S4 all other cells thru C4 thru R4 are empty but
b4 has a value in it.
--


Scoober


"Scoober" wrote:

With the formula below S3 is populated with the correct answer.

=(IF(AND(B4="",C4="",D4="",E4="",F4="",G4="",H4="" ,I4="",J4="",K4="",L4="",M4="",N4="",O4="",P4="",Q 4="",R4=""),"",(B4-C4-D4-E4-F4-G4-H4-I4-J4-K4-L4-M4-N4-O4-P4-Q4-R4)))

However when i C&P this formula into S4 i get #Value! because cells B4 thru
R4 are empty. How can i change the above formula so S4 remains blank if no
figures are entered into cells B4 thru R4?
--


Scoober



All times are GMT +1. The time now is 06:30 PM.

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