ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   IF Problem (https://www.excelbanter.com/excel-worksheet-functions/27826-if-problem.html)

andyp161

IF Problem
 

I am simply trying to link cells in different worksheets using SUM.
However, if a cell is empty, SUM returns a 0 but I want it to return as
empty. The formula I have written, but which returns "0" (linking cells
on a single sheet for ease of an example) is as follows:

=IF(SUM(C4)="","",SUM(C4))

Please help!!

Many thanks


--
andyp161
------------------------------------------------------------------------
andyp161's Profile: http://www.excelforum.com/member.php...o&userid=11654
View this thread: http://www.excelforum.com/showthread...hreadid=374001


JBoulton

Andy,

This should work for you.

=IF(SUM(C4)=0,"",SUM(C4))
--
Jim


"andyp161" wrote:


I am simply trying to link cells in different worksheets using SUM.
However, if a cell is empty, SUM returns a 0 but I want it to return as
empty. The formula I have written, but which returns "0" (linking cells
on a single sheet for ease of an example) is as follows:

=IF(SUM(C4)="","",SUM(C4))

Please help!!

Many thanks


--
andyp161
------------------------------------------------------------------------
andyp161's Profile: http://www.excelforum.com/member.php...o&userid=11654
View this thread: http://www.excelforum.com/showthread...hreadid=374001



Barb

Hi

Try this
=IF(IF(SUM(C4)="","",SUM(C4))=0,"",IF(SUM(C4)=""," ",SUM(C4)))

Barb

"andyp161" wrote:


I am simply trying to link cells in different worksheets using SUM.
However, if a cell is empty, SUM returns a 0 but I want it to return as
empty. The formula I have written, but which returns "0" (linking cells
on a single sheet for ease of an example) is as follows:

=IF(SUM(C4)="","",SUM(C4))

Please help!!

Many thanks


--
andyp161
------------------------------------------------------------------------
andyp161's Profile: http://www.excelforum.com/member.php...o&userid=11654
View this thread: http://www.excelforum.com/showthread...hreadid=374001



Ron Rosenfeld

On Wed, 25 May 2005 13:34:55 -0500, andyp161
wrote:


I am simply trying to link cells in different worksheets using SUM.
However, if a cell is empty, SUM returns a 0 but I want it to return as
empty. The formula I have written, but which returns "0" (linking cells
on a single sheet for ease of an example) is as follows:

=IF(SUM(C4)="","",SUM(C4))

Please help!!

Many thanks


Why are you using the SUM function to "link"?

Why not just =Sheet1!C4 or something similar?

YOu still need to do the IF(ISEMPTY(SHEET1!C4),"",SHEET1!C4)


--ron


All times are GMT +1. The time now is 03:43 PM.

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