+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Help with formula - trying to do a multiple select based on range

  1. #1
    Registered User
    Join Date
    12-01-2010
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    2

    Help with formula - trying to do a multiple select based on range

    Hi there,
    I'm trying to create a formula in excel instead of using access to accomplish the following:

    1. I have a table with contract information which as start and end dates and rates for a given contractor.
    2. I have a table with the dates work by contractor and invoice rates.

    I want to lookup the contracted rate based on the date worked.

    I've attached the 2 tables in a simple example. The column in green is the one i want populated with the correct info.

    Thanks.

    Q
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,515

    Re: Help with formula - trying to do a multiple select based on range

    J3: =SUMPRODUCT(--($A$3:$A$7=G3),--($B$3:$B$7<=H3),--($C$3:$C$7>=H3),($D$3:$D$7))

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    12-01-2010
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Help with formula - trying to do a multiple select based on range

    Quote Originally Posted by TMShucks View Post
    J3: =SUMPRODUCT(--($A$3:$A$7=G3),--($B$3:$B$7<=H3),--($C$3:$C$7>=H3),($D$3:$D$7))

    Regards
    Awesome Thanks! Works great!

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,515

    Re: Help with formula - trying to do a multiple select based on range

    You're welcome. Thanks for the feedback.

    Please mark the thread as solved.

    Regards

+ 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