+ Reply to Thread
Results 1 to 12 of 12

Formula to Lookup values with multiple criteria

  1. #1
    Registered User
    Join Date
    05-20-2016
    Location
    Costa Rica
    MS-Off Ver
    MS Excel 2013 / 32 bits
    Posts
    14

    Formula to Lookup values with multiple criteria

    Hi Guys,

    I'm looking to build a formula to lookup some values from a table,

    i assume i can use INDEX, MATCH but the information i'm pulling up is not coming out accurate.

    there is database where i'm pulling up the information from. it's called "database". i'm trying to load the values on a table on"summary" sheet.

    but the trick is to have the information pulled up by date. whenever i change the date it loads the information from that specific day. i need this to create a simple database.

    The formula i built works just for a few of them.

    =INDEX(Database!$A$1:$J$1200,MATCH(C7,Database!$C$1:$C$1200,0)*(Database!$A$1:$A$1200=$C$5),4).

    i'm attaching the workbook.

    please need some help over here.

    thanks a lot guys!
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Formula to Lookup values with multiple criteria

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

  3. #3
    Registered User
    Join Date
    05-20-2016
    Location
    Costa Rica
    MS-Off Ver
    MS Excel 2013 / 32 bits
    Posts
    14

    Re: Formula to Lookup values with multiple criteria

    Hi Sandy, i just tried the formula, it works perfectly!!!! thank you very much!!

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Formula to Lookup values with multiple criteria

    If the basic problem is solved
    - it's always a good practice to show respect to the person(s) who have helped you
    - is a click on the Add Reputation first (left lower corner of the post of person(s) who helped you)

    Thanks

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Formula to Lookup values with multiple criteria

    Thanks for rep

  6. #6
    Registered User
    Join Date
    05-20-2016
    Location
    Costa Rica
    MS-Off Ver
    MS Excel 2013 / 32 bits
    Posts
    14

    Re: Formula to Lookup values with multiple criteria

    you're welcome! just a final questions.... what happen if i want to return text values. SUMPRODUCT won't do the work. any suggestion?

    thanks again!!

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Formula to Lookup values with multiple criteria

    By design, SUMPRODUCT is just not going to allow you to return text. It's intended to multiply arrays.

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


    or INDEX/SUMPRODUCT/ROW etc... but I think formula above is a good solution

    edit: formula works with text and numbers
    Last edited by sandy666; 02-17-2017 at 12:55 PM.

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula to Lookup values with multiple criteria

    Quote Originally Posted by sandy666 View Post
    =SUMPRODUCT((Database!$C$2:$C$49=C7)*(Database!$A$2:$A$49=$C$5),Database!$D$2:$D$49)
    This would be more efficient:

    =SUMIFS(Database!$D$2:$D$49,Database!$C$2:$C$49,C7,Database!$A$2:$A$49,$C$5)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  9. #9
    Registered User
    Join Date
    05-20-2016
    Location
    Costa Rica
    MS-Off Ver
    MS Excel 2013 / 32 bits
    Posts
    14

    Re: Formula to Lookup values with multiple criteria

    i'm still trying to figure out one more formula!
    Last edited by Jllerenp; 03-08-2017 at 05:40 PM.

  10. #10
    Registered User
    Join Date
    05-20-2016
    Location
    Costa Rica
    MS-Off Ver
    MS Excel 2013 / 32 bits
    Posts
    14

    Re: Formula to Lookup values with multiple criteria

    thanks for replying back! i guess the answer from Sandy666 worked perfectly. guys i'm still having a questions about how to lookup values with multiple criteria,
    i'm attaching the file please see sheet " Daily metrics ". there is column called "Balance" to the left. i'm trying to figure out how to call the current balance from the minutes late but the the specific month i want. whenever a pull up the date i see the balance from that month only. i've tried a lot of formulas. any idea?
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    08-14-2006
    Location
    USA
    MS-Off Ver
    2019
    Posts
    686

    Re: Formula to Lookup values with multiple criteria

    Not sure I understand the questions but if you want Balance to be a running total of the Month of the date in N6, use this:

    =SUMIFS(Attendance!$E$2:$E$12000,Attendance!$B$2:$B$12000,J12,Attendance!$A$2:$A$12000,">=" &DATE(YEAR($N$6),MONTH($N$6),1), Attendance!$A$2:$A$12000,"<=" &DATE(YEAR($N$6),MONTH($N$6),31) )

  12. #12
    Registered User
    Join Date
    05-20-2016
    Location
    Costa Rica
    MS-Off Ver
    MS Excel 2013 / 32 bits
    Posts
    14

    Re: Formula to Lookup values with multiple criteria

    Hi Carsto, i've tried that formula and works perfect i wanted to see the sum of minutes late for a month in specific. what i'm looking forward is to have in that column the balance for that specific month. there will be ppl who will recover time so whatever is the real balance i need to see it. if at the end of the month there is nobody owing time as they recovered already the balance should be zero. it's more like to show the blance for the month instead of a sum of all minutes late in a month for a specific member. hope this helps to be understood :S

+ 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. Finding max values using multiple lookup criteria
    By rcoon in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-18-2016, 12:11 PM
  2. Another lookup multiple values with multiple criteria showstopper
    By ykobure in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-09-2015, 01:56 AM
  3. Lookup using multiple criteria- values are in different columns
    By Shareez Saleem in forum Excel General
    Replies: 4
    Last Post: 05-11-2015, 10:18 PM
  4. [SOLVED] Lookup and sum multiple values based on a single criteria in multiple sheets.
    By paulsanett in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-17-2014, 12:18 PM
  5. multiple criteria lookup with min max values
    By seanpcorbett1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-21-2013, 01:08 PM
  6. Replies: 1
    Last Post: 05-16-2011, 05:00 PM
  7. Multiple Lookup Values/Criteria
    By BLarche in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-18-2007, 12:20 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