+ Reply to Thread
Results 1 to 10 of 10

I need help to look up value from multiple columns of data - Excel 2007

  1. #1
    Registered User
    Join Date
    10-24-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    56

    Post I need help to look up value from multiple columns of data - Excel 2007

    I have two worksheets, Sheet1 and Sheet2. Sheet1 has a table with 2 headings, Class and Category. In Sheet2, i have multiple columns of Categories and corresponding numbers in sequence. I need to be able to look up that number based on what is entered under category on sheet1. See the attached file.

    User Form 2.xlsm
    Last edited by kaurka; 10-25-2012 at 04:10 PM.

  2. #2
    Forum Contributor
    Join Date
    12-02-2009
    Location
    Birmingham, UK
    MS-Off Ver
    2007
    Posts
    185

    Re: I need help to look up value from multiple columns of data - Excel 2007

    Hello,

    I have looked at it and seems to me that you need to re-arrange the data in sheet 2. I have done in the sheet 4 in the attached file. If you keep it this way you will find quite easy to pull the required information from there.

    Regards
    Simon
    Attached Files Attached Files
    ...and this is when I walk in, dressed fully in white...

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

    Re: I need help to look up value from multiple columns of data - Excel 2007

    Perhaps dependent lists is what you need?

  4. #4
    Registered User
    Join Date
    10-02-2012
    Location
    Baku
    MS-Off Ver
    Excel 2010
    Posts
    273

    Re: I need help to look up value from multiple columns of data - Excel 2007

    To make it easier for myself I cut table in the sheet 2 and pasted to Sheet 1.

    =INDEX(CHOOSE(INDEX(F:F,MATCH(A2,E:E,0)),H:H,J:J,L:L),MATCH(B2,CHOOSE(INDEX(F:F,MATCH(A2,E:E,0)),G:G,I:I,K:K),0))

    I added the file,
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-24-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: I need help to look up value from multiple columns of data - Excel 2007

    That works great!! How would i write a code to lookup from sheet2?

  6. #6
    Registered User
    Join Date
    10-02-2012
    Location
    Baku
    MS-Off Ver
    Excel 2010
    Posts
    273

    Re: I need help to look up value from multiple columns of data - Excel 2007

    Glad to hear you liked it. Right now I have no time to write it down. But I will, after work I will show by adding file.
    Sorry for that

  7. #7
    Registered User
    Join Date
    10-24-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: I need help to look up value from multiple columns of data - Excel 2007

    thank you friend! I appreciate your time and effort!

  8. #8
    Registered User
    Join Date
    10-25-2012
    Location
    new york
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: I need help to look up value from multiple columns of data - Excel 2007

    a good guy !
    cheapfootballshirtuk.co.uk

  9. #9
    Registered User
    Join Date
    10-02-2012
    Location
    Baku
    MS-Off Ver
    Excel 2010
    Posts
    273

    Re: I need help to look up value from multiple columns of data - Excel 2007

    You are welcome kaurka, Its a pleaseure for me
    Here is the formula

    =INDEX(CHOOSE(INDEX(Sheet2!B:B,MATCH(Sheet1!A2,Sheet2!A:A,0)),Sheet2!D:D,Sheet2!F:F,Sheet2!H:H),MATCH(B2,CHOOSE(INDEX(Sheet2!B:B,MATCH(Sheet1!A2,Sheet2!A:A,0)),Sheet2!C:C,Sheet2!E:E,Sheet2!G:G),0))
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    10-24-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: I need help to look up value from multiple columns of data - Excel 2007

    you're a genius! thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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