Date filter formula

MonicaK

New Member
Joined
Jul 8, 2023
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have the working formula:
=IFERROR(LET(a,FILTER(CHOOSECOLS(Table1,18),(Table1[Type]="General")*(Table1[Colour]="Red")*(Table1[Size]="Large")*(Table1[Name]=$A7)),SUM(a)),0)+(IFERROR(LET(b,FILTER(CHOOSECOLS(Table1,20),(Table1[Type]="General")*(Table1[Colour]="Red")*(Table1[Size]="Large")*(Table1[Name]=$A7)),SUM(b)),0)+(IFERROR(LET(c,FILTER(CHOOSECOLS(Table1,22),(Table1[Type]="General")*(Table1[Colour]="Red")*(Table1[Size]="Large")*(Table1[[3 ]]=$A7)),SUM(c)),0)))

I know it's messy but it works for how the fixed data is set out. However, I am attempting to add into it a date filter. The below formula works alone:
=FILTER(Table1[Date],(Table1[Date]>=DATE(2024,1,1))*(Table1[Date]<=DATE(2024,1,31)))

but I just can't seem to integrate it anyway into the main formula for each of the sums (a, b and c). Any ideas would be gratefully appreciated.

Thanks,
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
For the 3rd part of your formula looking at col 22 is A7 meant to be matching the Name column as per the other 2, or is it correct matching a column called 3?
 
Upvote 0

Forum statistics

Threads
1,215,729
Messages
6,126,524
Members
449,316
Latest member
sravya

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