Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default References between worksheets using IF

Hello,
I'm trying to using cross-references between different worksheets within an
Excel document. Using a Paste Link, I get something like this:

'Active '!B18

The problem is that any empty cells show up as "0" in the target. So I
tried using an IF statement, but it doesn't seem to work. What I want it to
do is show the result only if there is something in the source cell,
otherwise not display anything. Is there a problem with the syntax?

=IF('Active '!B18 = "", "", 'Active'!B18)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default References between worksheets using IF

You are missing a space after the second Active:

=IF('Active '!B18 = "", "", 'Active '!B18)

Of course, B18 might actually contain a zero!

Hope this helps.

Pete

On Feb 23, 8:19 pm, Kamran wrote:
Hello,
I'm trying to using cross-references between different worksheets within an
Excel document. Using a Paste Link, I get something like this:

'Active '!B18

The problem is that any empty cells show up as "0" in the target. So I
tried using an IF statement, but it doesn't seem to work. What I want it to
do is show the result only if there is something in the source cell,
otherwise not display anything. Is there a problem with the syntax?

=IF('Active '!B18 = "", "", 'Active'!B18)



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default References between worksheets using IF

Thanks to everyone who responded. After I corrected the problem with the
extra space, the formula still wasn't working and then figured out that I had
the cell formatted for text. As soon as I changed it to General, the formula
started working.


"Pete_UK" wrote:

You are missing a space after the second Active:

=IF('Active '!B18 = "", "", 'Active '!B18)

Of course, B18 might actually contain a zero!

Hope this helps.

Pete


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default References between worksheets using IF

Also take out the space before ""'s and = and the second 'Active ' thus:
=IF('Active '!B18="","",'Active '!B18)
The formula still works with them there, but they are not necessary.

Philip

Pete_UK wrote:
You are missing a space after the second Active:

=IF('Active '!B18 = "", "", 'Active '!B18)

Of course, B18 might actually contain a zero!

Hope this helps.

Pete

On Feb 23, 8:19 pm, Kamran wrote:

Hello,
I'm trying to using cross-references between different worksheets within an
Excel document. Using a Paste Link, I get something like this:

'Active '!B18

The problem is that any empty cells show up as "0" in the target. So I
tried using an IF statement, but it doesn't seem to work. What I want it to
do is show the result only if there is something in the source cell,
otherwise not display anything. Is there a problem with the syntax?

=IF('Active '!B18 = "", "", 'Active'!B18)




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 143
Default References between worksheets using IF

The syntax looks fine. Does 'Active'!B18 contain a formula?


"Kamran" wrote in message
...
Hello,
I'm trying to using cross-references between different worksheets within
an
Excel document. Using a Paste Link, I get something like this:

'Active '!B18

The problem is that any empty cells show up as "0" in the target. So I
tried using an IF statement, but it doesn't seem to work. What I want it
to
do is show the result only if there is something in the source cell,
otherwise not display anything. Is there a problem with the syntax?

=IF('Active '!B18 = "", "", 'Active'!B18)





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default References between worksheets using IF

Your formula is correct, however it references two different sheet names.
'Active ' and 'Active'. Notice one has a space at the end. Try fixing that
and see if it works.

HTH,
Elkar


"Kamran" wrote:

Hello,
I'm trying to using cross-references between different worksheets within an
Excel document. Using a Paste Link, I get something like this:

'Active '!B18

The problem is that any empty cells show up as "0" in the target. So I
tried using an IF statement, but it doesn't seem to work. What I want it to
do is show the result only if there is something in the source cell,
otherwise not display anything. Is there a problem with the syntax?

=IF('Active '!B18 = "", "", 'Active'!B18)

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default References between worksheets using IF

Thanks, I did eventually notice that. Even after that, though, it still
wasn't working, because I had the cell formatted for text. As soon as I
changed it to General, the formula started working.

"Elkar" wrote:

Your formula is correct, however it references two different sheet names.
'Active ' and 'Active'. Notice one has a space at the end. Try fixing that
and see if it works.

HTH,
Elkar


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default References between worksheets using IF

You can use the ISBLANK function to test the cell and see if it is blank.

"Kamran" wrote:

Hello,
I'm trying to using cross-references between different worksheets within an
Excel document. Using a Paste Link, I get something like this:

'Active '!B18

The problem is that any empty cells show up as "0" in the target. So I
tried using an IF statement, but it doesn't seem to work. What I want it to
do is show the result only if there is something in the source cell,
otherwise not display anything. Is there a problem with the syntax?

=IF('Active '!B18 = "", "", 'Active'!B18)

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
pasting formulas with references to other worksheets David Excel Worksheet Functions 3 February 8th 07 12:08 PM
References to worksheets in formulae andyiain Excel Discussion (Misc queries) 3 July 14th 06 06:27 PM
How to rename references from range names to cell references Abbas Excel Discussion (Misc queries) 1 May 24th 06 06:18 PM
references Corinna Excel Discussion (Misc queries) 0 October 14th 05 05:22 AM
references Gary''s Student Excel Discussion (Misc queries) 0 October 14th 05 05:19 AM


All times are GMT +1. The time now is 12:39 AM.

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

About Us

"It's about Microsoft Excel"