+ Reply to Thread
Results 1 to 10 of 10

If data exists in coloumn... show data... . 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 coloumn... show data... . 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 - BUT...BUT...BUT..

    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)

    IE: I am not looking to retrieve the value.. that is fairly easy with the vlookup... I am looking to retrieve the 'DATA CODE' in Sheet 3 automatically from SHEET 2...

    thanks
    Sam
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    06-28-2012
    Location
    India Pune
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: If data exists in coloumn... show data... . if not leave empty

    Hi Sam,
    Please find attach file which is working as per your above request.
    Just click on Get data button

    Thanks
    Swapnilj1
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: If data exists in coloumn... show data... . if not leave empty

    you can use if(Sheet2!A2="","",Sheet2!A2) or you can change display settings for your sheet in the excel options. There is one option, which says "Show zero in cells that has zero value". I don't know where it is located in excel 2003.

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

    Re: If data exists in coloumn... show data... . if not leave empty

    Perfect. Thanks Sindhus. One other question... I am doing a vlookup in the next coloumns... is there a way that if there is no value nothing comes up too?? IE Cell is left blank

    Swapnil, thanks aswell, but prefer to use formulas rather than scripts!

  5. #5
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: If data exists in coloumn... show data... . if not leave empty

    You can use "iferror" formula. If it is not available in 2003, you can put a dummy data in sheet2 at the end of your table. 0 in column 1 and (Space) in column 2

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

    Re: If data exists in coloumn... show data... . if not leave empty

    The data that its returning is 'TRUE'

    I used...

    =IFERROR(VLOOKUP(A2,Sheet1!A:O,15,FALSE)="",VLOOKUP(A2,Sheet1!A:O,15,FALSE))

    I need it to return the value or leave blank!!!

  7. #7
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: If data exists in coloumn... show data... . if not leave empty

    It should be iferror(vlookup(A2, SHeet1!A:O,15,false),"")

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: If data exists in coloumn... show data... . if not leave empty

    In Excel 2003, try IF(ISERROR

    =IF(ISERROR(VLOOKUP(A2,Sheet1!A:O,15,FALSE))="",VLOOKUP(A2,Sheet1!A:O,15,FALSE)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

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

    Re: If data exists in coloumn... show data... . if not leave empty

    Quote Originally Posted by Fotis1991 View Post
    In Excel 2003, try IF(ISERROR

    =IF(ISERROR(VLOOKUP(A2,Sheet1!A:O,15,FALSE))="",VLOOKUP(A2,Sheet1!A:O,15,FALSE)
    this returns FALSE after adding another ')' at the end!!

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: If data exists in coloumn... show data... . if not leave empty

    This one?

    IF(ISERROR(VLOOKUP(A2,Sheet1!A:O,15,FALSE)),"",VLOOKUP(A2,Sheet1!A:O,15,FALSE))

+ 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