+ Reply to Thread
Results 1 to 3 of 3

Copy from Sheet 2, but remain blank if no data

  1. #1
    Registered User
    Join Date
    11-12-2011
    Location
    Leeds, Endland
    MS-Off Ver
    Excel 2007
    Posts
    12

    Question Copy from Sheet 2, but remain blank if no data

    Hello, I have two spreadsheets, sheet 1 and sheet 2. Sheet 2 has the data. Sheet 1 copies the data from Sheet 2 like this:-
    ='Sheet 2'!A1
    If Sheet 2 cell A1 has data, its a straight forward copy, if theres no data, i get a 0. Im wanting the cell to be blank if there's no data to copy accross.

    After this step im doing a straight forward copy all and paste all into Access. Im trying to avoid finding all the 0's and deleting them.

    Thank you.
    Last edited by noellloyd; 11-14-2011 at 06:33 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Copy from Sheet 2, but remain blank if no data

    =IF('Sheet 2'!A1="","",'Sheet 2'!A1)

    or

    ='Sheet 2'!A1&""

    but, with the second option, amy numeric data would be converted to text.


    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    11-12-2011
    Location
    Leeds, Endland
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Copy from Sheet 2, but remain blank if no data

    Thank you, Option 1 worked great.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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