+ Reply to Thread
Results 1 to 6 of 6

How to reference spaces as spaces not zeros

  1. #1
    Forum Contributor
    Join Date
    02-16-2012
    Location
    London, England
    MS-Off Ver
    Excel mac 2011
    Posts
    238

    How to reference spaces as spaces not zeros

    Hi guys,

    Struggling a little here, I am using Excel 2007 and I am trying to reference blank cells as blank cells, but they are coming up as zeros, I have not been able to find the option in Tools - Options - view - zero values, I can't find such an option on this version that I am using. Here is the code I am using to extract the data from a different sheet, but as I am using R1C1 format, I can't work out how to use an =If statement. Please help.

    Please Login or Register  to view this content.
    Kind regards
    Rob

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: How to reference spaces as spaces not zeros

    try this
    Please Login or Register  to view this content.

  3. #3
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: How to reference spaces as spaces not zeros

    If the cells you are linking to should contain text, you could just use:
    Please Login or Register  to view this content.
    otherwise you do need the IF function:
    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

  4. #4
    Forum Contributor
    Join Date
    02-16-2012
    Location
    London, England
    MS-Off Ver
    Excel mac 2011
    Posts
    238

    Re: How to reference spaces as spaces not zeros

    Thanks YasserKhalil, This worked better than I had hoped, it was quicker than what I was doing, and also solved the problem I had just encountered where it would give me a blank page until I stopped the macro and ran it again.

    To be fair, the only way i know to learn is to record a macro to get the syntax and then edit it till it works, in this case I couldn't get it to work properly.

    Thanks
    Rob

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: How to reference spaces as spaces not zeros

    You can attach your workbook to make it easier for others to offre help.

  6. #6
    Forum Contributor
    Join Date
    02-16-2012
    Location
    London, England
    MS-Off Ver
    Excel mac 2011
    Posts
    238

    Re: How to reference spaces as spaces not zeros

    Anyone know why I can't post a new thread please, or point me at an admin I can talk to please. The only way i can stay logged in is to use one of my existing threads today is there a problem with the forum?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA function to remove hypens, spaces, leading zeros
    By ssjody in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-07-2014, 08:22 AM
  2. Delete Trailing Spaces without Removing leading zeros WITHOUT TRIM
    By Zach51215 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-20-2013, 04:24 PM
  3. [SOLVED] Replacing double spaces with single spaces
    By EdWoods in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-15-2013, 01:20 AM
  4. [SOLVED] Replacing spaces with zeros
    By Oldjay in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-16-2006, 09:10 AM
  5. How can I replace zeros with blank spaces during calculations plea
    By Ted in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-02-2006, 11:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1