+ Reply to Thread
Results 1 to 8 of 8

VLOOKUP Value Not Working

  1. #1
    Registered User
    Join Date
    08-07-2009
    Location
    Victoria
    MS-Off Ver
    Excel 2007
    Posts
    8

    VLOOKUP Value Not Working

    Hey everyone!

    Do I have any hair left? I guess I'm about to pull it all out.
    I'm trying to apply a VLOOKUP function to my schedule sheet. Attached to this post is a copy of the sheet.

    The shifts that I'm entering in B7:AC7 should be looked up in the table located at K21:Q25. I'd like the looked up value to display in B8:AC8.

    I have tried many things, put in different values but it won't work. I'm sure someone here can make it work.

    I thank you in advance!

    Daniel
    Attached Files Attached Files
    Last edited by NBVC; 08-18-2009 at 09:40 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: VLOOKUP Value Not Working

    Your list has a colon : after the lookup value.. you need to remove that or include in the Vlookup formula.. also, your merged cells are confusing it is column 6 you are trying to extract from. And you should make table range absolute (add $ signs) so that you copy across the formula without changing the reference.

    Try:

    =VLOOKUP(B7&":",$K$21:$Q$25,6,FALSE)

    copied across
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: VLOOKUP Value Not Working

    Seems quite closely related to your earlier question Dunda: http://www.excelforum.com/excel-prog...ng-values.html

    B8, any of:

    =SUMIF($K$22:$K$25,B7&":",$P$22:$P$25)

    =VLOOKUP(B7&":",$K$22:$P$25,6,0)

    =INDEX($P$22:$P$25,MATCH(B7&":",$K$22:$K$25,0))

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: VLOOKUP Value Not Working

    Your formula is looking for a value in Column 16 of the table, there is no column 16 & you are using Merged Cells which can cause problems
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    08-07-2009
    Location
    Victoria
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: VLOOKUP Value Not Working

    Thanks guys!

    Finally got it to work with
    =SUMIF($K$22:$K$25,B7&":",$P$22:$P$25)

    This seems to work best.
    Thanks a lot!

    Daniel

  6. #6
    Registered User
    Join Date
    08-07-2009
    Location
    Victoria
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: VLOOKUP Value Not Working

    One more question!

    Let's say I have a table on a different sheet that I'd like to refer to. That sheet is called 'Hours'. Where and how should this be applied to the function?

    =SUMIF($K$22:$K$26,B7,$P$22:$P$26)

    Thanks once more.

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: VLOOKUP Value Not Working

    =SUMIF('Hours'!$K$22:$K$26,B7,'Hours'!$P$22:$P$26)

  8. #8
    Registered User
    Join Date
    08-07-2009
    Location
    Victoria
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: VLOOKUP Value Not Working

    Thanks a whole bunch guys, really appreciate it!

+ 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