Help developing a formula

mikecox39

Active Member
Joined
Mar 5, 2014
Messages
251
Office Version
  1. 365
Platform
  1. Windows
Can someone help me with a formula to sum integer values stored in cells in a single row, based on the current date.


In row 1, starting in column B, there are 12 cells containing dates April through March. B1:M1


In row 26, starting in column B, there are 12 cells that contain integer values. B26:M26


i would like to add all the integer values in row 26, starting with B26 up to and including the cell with the current date.


Based on the current month of July that would be the integers in B26:E26 based on the date in E1.


I would put the formula at the end of the integers in row 26, at N26.
 

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)
Can someone help me with a formula to sum integer values stored in cells in a single row, based on the current date.


In row 1, starting in column B, there are 12 cells containing dates April through March. B1:M1


In row 26, starting in column B, there are 12 cells that contain integer values. B26:M26


i would like to add all the integer values in row 26, starting with B26 up to and including the cell with the current date.


Based on the current month of July that would be the integers in B26:E26 based on the date in E1.


I would put the formula at the end of the integers in row 26, at N26.

What do the date values look like?
 
Upvote 0
Assuming your dates are numbers not text, try:
Code:
=SUMIF(B1:M1,"<="&TODAY(),B26:M26)
 
Upvote 0
The dates in row 1 are formatted 4/1/2017 through 3/1/2018
 
Upvote 0
I was able to put your formula to work for all the rows in my spreadsheet! I just had to Edit the B1:M1 range after I dragged it down the column because doing so changed the row number. I just went in and changed that range back to B1:M1. It's working perfectly now!

Thanks again! I've studied the formula and have learned things that will help in the future!
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,874
Members
452,363
Latest member
merico17

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