+ Reply to Thread
Results 1 to 7 of 7

2 Column Lookup with 6 Column array Col index number is Varies Within Entire Array

  1. #1
    Registered User
    Join Date
    08-04-2015
    Location
    Arkansas, USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    2 Column Lookup with 6 Column array Col index number is Varies Within Entire Array

    I have 2 columns that I need to look up from a table with multiple columns and bring back 1 value.

    I have tried a regular V-lookup but I cannot make it work because the column index number varies within the entire array because I am trying to match the 2 values.

    Any help would be greatly appreciated.

    Thank you

    Example file is attached.

    I need to look up these values:

    Work Location/State WC Risk Classification Workman's Comp - Trying to get this value from table below.
    TN Very Low
    TN Very Low
    PA Medium
    PA Medium
    PA Very Low
    FL Low
    FL Low
    KS Low
    KS Low
    NC Medium
    MA Medium
    IA Low
    KS Low
    SC Medium
    MA Medium
    MN Medium
    IN Medium
    GA Very Low
    MA Low
    MA Low
    MA Low
    MA Low
    NY Very Low
    NV Very Low
    DE Very Low
    DE Very Low
    DE Very Low
    DE Very Low
    FL Medium
    SC High
    IL High
    TX High
    NC Very High
    NC Very High
    NC Very High

    From this table:

    State Very Low Low Medium High Very High
    AK 0.84% 2.95% 7.22% 9.97% 14.71%
    AL 0.53% 2.65% 6.25% 7.09% 11.42%
    AR 0.36% 1.64% 3.80% 4.18% 6.03%
    AZ 0.45% 2.11% 5.12% 5.93% 11.40%
    CA 0.85% 4.83% 6.68% 7.79% 8.74%
    CO 0.51% 2.02% 4.77% 5.65% 8.96%
    CT 0.53% 2.77% 6.34% 7.81% 13.54%
    DC 0.37% 1.58% 3.95% 4.26% 6.88%
    DE 0.39% 1.85% 6.56% 7.22% 9.73%
    FL 0.66% 2.34% 6.10% 7.66% 12.12%
    GA 0.49% 2.11% 5.09% 6.09% 10.17%
    HI 0.50% 2.02% 4.88% 5.78% 7.12%
    IA 0.47% 2.62% 5.54% 7.24% 9.72%
    ID 0.51% 2.32% 5.76% 7.50% 9.68%
    IL 0.55% 3.21% 8.06% 10.17% 17.98%
    IN 0.38% 1.76% 3.98% 4.61% 6.51%
    KS 0.47% 2.45% 5.28% 6.55% 8.54%
    KY 0.50% 2.25% 5.46% 7.12% 10.40%
    LA 0.47% 2.16% 4.72% 5.81% 8.55%
    MA 0.35% 1.69% 4.45% 5.40% 10.25%
    MD 0.39% 1.77% 4.51% 6.30% 9.00%
    ME 0.60% 2.40% 6.89% 7.76% 11.65%
    MI 0.54% 2.39% 5.43% 6.32% 10.57%
    MN 0.38% 1.58% 3.98% 4.24% 7.39%
    MO 0.47% 2.44% 5.19% 6.43% 8.79%
    MS 0.54% 2.18% 4.78% 5.80% 8.58%
    MT 0.95% 4.16% 9.82% 12.37% 17.34%
    NC 0.53% 2.25% 5.57% 6.86% 11.00%
    ND 0.48% 1.87% 6.19% 7.30% 7.35%
    NE 0.49% 2.28% 5.28% 6.54% 9.67%
    NH 0.52% 2.43% 6.34% 7.73% 14.30%
    NJ 0.53% 3.22% 6.86% 10.55% 12.34%
    NM 0.57% 2.09% 5.04% 5.80% 7.81%
    NV 0.68% 2.25% 5.42% 5.77% 8.21%
    NY 0.51% 2.43% 5.82% 7.84% 11.15%
    OH 0.70% 3.90% 9.01% 10.37% 13.06%
    OK 0.68% 2.99% 6.99% 8.91% 11.52%
    OR 0.42% 1.90% 4.91% 6.24% 8.42%
    PA 0.88% 2.86% 5.97% 6.76% 10.51%
    RI 0.49% 2.37% 5.82% 7.47% 11.39%
    SC 0.70% 2.45% 5.52% 6.47% 11.68%
    SD 0.45% 1.93% 4.60% 5.49% 8.72%
    TN 0.49% 2.38% 5.39% 6.49% 10.36%
    TX 0.78% 3.19% 7.85% 8.52% 10.52%
    UT 0.38% 1.62% 4.02% 4.20% 6.84%
    VA 0.37% 1.77% 4.17% 4.67% 7.50%
    VT 0.56% 2.94% 7.46% 8.98% 9.80%
    WA 1.10% 3.69% 6.81% 10.52% 14.49%
    WI 0.53% 2.69% 6.47% 8.12% 11.90%
    WV 0.25% 1.61% 4.14% 4.74% 8.78%
    WY 1.01% 6.00% 6.11% 6.54% 6.69%

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: 2 Column Lookup with 6 Column array Col index number is Varies Within Entire Array

    See attached for the following formula in Sheet2:

    =INDEX(Sheet1!$B$2:$F$52,MATCH(Sheet2!$A1,Sheet1!$A$2:$A$52,0),MATCH(Sheet2!$B1,Sheet1!$B$1:$F$1,0))
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-04-2015
    Location
    Arkansas, USA
    MS-Off Ver
    Excel 2010
    Posts
    5
    Quote Originally Posted by JohnTopley View Post
    See attached for the following formula in Sheet2:

    =INDEX(Sheet1!$B$2:$F$52,MATCH(Sheet2!$A1,Sheet1!$A$2:$A$52,0),MATCH(Sheet2!$B1,Sheet1!$B$1:$F$1,0))
    Thank you very much for all of your help, your solution worked great!

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: 2 Column Lookup with 6 Column array Col index number is Varies Within Entire Array

    Kindly mark thread as closed.

    Initial thread then "Thread Tools"

  5. #5
    Registered User
    Join Date
    08-04-2015
    Location
    Arkansas, USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: 2 Column Lookup with 6 Column array Col index number is Varies Within Entire Array

    Thank you for all of your help! I have marked this thread as closed. Your help is greatly appreciated.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: 2 Column Lookup with 6 Column array Col index number is Varies Within Entire Array

    I should have said "SOLVED" ! but no matter: glad to have helped

  7. #7
    Registered User
    Join Date
    08-04-2015
    Location
    Arkansas, USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: 2 Column Lookup with 6 Column array Col index number is Varies Within Entire Array

    Thank you again very much, this thread has been "SOLVED", you are a great guy!!! Thank you so much! Cheers!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Macro to Insert column and include a VLOOKUP array for entire column
    By bdouglas1011 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-29-2014, 06:28 PM
  2. [SOLVED] vlookup table array and column index number to the left
    By Mengo85 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-19-2012, 08:24 AM
  3. [SOLVED] Lookup a value in one array, and return a corresponding column/row in another array
    By Gunther Maplethorpe in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-15-2012, 08:47 PM
  4. Named ranges for table array, and Column index number?
    By phefray in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-16-2012, 06:43 PM
  5. Populate an entire column of an array
    By Phil_V in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2009, 04:15 PM
  6. V-Lookup, column index number indicator in table array
    By Karen.Robertson@PMI in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-17-2006, 05:55 PM

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