+ Reply to Thread
Results 1 to 8 of 8

If data exists in row.. if not leave empty

  1. #1
    Registered User
    Join Date
    10-02-2009
    Location
    Malta
    MS-Off Ver
    Excel 2003
    Posts
    33

    If data exists in row.. if not leave empty

    Hi.. i have three sheets...

    1st sheet has a certain amount of data, Data code and value
    2nd sheet has the same information but more data, Data code and Value

    3rd we need to comapre the values from sheet 1 and sheet 2 -

    I want the DATA CODE to be retrieved autmoatically, and when there is not data, the cell is left empty.... (see sheet 4 - I do not want to do it like this; Sheet three is how the results have to be)

    thanks
    Sam
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: If data exists in row.. if not leave empty

    =IF(ISERROR(VLOOKUP(A2,Sheet1!A:B,2,FALSE)),"",VLOOKUP(A2,Sheet1!A:B,2,FALSE))

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,636

    Re: If data exists in row.. if not leave empty

    As you posted an xlsx file you probably use a post 2003 version so, try also
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    09-13-2012
    Location
    Atlanta, USA
    MS-Off Ver
    Office 2003, 2010
    Posts
    230

    Re: If data exists in row.. if not leave empty

    Try:

    =IF(ISERROR(VLOOKUP(A2,Sheet1!A:B,2,FALSE)), "", VLOOKUP(A2,Sheet1!A:B,2,FALSE)) in B1

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,636

    Re: If data exists in row.. if not leave empty

    @jake.masters

    Why do I get the feeling your answer looks very much like post #2?

  6. #6
    Forum Contributor
    Join Date
    09-13-2012
    Location
    Atlanta, USA
    MS-Off Ver
    Office 2003, 2010
    Posts
    230

    Re: If data exists in row.. if not leave empty

    I clearly submitted it without refreshing my page because I was looking at his spreadsheet. Would you like me to delete it?

  7. #7
    Registered User
    Join Date
    10-02-2009
    Location
    Malta
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: If data exists in row.. if not leave empty

    Quote Originally Posted by samfarrugia View Post
    I want the DATA CODE to be retrieved autmoatically, and when there is not data, the cell is left empty.... (see sheet 4 - I do not want to do it like this; Sheet three is how the results have to be)
    Sam
    Hi.... i do not want to retrieve the value.. but the coloumn DATA CODE from sheet 2!

  8. #8
    Forum Contributor
    Join Date
    09-13-2012
    Location
    Atlanta, USA
    MS-Off Ver
    Office 2003, 2010
    Posts
    230

    Re: If data exists in row.. if not leave empty

    You are saying you just want what is in sheet 2 column A to be in sheet 3 column a? Put this in A2 on sheet 3 and drag down.

    =IF(ISERROR(VLOOKUP(A2,Sheet1!A:B,1,FALSE)), "", VLOOKUP(A2,Sheet1!A:B,1,FALSE))

    That will return the data code...but you already have that. I am not sure I understand what you are looking for.

+ 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