+ Reply to Thread
Results 1 to 3 of 3

If statement that copies text from a separate worksheet, or if blank, leaves cell blank.

  1. #1
    Registered User
    Join Date
    08-21-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Exclamation If statement that copies text from a separate worksheet, or if blank, leaves cell blank.

    I'm struggling to find the right If equation. Worksheet1 has text entered into numerous cells by the user. Worksheet2 builds on the first, leaving the original data intact and building on it. I would like the information entered in Worksheet1 to appear in the worksheet2, exactly as it appears on worksheet1.

    I originally used a simple ='worksheetname'!cell number

    This worked great unless the cell was empty where Excel would then enter a "0". I need the cell to be left blank.

    So I tried ==IF(('worksheetname'!cell number=""), "","('worksheetname'!cell number)")
    That gave me a blank cell when there was no data in Worksheet1's cell. Perfect. Except, now when there was text, it would only enter the text:

    'worksheetname'!cell number

    I tried taking out the quotes, but received and error. I tried it without the quotes and parens, still no good. How do I now get the text from worksheet1 to appear, when it is not blank!

    Any helps if truly appreciated!!

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: If statement that copies text from a separate worksheet, or if blank, leaves cell blan

    too many parentheses.

    =if(worksheetname'cellnumber="","",worksheetname'cellnumber) -no quotes.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    08-21-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: If statement that copies text from a separate worksheet, or if blank, leaves cell blan

    So easy!!! That worked! Thank you!

+ 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