Need Urgent Help Solving SUMIF Formula Issue Requesting urgent help to solve an issue with a SUMIF formula in Excel. I was asked by my manager to put

NEED_EXCEL_HELP_PLS

New Member
Joined
Jul 1, 2023
Messages
12
Office Version
  1. 365
Requesting urgent help to solve an issue with a SUMIF formula in Excel. I was asked by my manager to put together a spreadsheet of data on Friday, to present on Monday, and spending my entire weekend trying to figure this out. This is the last piece I need to have this working, but I’ve search all over Google for people doing the same thing as me, with no luck. If someone can answer how to do this with SUMIF or a different formula, you’ll be a lifesaver. Thank you!

I’m trying to SUM the value each member on a team has to allocate per project. A Primary in phase1 is a value of 2 and a Primary in phase2 is a value of 4. We’re tracking each phase by month, and trying to Sum the overall value of all project in a specific quarter.

Screenshot 2023-07-02 at 1.20.57.png


For example, John is a Primary for the America project, which falls in Q1-2024 (Jan-24, Feb-24, Mar-24). He has no other projects in Q1-2024 and phase 2 for the project is not until Q2-2024 (Apr-24, May-24, Jun-24). So he should have a value of 2 for Q1-2024.

My issue is the formula I’m using is counting each month more than once and adding a value each time (so it’s adding 2 each time the formula sees the month), which is showing John as a value of 6 instead of 2 for Q1-2024. I’d like to have the formula count each month only ONCE when summing the value for a quarter. Is there a way I can do this?

 Here is the formula or reference

=SUM(SUMIF(D2:D4,{"*Jan-24*","*Feb-24*","*Mar-24*"},E2:E4)+SUMIF(F2:F4,{"*Jan-24*","*Feb-24*","*Mar-24*"},G2:G4))

Is there a way I can use OR when referencing the criteria? For example:
=SUM(SUMIF(D2:D4,{"*Jan-24*" OR “*Feb-24*" OR”*Mar-24*"},E2:E4)

I’m not very experienced when it comes to Excel and would appreciate any support in figuring this out. Thank you so much for your time and reading this post!
 
The issue with the pivot table is that it's still increment the overall value for the member for each month (so it's adding 2 for each month of the quarter someone is working the project. I'm looking for a solution that only add the value once for the quarter regardless if that person is work one, two, or three months that quarter on that project.
 
Upvote 0

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Should the 2nd qtr for John, Steve, and Mary be 5,6,3 respectively?
 
Upvote 0
This might be both ugly and overkill, but possibly works:

Book1
ABCDE
16Team MemberQ1-2024Q2-2024Q3-2024Q4-2024
17John2543
18Steve6673
19Mary3356
Sheet5
Cell Formulas
RangeFormula
B17:B19B17=SUM(IFERROR(FILTER($E$2:$E$13,($A17=$A$2:$A$13)*(ISNUMBER(SEARCH("Jan-24",$D$2:$D$13))+ISNUMBER(SEARCH("Feb-24",$D$2:$D$13))+ISNUMBER(SEARCH("Mar-24",$D$2:$D$13)))),0))+SUM(IFERROR(FILTER($G$2:$G$13,($A17=$A$2:$A$13)*(ISNUMBER(SEARCH("Jan-24",$F$2:$F$13))+ISNUMBER(SEARCH("Feb-24",$F$2:$F$13))+ISNUMBER(SEARCH("Mar-24",$F$2:$F$13)))),0))
C17:C19C17=SUM(IFERROR(FILTER($E$2:$E$13,($A17=$A$2:$A$13)*(ISNUMBER(SEARCH("Apr-24",$D$2:$D$13))+ISNUMBER(SEARCH("May-24",$D$2:$D$13))+ISNUMBER(SEARCH("Jun-24",$D$2:$D$13)))),0))+SUM(IFERROR(FILTER($G$2:$G$13,($A17=$A$2:$A$13)*(ISNUMBER(SEARCH("Apr-24",$F$2:$F$13))+ISNUMBER(SEARCH("May-24",$F$2:$F$13))+ISNUMBER(SEARCH("Jun-24",$F$2:$F$13)))),0))
D17:D19D17=SUM(IFERROR(FILTER($E$2:$E$13,($A17=$A$2:$A$13)*(ISNUMBER(SEARCH("Jul-24",$D$2:$D$13))+ISNUMBER(SEARCH("Aug-24",$D$2:$D$13))+ISNUMBER(SEARCH("Sep-24",$D$2:$D$13)))),0))+SUM(IFERROR(FILTER($G$2:$G$13,($A17=$A$2:$A$13)*(ISNUMBER(SEARCH("Jul-24",$F$2:$F$13))+ISNUMBER(SEARCH("Aug-24",$F$2:$F$13))+ISNUMBER(SEARCH("Sep-24",$F$2:$F$13)))),0))
E17:E19E17=SUM(IFERROR(FILTER($E$2:$E$13,($A17=$A$2:$A$13)*(ISNUMBER(SEARCH("Oct-24",$D$2:$D$13))+ISNUMBER(SEARCH("Nov-24",$D$2:$D$13))+ISNUMBER(SEARCH("Dec-24",$D$2:$D$13)))),0))+(IFERROR(FILTER($G$2:$G$13,($A17=$A$2:$A$13)*(ISNUMBER(SEARCH("Oct-24",$F$2:$F$13))+ISNUMBER(SEARCH("Nov-24",$F$2:$F$13))+ISNUMBER(SEARCH("Dec-24",$F$2:$F$13)))),0))
 
Upvote 0
I believe this is working! At least for John, but would you be able to clarify which part of the formula I would modify to output the results for the other members?

Edit: Sorry, I see that you included the example formulas for the other members as well. I'll definitely try to see if there's a more efficient way to go about this, but in the mean time I think this formula will allow me to get the data ready for Monday. Thanks so much!
 
Upvote 0
Sorry, one more question! Let's say I had to add another phase (Phase3) with another value (Let's say the same values as phase 2, 4 for primary and 2 for secondary), can you confirm what the formula would look like for that, if I wanted to add all of the value for phase 1, 2, and 3 in the bottom table?
 
