+ Reply to Thread
Results 1 to 4 of 4

Populate Cell IF A Cell From Another Page in the Same Worksheet Contains Anything

  1. #1
    Registered User
    Join Date
    03-06-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    6

    Populate Cell IF A Cell From Another Page in the Same Worksheet Contains Anything

    I did try searching for this and was unable to find a solution, and I'm sure it's been answered 100 times. I apologize in advance.

    Basically what I have is a worksheet with a number of tabs. For arguments sake, let's call them Tab 1, and Tab 2.

    On Tab 2, I'd like to reference a cell on Tab 1, and populate a cell on Tab 2 IF and ONLY IF the cell I'm referencing on Tab 1 contains data of any kind (numbers, letters, etc.)

    In layman's code (from a cell on Tab 2):

    =IF Cell A1 on Tab 1 contains any data -> display the contents of 'Tab 1'!A1 ELSE leave cell empty


    Thank you in advance for the help!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,794

    Re: Populate Cell IF A Cell From Another Page in the Same Worksheet Contains Anything

    You would do it something like this:

    =IF('Tab 1'!A1="","",'Tab 1'!A1)

    The apostrophes are needed if your sheet names contain spaces.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    03-06-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Populate Cell IF A Cell From Another Page in the Same Worksheet Contains Anything

    Pete, that worked perfectly, Thank you!

    Just so I understand the logic, in that formula we're stating "if Tab1!A1 contains nothing, display nothing, otherwise display the contents of Tab1!A1, correct?

    Again, thank you for the fast response!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,794

    Re: Populate Cell IF A Cell From Another Page in the Same Worksheet Contains Anything

    Yes, you got it. It could also be written like this:

    =IF('Tab 1'!A1<>"",'Tab 1'!A1,"")

    (If it is not empty then return the value otherwise display nothing - just the opposite logic).

    Hope this helps.

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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