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

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
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
 
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,298
Members
449,077
Latest member
Rkmenon

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