Upvote 0
For example, something like this:
Example Resourcing.xlsx
ABCDEFGHI
1MemberProject LocationRolePhase1Value1Phase2Value2Phase3Value3
2JohnAmericaPrimaryJan-24, Feb-24, Mar-242Apr-24, May-244Jun-24, Jul-244
3JohnIndiaSecondaryJun-24, Jul-241Aug-24, Sep-242Oct-24, Nov-242
4JohnMexicoSecondarySep-24, Oct-24, Nov-241Dec-24, Jan-252Feb-25, Mar-252
5
6
7SteveEnglandPrimaryJan-24, Feb-242Mar-24, Apr-24, May-244Jun-24, Jul-244
8SteveJapanPrimaryJun-24, Jul-242Aug-24, Sep-244Oct-24, Nov-244
9SteveCanadaSecondarySep-24, Oct-24, Nov-241Dec-24, Jan-252Feb-25, Mar-252
10
11MaryChinaSecondaryJan-24, Feb-241Mar-24, Apr-24, May-242Jun-24, Jul-242
12MaryAustraliaSecondaryJun-24, Jul-241Aug-24, Sep-242Oct-24, Nov-242
13MaryBrazilPrimarySep-24, Oct-24, Nov-242Dec-24, Jan-254Feb-25, Mar-254
14
15
16Team MemberQ1-2024Q2-2024Q3-2024Q4-2024Q1-2025Q2-2025
17John2543
18Steve6673
19Mary3356
Data (2)
Cell Formulas
RangeFormula
B17:B19B17=SUM(IFERROR(FILTER($E$2:$E$13,($A17=$A$2:$A$13)*(ISNUMBER(SEARCH("Jan-24",$D$2:$D$13))+ISNUMBER(SEARCH("Feb-24",$D$2:$D$13))+ISNUMBER(SEARCH("Mar-24",$D$2:$D$13)))),0))+SUM(IFERROR(FILTER($G$2:$G$13,($A17=$A$2:$A$13)*(ISNUMBER(SEARCH("Jan-24",$F$2:$F$13))+ISNUMBER(SEARCH("Feb-24",$F$2:$F$13))+ISNUMBER(SEARCH("Mar-24",$F$2:$F$13)))),0))
C17:C19C17=SUM(IFERROR(FILTER($E$2:$E$13,($A17=$A$2:$A$13)*(ISNUMBER(SEARCH("Apr-24",$D$2:$D$13))+ISNUMBER(SEARCH("May-24",$D$2:$D$13))+ISNUMBER(SEARCH("Jun-24",$D$2:$D$13)))),0))+SUM(IFERROR(FILTER($G$2:$G$13,($A17=$A$2:$A$13)*(ISNUMBER(SEARCH("Apr-24",$F$2:$F$13))+ISNUMBER(SEARCH("May-24",$F$2:$F$13))+ISNUMBER(SEARCH("Jun-24",$F$2:$F$13)))),0))
D17:D19D17=SUM(IFERROR(FILTER($E$2:$E$13,($A17=$A$2:$A$13)*(ISNUMBER(SEARCH("Jul-24",$D$2:$D$13))+ISNUMBER(SEARCH("Aug-24",$D$2:$D$13))+ISNUMBER(SEARCH("Sep-24",$D$2:$D$13)))),0))+SUM(IFERROR(FILTER($G$2:$G$13,($A17=$A$2:$A$13)*(ISNUMBER(SEARCH("Jul-24",$F$2:$F$13))+ISNUMBER(SEARCH("Aug-24",$F$2:$F$13))+ISNUMBER(SEARCH("Sep-24",$F$2:$F$13)))),0))
E17:E19E17=SUM(IFERROR(FILTER($E$2:$E$13,($A17=$A$2:$A$13)*(ISNUMBER(SEARCH("Oct-24",$D$2:$D$13))+ISNUMBER(SEARCH("Nov-24",$D$2:$D$13))+ISNUMBER(SEARCH("Dec-24",$D$2:$D$13)))),0))+(IFERROR(FILTER($G$2:$G$13,($A17=$A$2:$A$13)*(ISNUMBER(SEARCH("Oct-24",$F$2:$F$13))+ISNUMBER(SEARCH("Nov-24",$F$2:$F$13))+ISNUMBER(SEARCH("Dec-24",$F$2:$F$13)))),0))
 
