+ Reply to Thread
Results 1 to 11 of 11

Using look-up table

  1. #1
    Registered User
    Join Date
    10-13-2012
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    9

    Using look-up table

    The data are from A1:D5

    If I give 400 and 37 in H5 & I5, i need 1cx185... Please refer attachment. Please help me out. Very urgent. Thanks in advance.

    Regards,
    Balaji K
    Attached Files Attached Files
    Last edited by funniba; 10-15-2012 at 12:24 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,717

    Re: Using look-up table

    Try this:

    =INDEX($B$5:$D$5,MATCH(I5,INDIRECT("B"&MATCH(H5,$A$1:$A$3,0)&":D"&MATCH(H5,$A$1:$A$3,0)),0))

    and copy down.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    10-13-2012
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Using look-up table

    Thank you so much Pete... It works...
    Last edited by Cutter; 10-14-2012 at 11:21 AM. Reason: Removed whole post quote

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,717

    Re: Using look-up table

    Of course it works - I tested it out first !!

    Pete

  5. #5
    Registered User
    Join Date
    10-13-2012
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Using look-up table

    I'm still a dumb, Pete... Help me with this please. I've modified to use in another cell, but dunno what the error is..
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-13-2012
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Using look-up table

    Please help me with this another prob... Is it because of the extra column in the data table?
    Last edited by Cutter; 10-14-2012 at 11:22 AM. Reason: Removed whole post quote

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,717

    Re: Using look-up table

    You've moved the table down from row 1 to row 7 , so you need to add 6 on. Try this:

    =INDEX($L$11:$N$11,MATCH(C6,INDIRECT("L"&MATCH(B6,$J$7:$J$9,0)+6&":N"&MATCH(B6,$J$7:$J$9,0)+6),0))

    Hope this helps.

    Pete

  8. #8
    Registered User
    Join Date
    10-13-2012
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Using look-up table

    Got it Pete... Thanks... Forgot that the match function returns the column number and when it's concatenated, it will reference K1 and not K6. So added +6 as follows:
    =INDEX($K$11:$M$11,MATCH(C6,INDIRECT("K"&MATCH(B6,$J$7:$J$9,0)+6&":M"&MATCH(B6,$J$7:$J$9,0)+6),0))

    is there any other alternative?

  9. #9
    Registered User
    Join Date
    10-13-2012
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Using look-up table

    Thanks again Have a nice day
    Last edited by Cutter; 10-14-2012 at 11:22 AM. Reason: Removed whole post quote

  10. #10
    Registered User
    Join Date
    10-13-2012
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Using look-up table

    Another problem... I've used data in three sheets... need to fetch the appropriate one.. I've coded a formula... but indirect function inside another indirect function seems to be wrong. Please correct the formula.. Thanks in advance...
    Attached Files Attached Files
    Last edited by Cutter; 10-14-2012 at 11:23 AM. Reason: Removed whole post quote

  11. #11
    Registered User
    Join Date
    10-13-2012
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Using look-up table

    I have data in K7:M11 in three sheets namely s_core1,s_core2,s_core3.
    The search keys are in A6:C6, A7:B7 and so on.
    If A6 is core1, the data in sheet s_core1 should be used to lookup.
    If it is core2, the data in sheet s_core2 should be used to lookup.

    I don't know the error in the following formula used:

    =INDEX(INDIRECT("s_"&A6&"!"&"$K$11:$M$11"),MATCH(C6,INDIRECT("K"&MATCH(B6,INDIRECT("s_"&A6&"!$J$7:$J$9"),0)+6&":M"&MATCH(B6,INDIRECT("s_"&A6&"!$J$7:$J$9"),0)+6),0))

    Please help me with that.

    Thanks in advance.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    10-13-2012
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Using look-up table

    You aren't referring to the sheet in the second INDIRECT function - add the bolded part in place of "K"

    =INDEX(INDIRECT("s_"&A6&"!"&"$K$11:$M$11"),MATCH(C6,INDIRECT("s_"&A6&"!K"&MATCH(B6,INDIRECT("s_"&A6&"!$J$7:$J$9"),0)+6&":M"&MATCH(B6,INDIRECT("s_"&A6&"!$J$7:$J$9"),0)+6),0))


    Thanks barry houdini...

+ 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