ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   formula to calculate a column based on dates in a different colum. (https://www.excelbanter.com/excel-worksheet-functions/21023-formula-calculate-column-based-dates-different-colum.html)

Pam

formula to calculate a column based on dates in a different colum.
 
I have dates in column A and numbers in column B-J. I need columns B-J to
add up if dates in A are within a range. For example: if A is between
9/21/2004 and 9/20/2005, then add those lines in column B.

Jason Morin

One way:

=SUM(IF((A1:A100=M1)*(A1:A100<=N1),B1:J100))

Array-entered, meaning press ctrl + shift + enter, where
M1 holds the start date and N1 holds the end date.

HTH
Jason
Atlanta, GA

-----Original Message-----
I have dates in column A and numbers in column B-J. I

need columns B-J to
add up if dates in A are within a range. For example:

if A is between
9/21/2004 and 9/20/2005, then add those lines in column

B.
.



All times are GMT +1. The time now is 03:21 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com