SUM values to today()

Maurizio

Well-known Member
Joined
Oct 15, 2002
Messages
687
Office Version
  1. 2007
Platform
  1. Windows
Hi all,
I have this data: [eu format (dd/mm/yy)]

10/08/21 | 500 | 10/09/21 | 1500 | 11/10/21 | 2500 | 11/11/21 | 3000 | 11/12/21 | 2500 | 11/01/22 | 1500 | 11/02/22 | 1000 | 11/03/22 | 1500 | 11/03/22 | 1000 | 11/03/22 | 500 |

I need a formula that give me 7500 ossia sum all values that have expired as of today

Tia. Maurizio
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Are those values in one cell, across a column or what?
It would help if you posted some sample data, so we can see

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
so:
1638394471279.png
 

Attachments

  • 1638394460427.png
    1638394460427.png
    8.9 KB · Views: 4
Upvote 0
How about
Excel Formula:
=SUMIFS(B1:T1,A1:S1,"<="&TODAY())
 
Upvote 0
Ok, how about
Excel Formula:
=SUMPRODUCT((A1:S1<=TODAY())*(ISODD(COLUMN(A1:S1))),B1:T1)
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,615
Messages
6,120,538
Members
448,970
Latest member
kennimack

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