+ Reply to Thread
Results 1 to 5 of 5

Lookup with (3) criteria

  1. #1
    Registered User
    Join Date
    09-25-2007
    Posts
    11

    Lookup with (3) criteria

    I have attached a sheet that I have been trying to get to work. I have not been able to find a combination to work with vlookup. Maybe someone here knows how to make this work.

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try this formula:

    =SUMPRODUCT(--($A$10:$A$23>=F2),--($A$10:$A$23<=F3),--($C$10:$C$23=F5),$B$10:$B$23)

    EDIT:

    You'll need to fill in all the date fields in Column A
    Last edited by NBVC; 09-26-2007 at 10:12 AM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-25-2007
    Posts
    11
    Thanks for the reply, but I am realy looking for a way to not have to fill-in all the dates in the date column. It gives me a quick visual if more than one job was worked on in any one particular day.

    I'm thinking that it will take a macro to get the job done unless you have any other ideas.

    Thanks

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    The easiest way would be to insert a helper column between columns A and B (that you can hide from view).

    And in the new B10 enter formula: =IF(A10,A10,B9) copied down.

    Then change the formula in what would now be G7 to: =SUMPRODUCT(--($B$10:$B$23>=G2),--($B$10:$B$23<=G3),--($D$10:$D$23=G5),$C$10:$C$23)

    see attached sample.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-25-2007
    Posts
    11
    Thanks for the idea.

    A nice simple approach.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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