Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 82
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 82
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default 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

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
Leave cell as BLANK jun duran Excel Discussion (Misc queries) 3 July 29th 09 03:42 PM
Get final non-blank cell in range Eric Excel Worksheet Functions 9 October 19th 06 05:11 PM
To leave a blank cell Steved Excel Worksheet Functions 6 July 18th 06 03:37 AM
To Leave Cell blank Please Steved Excel Worksheet Functions 7 August 1st 05 12:20 AM
leave cell blank Keith Excel Discussion (Misc queries) 0 May 18th 05 05:46 PM


All times are GMT +1. The time now is 02:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"