+ Reply to Thread
Results 1 to 6 of 6

Help With LOOKUP Formula That Utilizes Multiple Criteria

  1. #1
    Registered User
    Join Date
    05-18-2012
    Location
    USA
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    6

    Help With LOOKUP Formula That Utilizes Multiple Criteria

    Please see the attached example spreadsheet.

    I need to populate data in the highlighted cells in the "Main" sheet from data that is stored on the "Data" sheet. The parameters are:

    1. based on the reporting month, that is selected from a drop down list
    2. Location (i.e. A1 / B1 / C1)
    3. Metric (i.e. Labor Hours / Parts Produced / Loads Shipped)

    I need to be able to change the reporting month to populate on the data for that month in the selected cells. Does anyone have any ideas / formulas that I can use? I have seen alot with Index / Match / Lookup but not very sure how to apply these formulas to get the desired output.

    Thanks,

    Dave
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: Help With LOOKUP Formula That Utilizes Multiple Criteria

    Dmerric1, Good morning.

    Try to use:

    E6 -->
    =INDEX(Data!$C$3:$G$11,MATCH(E$5,Data!$A$3:$A$11,0)+ROW(A6)-6*1,MATCH($C$2,Month,0))

    Copy it down and across until G8

    Take a look at it:
    http://speedy.sh/cxc2T/26-08-2014-In...y-Month-OK.xls

    Is it what you want?
    I hope it helps.
    ...If my answer helped you, Please, click on. * Add Reputation (at left)

    Best regards.
    Marc?lio Lob?o

  3. #3
    Registered User
    Join Date
    05-18-2012
    Location
    USA
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    6

    Re: Help With LOOKUP Formula That Utilizes Multiple Criteria

    Just out of curiosity, what does the "Row(A6)-6*1" do?

    Dave

  4. #4
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Help With LOOKUP Formula That Utilizes Multiple Criteria

    The ROW(A6) returns the row number, which is 6, and subtracts 6 from it to make it 0
    The *1 I don't know why that is in there o.O. Normally you would do something like this to force a value to be a number, but that function returns only numbers so idk.

    So the ROW function serves as an offset to get the value +0, +1, and +2 rows down from the result, giving Labor Parts and Loads respectively. It works the same as ROWS($1:1)-1


    The problem with this solution method is it will only work if the three criteria are in the same order all the way down. If Loads and Labor are backwards (Loads, Parts, Labor in that order on Data tab), it will pull the data backwards as well. If it's all in the same order, this works fine though!
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  5. #5
    Registered User
    Join Date
    05-18-2012
    Location
    USA
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    6

    Re: Help With LOOKUP Formula That Utilizes Multiple Criteria

    So then does it matter if it is "ROW(A7)-7" or "ROW(30)-30 ??"

    I have a huge spreadsheet so I am trying to replicate this in the secondary spreadsheet.

    Thanks,

    Dave

  6. #6
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Thumbs up Re: Help With LOOKUP Formula That Utilizes Multiple Criteria

    Try this..
    Simply drag and drop horizontally and vertically..

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Don't forget to click *
    Attached Files Attached Files
    Last edited by JBeaucaire; 08-29-2014 at 12:10 PM.

+ 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. Need help with a multiple criteria lookup formula
    By JOHN NIXON in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-15-2014, 01:54 AM
  2. Help with a formula that utilizes a drop down list
    By brandiemz in forum Excel General
    Replies: 3
    Last Post: 05-21-2011, 02:04 PM
  3. Replies: 1
    Last Post: 05-16-2011, 05:00 PM
  4. Lookup formula - multiple criteria
    By realmfighter in forum Excel General
    Replies: 6
    Last Post: 09-13-2009, 10:02 AM

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