+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Problems With Lookup

  1. #1
    Registered User
    Join Date
    03-12-2012
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question Problems With Lookup

    Hi,

    Ive used the lookup function in excel 2007, but not all of them are working.

    I have 30 cells using the formula, 12 work perfectly, and 18 don't. Any ideas what i'm doing wrong?

    5 that work:
    =LOOKUP(G9,A1:AD2)
    =LOOKUP(G10,A1:AD2)
    =LOOKUP(G22,A1:AD2)
    =LOOKUP(G23,A1:AD2)
    =LOOKUP(G26,A1:AD1, A2:AD2)

    5 that don't:
    =LOOKUP(G11,A1:AD2)
    =LOOKUP(G12,A1:AD2)
    =LOOKUP(G13,A1:AD2)
    =LOOKUP(G14,A1:AD2)
    =LOOKUP(G15,A1:AD2)

    Thanks

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

    Re: Problems With Lookup

    Hi

    difficult to say without seeing your data. Please post a sample sheet explaining were it goes wrong

  3. #3
    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,991

    Re: Problems With Lookup

    In what way "not working"? What data is in the cells? What do you get back "when it works"? What do you get back "when it doesn't work"?

    Please post a sample workbook ... only you know what the data and worksheet structure look like.

    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


  4. #4
    Registered User
    Join Date
    03-12-2012
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Problems With Lookup

    Book1.xlsx


    The fomula's haven't copied over, but the gist of it all is:

    the formula should look for the value that's in g* in row 1, and pull through the corresponding value in row 2

    The light green cells have worked, but the darker green haven't.

    Thanks

  5. #5
    Registered User
    Join Date
    03-12-2012
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Problems With Lookup

    forgot the say that the block of cells in columns H and I should match

  6. #6
    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,991

    Re: Problems With Lookup

    Maybe this instead:

    =HLOOKUP($G9,$1:$2,2,0)


    Regards, TMS

  7. #7
    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,991

    Re: Problems With Lookup

    I should also have said that, for LOOKUP to work, the data must be in ascending order.

    Regards, TMS

+ 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