+ Reply to Thread
Results 1 to 5 of 5

Lookup values given a range of dates and variable name (difficult)

  1. #1
    Registered User
    Join Date
    08-21-2012
    Location
    Poza Rica, Mexico
    MS-Off Ver
    Excel 2010
    Posts
    4

    Lookup values given a range of dates and variable name (difficult)

    I have the following BIG problem: I want to extract some information from a data base given certain criteria like a data range and a specific job name. Already I tried with the MATCH, INDEX, VLOOKUP, but I donít find the correct answer because I can find the first value of my job name, but when I want extract the second value there is a problem.

    Thanks for your help, attached is the file.

    Regards
    jongova


    New+Bitmap+Image (1).jpg
    Attached Files Attached Files
    Last edited by jongova; 11-07-2012 at 04:17 PM.

  2. #2
    Forum Moderator Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Lookup values given a range of dates and variable name (difficult)

    Try in K6 and copy down.

    =SUMPRODUCT(($A$2:$A$17=$H$3)*($B$2:$B$17>=$H$6)*($B$2:$B$17<=$H$7)*($C$2:$C$17=J6)*($D$2:$D$17))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert
    Join Date
    12-15-2009
    Location
    Homeless. I am not kidding.
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,144

    Re: Lookup values given a range of dates and variable name (difficult)

    [Edit] Post Deleted

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,525

    Re: Lookup values given a range of dates and variable name (difficult)

    I think best if you set up a dummy column, let's say starting in F2 (you can hide this column later if you like)
    =IF(AND(A2=$H$3,B2>=$H$6,B2<=$H$7),$H$3&"_"&COUNTIF($F$1:F1,$H$3&"*"),"")

    Then in J2 dragged across and down
    =IFERROR(INDEX(C$2:C$17,MATCH($H$3&"_"&ROW(A1)-1,$F$2:$F$17,0)),"")
    See attachment
    Does that work for you?
    Attached Files Attached Files
    ChemistB
    My 2Ę

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    08-21-2012
    Location
    Poza Rica, Mexico
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Lookup values given a range of dates and variable name (difficult)

    ChemistB

    Yes, this works excelent! thanks a lot!!!!!!!

+ 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