+ Reply to Thread
Results 1 to 3 of 3

I need to add a criteria to a sumproduct formula

  1. #1
    Registered User
    Join Date
    05-13-2013
    Location
    Franklin, Tn
    MS-Off Ver
    Excel 2010
    Posts
    16

    I need to add a criteria to a sumproduct formula

    Currently I use this formula to calculate a total for me: =SUMPRODUCT(--((N9>=Table35[Admit Date])*(N9<=Table35[Discharge Date])))

    What I need to do is add a criteria of when Table35[Facility]="MH" to this formula, but can't seem to get the syntax to work correctly.

    Any help would be awesome!

    Thanks!

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

    Re: I need to add a criteria to a sumproduct formula

    Try:

    =SUMPRODUCT((N9>=Table35[Admit Date])*(N9<=Table35[Discharge Date])*(Table35[Facility]="MH"))
    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
    05-13-2013
    Location
    Franklin, Tn
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: I need to add a criteria to a sumproduct formula

    Perfect, worked like a charm! Thanks!

+ 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