+ Reply to Thread
Results 1 to 7 of 7

Summing Filtering Problem

  1. #1
    Registered User
    Join Date
    08-29-2012
    Location
    NY, NY
    MS-Off Ver
    Excel 2010
    Posts
    20

    Summing Filtering Problem

    I want to count up the OP hours for physician A
    I have a formula that works in some cases: (this is from the real document)
    It compares the year, day, month individually.
    =SUMIFS($G:$G,$A:$A,$A21,$C:$C,$E$1,$D:$D,$A$1,$E:$E,"OP*")


    Unfortunately it no longer meets my needs now that I also want an ability to select between which dates I am summing the hrs. I want to use the =Value() function that calculates the numeric value of a date and then I want to drudge my document for lines where its Physician A, Location OP, Dates between Value(A1) and Value(A2) and add up all the hours. I tried using =ProductSum() but that does not seem to be an option with a wildcard string. A sample doc is attached.

    Any help would be appreciated.

    Best,
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Summing Filtering Problem

    With pivot table (see the attached file).
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    08-29-2012
    Location
    NY, NY
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Summing Filtering Problem

    I thought about pivot tables. They do not do the trick because I am generating a number of individual reports and the outcome of my summation goes on to do other things. The idea is to avoid manually dealing with this (otherwise I would just filter).

    Thanks,

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Summing Filtering Problem

    I don't see (based on your information) the problem, using pivot table.

    But in that case you can use Sumproduct (instead of ProductSum).

  5. #5
    Registered User
    Join Date
    08-29-2012
    Location
    NY, NY
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Summing Filtering Problem

    Sorry about that: I meant sumproduct. Perhaps I do not have that kind of mastery of Pivot tables, but I need a cell, say cell A50, to display the result as my vba code toggles through a list of physicians and changes which one the analysis is being performed for.

  6. #6
    Registered User
    Join Date
    08-29-2012
    Location
    NY, NY
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Summing Filtering Problem

    Is it possible to do sumifs with inequalities (ie ">")

  7. #7
    Registered User
    Join Date
    08-29-2012
    Location
    NY, NY
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Summing Filtering Problem

    =SUMIFS($G:$G,$D:$D,$A$1,$E:$E,("*OP*"),$I:$I,">="&VALUE($G$13),'C:\Users\vchibisov\Desktop\Active Use\[Encounter Productivity Company Wide.xlsm]2D'!$I:$I,"<="&VALUE($G$14))

+ 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