Need help writing a formula in excel

321Fred

New Member
Joined
Nov 4, 2023
Messages
4
Office Version
  1. 365
Platform
  1. Windows
I have a formula that gathers data from another tab then checks the data against a given Monthly budget number, if the gathered data is greater that the given budget number the amount over the budget number is displayed in a cell for the particular month. My problem is I just can't figure out how to write the formula to include the specific year to gather data for from the other tab. I'm pretty sure the added syntax should be (YEAR('Prop&Equip-Maint. Mortgage'!)=($F$1) However everything I've tried don't work.

This is the current entire formula:

=IF(SUM(FILTER('Prop&Equip-Maint. Mortgage'!$F$7:$F$1000,--(MONTH('Prop&Equip-Maint. Mortgage'!$B$7:$B$1000)=(1))*(('Prop&Equip-Maint. Mortgage'!$D$7:$D$1000)="Mortgage"),0))>$C$27,$C$27-SUM(FILTER('Prop&Equip-Maint. Mortgage'!$F$7:$F$1000,--(MONTH('Prop&Equip-Maint. Mortgage'!$B$7:$B$1000)=(1))*(('Prop&Equip-Maint. Mortgage'!$D$7:$D$1000)="Mortgage"),0)),"")

This formula looks for a specific catagory i.e. Mortgage which is why I need the filter, however the table covers multiple years which is why the formula has to gather the data while only considerring the year seen in the cell $F$1

Can anyone help with this?
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Is there any chance you can supply an example of what this spreadsheet looks like? It's difficult to format anything based on a formula from one cell and limited information.
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=LET(a,SUM(FILTER('Prop&Equip-Maint. Mortgage'!$F$7:$F$1000,(MONTH('Prop&Equip-Maint. Mortgage'!$B$7:$B$1000)=1)*(YEAR('Prop&Equip-Maint. Mortgage'!$B$7:$B$1000)=$F$1)*('Prop&Equip-Maint. Mortgage'!$D$7:$D$1000="Mortgage"),0)),IF(a>$C$27,$C$27-a,""))
 
Upvote 0
Solution

Forum statistics

Threads
1,215,069
Messages
6,122,952
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