Sumifs/MAX formula Fix

Sparda142

Board Regular
Joined
Dec 19, 2018
Messages
51
Hello,

In the following example below I am trying to use a SUMIFS/MAX formula to get the total sum of a event minus the allowed amount of time for a event. When i try to use the formula below i get a sum of 0:00:00 instead of the actual value. Should i use a different formula completely or does the formula below just need a few tweaks

=SUMIFS($M$12:$M$300,$J$10:$J$300,B$12,$A$13:$A$85,A13)*MAX(0,C$2-B13)

https://ibb.co/xSmKKZ8
 

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
16,666
Hello,

In the following example below I am trying to use a SUMIFS/MAX formula to get the total sum of a event minus the allowed amount of time for a event. When i try to use the formula below i get a sum of 0:00:00 instead of the actual value. Should i use a different formula completely or does the formula below just need a few tweaks

=SUMIFS($M$12:$M$300,$J$10:$J$300,B$12,$A$13:$A$85,A13)*MAX(0,C$2-B13)

https://ibb.co/xSmKKZ8
Each criteria_range argument must contain the same number of rows and columns as the sum_range argument.
 

Sparda142

Board Regular
Joined
Dec 19, 2018
Messages
51
Each criteria_range argument must contain the same number of rows and columns as the sum_range argument.
I've update the formula for my amateur mistake however i noticed that I'm still having a issue were the data provided for the person isn't the correct. The first representative sum totals for B1 shows as 0:00:00 however should be 0:00:01

Updated Formula: =SUMIFS($M$11:$M$300,$J$11:$J$300,B$10,$A$11:$A$300,A11)*MAX(0,C$2-B11)

Screenshot: https://ibb.co/TKkCLGh
 

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
16,666
Your screenshot is not very useful for me. What do you get if you delete the *MAX(0,C$2-B11) term? From the image it looks like this might be creating a circular reference, or possibly this term evaluates to zero.
 

Sparda142

Board Regular
Joined
Dec 19, 2018
Messages
51
I've attached the spread sheet i am working on and made some edits to try and make things simpler. After messing with the spread sheet i believe I need to add Vlookup , Index and match to the formula. In the attached spread sheet i'm trying to say in B11 look up A11 and B10 index column J, match J11 to A11 and match B10 to the sum of B10 for A11 from the matching of J and K. Only Count the information for A11 up to the next blank space in Column K




https://www.mediafire.com/file/0hyfa8x59ehtooy/add_sum_temp_test.xlsx/file
 

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
16,666
Sorry, I don't download files from the web. Maybe someone else can help you.
 

Forum statistics

Threads
1,081,863
Messages
5,361,743
Members
400,654
Latest member
Pinaki Chatterjee

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top