Cell reference

Slyvone

New Member
Joined
Feb 25, 2005
Messages
4
Hi,

I have a book with 2 sheets. Let's say i want to reference cell A1 from sheet 1, and display its value in cell B2 on sheet 2.

(i.e. B2=Sheet1!A1)

The problem is...
In the event that cell A1 has no value entered in it, cell B2 will display the number zero.

I would like cell B2 to remain empty if A1 has no value.

Any thoughts?

Thank you
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Zack Barresse

MrExcel MVP
Joined
Dec 9, 2003
Messages
10,881
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
  2. Mobile
  3. Web
Hi there,

Do you want it to be empty, or just appear empty? The choice determines whether you need a formula call or a custom format. They both have their pros and cons. I prefer the format method, but many prefer the formula. The format takes a bit more of a keen eye, as the value of 0 would still be there, just not appear there.

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

Format:
;;;

HTH
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,999
Messages
5,834,813
Members
430,323
Latest member
Regash

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
Top