Linked sheets problem

Excelnoobster

New Member
Joined
Sep 4, 2007
Messages
18
Hi. I have a sheet linked to another sheet. If a cell from the source sheet is blank the second sheet displays a 0. Is there a way so set up the second sheet to display a blank istead of a 0. Thanks.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
You can use a formula like:

=IF(Sheet1!A1,Sheet1!A1,"")

or you can suppress zeroes with a number format like 0;0;.
 
Upvote 0
Thanks for your quick reply Andrew.

Where about would i put in this formula. Would it go in the cell formula or conditional formating box?

If the cell reads [anything.xls]Sheet1'!A1 does it go in there somehow. Dont think the number format will work as there is text, dates and times in the sheet.
 
Upvote 0
The syntax is:

=IF(YourFormula,YourFormula,"")

To cater for text you can use:

=IF(LEN(YourFormula),YourFormula,"")

The number format I gave you was just an example. It's the presence of the second semicolon with nothing following it that suppresses the zero. So you can also use:

dd/mm/yyyy;;
hh:mm:ss;;
 
Upvote 0

Forum statistics

Threads
1,213,568
Messages
6,114,348
Members
448,570
Latest member
rik81h

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top