Upvote 0
I think it would be something like this, right (for example for Q2-2024 for John):

=SUM(IFERROR(FILTER($E$2:$E$13,($A17=$A$2:$A$13)*(ISNUMBER(SEARCH("Apr-24",$D$2:$D$13))+ISNUMBER(SEARCH("May-24",$D$2:$D$13))+ISNUMBER(SEARCH("Jun-24",$D$2:$D$13)))),0))+SUM(IFERROR(FILTER($G$2:$G$13,($A17=$A$2:$A$13)*(ISNUMBER(SEARCH("Apr-24",$F$2:$F$13))+ISNUMBER(SEARCH("May-24",$F$2:$F$13))+ISNUMBER(SEARCH("Jun-24",$F$2:$F$13)))),0))+SUM(IFERROR(FILTER($I$2:$I$13,($A17=$A$2:$A$13)*(ISNUMBER(SEARCH("Apr-24",$H$2:$H$13))+ISNUMBER(SEARCH("May-24",$H$2:$H$13))+ISNUMBER(SEARCH("Jun-24",$H$2:$H$13)))),0))
 
Upvote 0
I believe this is working! At least for John, but would you be able to clarify which part of the formula I would modify to output the results for the other members?

Edit: Sorry, I see that you included the example formulas for the other members as well. I'll definitely try to see if there's a more efficient way to go about this, but in the mean time I think this formula will allow me to get the data ready for Monday. Thanks so much!
The formula I wrote should be dragged down and over for the other people
 
Upvote 0
Cell B17 formula , Drag down and across

=SUMPRODUCT(($A$2:$A$13=$A17)*(--MMULT(N(ISNUMBER(SEARCH(CHOOSE(COLUMN(A$1),{"Jan-24","Feb-24","Mar-24"},{"Apr-24","May-24","Jun-24"},{"Jul-24","Aug-24","Sep-24"},{"Oct-24","Nov-24","Dec-24"},{"Jan-25","Feb-25","Mar-25"},{"Apr-25","May-25","Jun-25"},{"Jul-25","Aug-25","Sep-25"},{"Oct-25","Nov-25","Dec-25"}),$D$2:$D$13))),{1;1;1})>0),$E$2:$E$13)+SUMPRODUCT(($A$2:$A$13=$A17)*(--MMULT(N(ISNUMBER(SEARCH(CHOOSE(COLUMN(A$1),{"Jan-24","Feb-24","Mar-24"},{"Apr-24","May-24","Jun-24"},{"Jul-24","Aug-24","Sep-24"},{"Oct-24","Nov-24","Dec-24"},{"Jan-25","Feb-25","Mar-25"},{"Apr-25","May-25","Jun-25"},{"Jul-25","Aug-25","Sep-25"},{"Oct-25","Nov-25","Dec-25"}),$F$2:$F$13))),{1;1;1})>0),$G$2:$G$13)
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,951
Members
449,095
Latest member
nmaske

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top