SUMIFS formula modification help

JumboCactuar

Well-known Member
Joined
Nov 16, 2016
Messages
785
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have this formula which combines 2 SUMIFS
Excel Formula:
=SUMIFS(I:I,B:B,B9,A:A,"<="&TODAY())+SUMIFS('Sheet2'!H:H,'Sheet2'!A:A,B9,'Sheet2'!O:O,"<="&TODAY())

Instead of TODAY()
I want it to use the most recent date in both parts of the formula
example:
In the 1st SUMIF - latest date = 11/01/2024
2nd SUMIF - latest date = 06/12/2023

So both SUMIFS should use 11/01/2024

Rich (BB code):
=SUMIFS(I:I,B:B,B9,A:A,"<=11/01/2024)+SUMIFS('Sheet2'!H:H,'Sheet2'!A:A,B9,'Sheet2'!O:O,"<=11/01/2024)

Hope this makes sense, and not sure if i need some helper columns
Thanks for any help
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Check this and revert -

Excel Formula:
=Let(mDt,Max(A:A),SUMIFS(I:I,B:B,B9,A:A,"<="&mDt)+SUMIFS('Sheet2'!H:H,'Sheet2'!A:A,B9,'Sheet2'!O:O,"<="&mDt))

Note: It shall use the latest (largest) date in column A:A
 
Upvote 0
Check this and revert -

Excel Formula:
=Let(mDt,Max(A:A),SUMIFS(I:I,B:B,B9,A:A,"<="&mDt)+SUMIFS('Sheet2'!H:H,'Sheet2'!A:A,B9,'Sheet2'!O:O,"<="&mDt))

Note: It shall use the latest (largest) date in column A:A

Hi
Thanks but i think that is wrong

I have dates in the current sheet (Column A)
then dates in Sheet 2 (Column O)

I need it to use the largest date of the two
 
Upvote 0
I need it to use the largest date of the two
Check this and revert -

Excel Formula:
=Let(mDt,Max(Max(A:A),Max(Sheet2'!O:O)),SUMIFS(I:I,B:B,B9,A:A,"<="&mDt)+SUMIFS('Sheet2'!H:H,'Sheet2'!A:A,B9,'Sheet2'!O:O,"<="&mDt))

The above shall search the largest date on the two sheets.
 
Upvote 0
Check this and revert -

Excel Formula:
=Let(mDt,Max(Max(A:A),Max(Sheet2'!O:O)),SUMIFS(I:I,B:B,B9,A:A,"<="&mDt)+SUMIFS('Sheet2'!H:H,'Sheet2'!A:A,B9,'Sheet2'!O:O,"<="&mDt))

The above shall search the largest date on the two sheets.

Thanks Again but that doesn't select the largest date based on the other criteria of the SUMIFS
 
Upvote 0

Forum statistics

Threads
1,215,094
Messages
6,123,071
Members
449,092
Latest member
ipruravindra

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