Monthly Goal Formula

nniedzielski

Well-known Member
Joined
Jan 8, 2016
Messages
598
Office Version
  1. 2019
Platform
  1. Windows
I have this formula

Excel Formula:
=SUM(IF(MONTH($P$4:$P$40)=MONTH($T4), $Q$4:$Q$40, 0))

It is looking at an implementation date in column P, and if it matches the Month in Column T, then it calculates the monthly savings in column Q. The issue is, I keep having to change the Range as I add rows monthly, right now it goes down to P40. If i set it to like P50 to give myself ten rows of play, the formula goes #N/A. How can i adjust this formula to where i dont have to keep tinkering with it?

As always, thank you so much!!
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Use a Table for your data, then the formula can use structured references that do not have to explicitly specify the number of rows.

What cell contains this formula, and what does your data look like?
 
Upvote 0
The formulas are in Cells U4 through U15, one for each month. Data is just rows of projects with implementation dates and cost savings. so like:
StatusImp DateAnnual Savings
Implemented1/31/2024$20
In-Progress5/26/2024$900
 
Upvote 0
Column P is the Imp Date
Column Q is the Annual Savings
Is $T4 a single cell that shows current date or is column T full of dates as well?

Does the Status column of Implemented and In-Progress change if you calculate the savings or not?

EDIT: NVM I'm assuming T4 to T15 are the Months and U4 to U15 is calculating monthly savings
 
Upvote 0
What's in column T? Where is this formula?

This gives you a rough idea of what I'm talking about based on some guessing about what your sheet looks like. The first block of data is the structured table. Because it's structured, we use the column headers to identify data so it doesn't matter what columns the data is in. The second block is a list of month numbers and the corresponding formula based on your first post.

$scratch.xlsm
ABC
1StatusImp DateAnnual Savings
2Implemented1/31/202420
3In-Progress5/26/2024900
4In-Progress1/15/2024658
5In-Progress2/15/20246
6In-Progress3/15/2024533
7In-Progress1/15/2024865
Sheet16


$scratch.xlsm
TU
1MonthSome Formula
211543
Sheet16
Cell Formulas
RangeFormula
U2U2=SUM(IF(MONTH(Table1[Imp Date])=MONTH(T2),Table1[Annual Savings],0))
 
Upvote 0
Try this
Excel Formula:
=SUMIF($P:$P, $T4,  $Q:$Q)

This will sum everything in column Q if the month listed in T4 matches the month entered in Column P

1713536952290.png
 
Upvote 0
If Implemented/In-Progress matter, use
Excel Formula:
=SUMIFS($Q:$Q, $P:$P, $T4, $O:$O, "Implemented")
1713537192937.png
 
Upvote 0
I tried this and it makes sense, but i am getting: should be getting $1,800,000
Can you show the formula entered and the sheet view like I did?

EDIT:
Also is your month column Jan-24 type in and formatted as General or is it 1/1/2024 formatted as Date to display MMM-YY
 
Upvote 0

Forum statistics

Threads
1,215,358
Messages
6,124,487
Members
449,165
Latest member
ChipDude83

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