+ Reply to Thread
Results 1 to 18 of 18

Vlookup

  1. #1
    Registered User
    Join Date
    01-07-2014
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2013
    Posts
    33

    Vlookup

    Hi, i recently followed this tutorial for vlookup
    http://www.howtogeek.com/howto/13780...okup-in-excel/
    and everything worked out well, except for one problem. What ive formulated is that when i type a job number, the correct job name is displayed in the cell next to the job number. But when there is a blank cell, the number 02011 shows up?? see the pic i have attachedexample.jpg

  2. #2
    Registered User
    Join Date
    01-07-2014
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2013
    Posts
    33

    Re: Vlookup

    What i want is obviously a blank cell. Any suggestions?

  3. #3
    Forum Contributor
    Join Date
    02-15-2005
    Location
    Central UK
    MS-Off Ver
    Office 365
    Posts
    175

    Re: Vlookup

    =IF(VLOOKUP(A18,'[JOB LIST 7.xls]Master Job List'!$A$10:$B$4126,2,FALSE),<0,"",VLOOKUP(A18,'[JOB LIST 7.xls]Master Job List'!$A$10:$B$4126,2,FALSE

    I'm not that bright but I think this will work

  4. #4
    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,433

    Re: Vlookup

    Pictures of worksheets are not very helpful in diagnosing problems or providing robust solutions. I can't even copy the formula to edit it.

    Regards, TMS
    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


  5. #5
    Registered User
    Join Date
    01-07-2014
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2013
    Posts
    33

    Re: Vlookup

    Unfortunately excel isn't happy with this formula.

  6. #6
    Registered User
    Join Date
    01-07-2014
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2013
    Posts
    33

    Re: Vlookup

    should i upload an excel file? sorry, im new to this forum

  7. #7
    Forum Contributor
    Join Date
    02-15-2005
    Location
    Central UK
    MS-Off Ver
    Office 365
    Posts
    175

    Re: Vlookup

    TMShucks is more likely to be able to help if you upload a sample file - just be sure to remove any sensitive/personal data first

  8. #8
    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,433

    Re: Vlookup

    should i upload an excel file? sorry, im new to this forum
    Yes please. I don't think the formula offered is far off ... Clearly it had to be typed from scratch and it looks like a comma that' snot required.

    You can try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Thanks to y_not for typing it out.

    Regards, TMS

  9. #9
    Registered User
    Join Date
    01-07-2014
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2013
    Posts
    33

    Re: Vlookup

    Hi TMS,
    Surely if I upload an excel file it will show errors due to my vlookup formulas in column b? I tried your formula and it still yields a result of 02011. I have no idea where this 02011 is coming from!

  10. #10
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Vlookup

    Quote Originally Posted by crumpets266 View Post
    Surely if I upload an excel file it will show errors due to my vlookup formulas in column b?
    Yep, that's the idea.
    We will be able to see the formula that isn't working correctly.
    And we will hopefully be able to see what is causing that formula to not work correctly.
    It's VERY difficult to see what is the cause by just a picture.
    And actual Excel file helps alot more.


    Just taking a guess,
    It's likely that the values in column A are a formula
    And when it gets down to A16, that formula is returning a "" value.
    PLUS
    The values in MasterJobList column A are also a formula, and some are returning ""
    So the vlookup is finding an exact match for "" in the lookup table, and returning whatever is in column B

  11. #11
    Registered User
    Join Date
    01-07-2014
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2013
    Posts
    33

    Re: Vlookup

    Precisely TMS,

    The values from the MAster Job List Column A all have formulas. Is there any way around this? I'd rather avoid uploading the excel file if that is okay, just because it doesnt belong to me, im just editing it.

  12. #12
    Registered User
    Join Date
    01-07-2014
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2013
    Posts
    33

    Re: Vlookup

    The column A, on the sheet where the 02011 shows up, does not have any formulas though. it is just blank.

  13. #13
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Vlookup

    Quote Originally Posted by crumpets266 View Post
    column A, on the sheet where the 02011 shows up, does not have any formulas though.
    Perhaps it was a formula at one time that has since been replaced by values by copy / Paste Special / Values
    If so, then it still contains an empty text string value (which is what "" actually is)

    Right click on A16 and choose 'ClearContents'
    Last edited by Jonmo1; 01-14-2014 at 10:28 AM.

  14. #14
    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,433

    Re: Vlookup

    @crumpets266: if you upload a sample file we will be able to tell you definitively where it is getting the number from, and why, and suggest some options to fix it or work around it.

    If you want to keep playing guessing games, it will take a lot longer ... at least until we get bored.

  15. #15
    Registered User
    Join Date
    01-07-2014
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2013
    Posts
    33

    Re: Vlookup

    2013 timesheets edited.xlsxJOB LIST 7.xlsx

    Sorry for time wasting. I have attached the two sample files.

  16. #16
    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,433

    Re: Vlookup

    OK, on row 3232 of the Current Jobs sheet, in column A, Job Name, you have the value 2011 which would appear to be a "year break" in your job name list. In column B, Job No., you have the value 0. These values are copied across to the Master Job List but the columns are swapped and the Job No. appears in column A and the Job Name is in column B, as before on row 3232. Many of the rows on both sheets are hidden so it's not immediately obvious.

    Now, the "blank" entries in column A on the time sheet are being "interpreted" as zero (0) and hence they return the year, 2011. This is displayed as 02011 because of the "special" zip code format on the column.

    Not sure why those blank entries are zero (probably looked at it too long) but, to stop it going there ...

    in cell B16:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS

  17. #17
    Registered User
    Join Date
    01-07-2014
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2013
    Posts
    33

    Re: Vlookup

    Amazing, thank you so much. Works perfectly.

  18. #18
    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,433

    Re: Vlookup

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 12-26-2013, 01:12 PM
  2. Display Cell within VLookup range that excel thinks matches the VLookup Value
    By headachexcelperson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2013, 04:56 PM
  3. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  4. Replies: 5
    Last Post: 07-29-2009, 07:53 AM
  5. [SOLVED] vlookup function-Can vlookup command find the data from the 5 sheets.
    By Rishab shah in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

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