+ Reply to Thread
Results 1 to 9 of 9

2 dimensional lookup

  1. #1
    Registered User
    Join Date
    11-07-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    81

    2 dimensional lookup

    In the spreadsheet attached I have two worksheets A and B . A has the raw data

    (a) - Based on the raw data . Values should be in returned in C3 of B worksheet using the lookup formulas . It should look for C2 from Column A of A worksheet & Match it with B3 from Row A of A worksheet .

    Incase if there are no values , it should return zeros .

    (b) In worksheet B , Cell C2 has the data validation list , each time I update the sheet A I need to manually change the range . Can I get a formula , so that the range is automatically adjusted based on the data in worksheet A .

    Thank you
    Attached Files Attached Files

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

    Re: 2 dimensional lookup

    Given all of the constraints mentioned and given numeric data types:

    a)

    Please Login or Register  to view this content.
    b)

    Change RefersTo to:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-07-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: 2 dimensional lookup

    (A) - Its giving me some error while copying the formula and the error is pointing to the choose function .

    (B) - I used this formula in the data validation field - But it says "You may not use references from other worksheets " . Does this formula works with the assumption that the data can go upto 255 values ONLY ?

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

    Re: 2 dimensional lookup

    a) typo - simply missing opening parenthesis before {1,2}

    Please Login or Register  to view this content.
    b) I was not referring to DV but to the Named Range definition: RefersTo (not Source)

  5. #5
    Registered User
    Join Date
    11-07-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: 2 dimensional lookup

    Excellent Thank you so much . As always, you are one of the best !!

    Sir , I have posted a question with subject line "Multiple workbooks consolidation with validation" , three days back and NO one responded to it . I'm sure you can help me with that . Can you please look into it . Thanks in advance !

  6. #6
    Registered User
    Join Date
    11-07-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: 2 dimensional lookup

    You know what I just realized that the look up formula is not returning correct values .

    For ex - Choose "ispna_firewall" in cell C2 , You'll notice value 7 returned for " Rejected " , but infact there is no heading with that in the raw data , it should ideally be returning Zero . Also its returning value 2 for "Cancelled due to emergency " , but the raw data shows it as zero . Can you look into this formula again . Thank you

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

    Re: 2 dimensional lookup

    missing 0 in final MATCH (match_type) - again the result of typo on my part - apologies for confusion.

  8. #8
    Registered User
    Join Date
    11-07-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: 2 dimensional lookup

    Now it worked thank you .

    No one is helping me with my other post in this forum with subject line "Multiple workbooks consolidation with validation" . Can you please help me with that .

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

    Re: 2 dimensional lookup

    Yes, I believe you mentioned that already.

    People will help where and when they can.

    A lack of response generally results from lack of clarity.
    If you feel you need to "bump"/clarify your post do so by replying to it appropriately
    (note bumping "guideline" in general: >= 12 hours without response)

+ 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