ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Calculate items based on calendar year ending today (https://www.excelbanter.com/excel-worksheet-functions/230055-calculate-items-based-calendar-year-ending-today.html)

Illogical Lucy

Calculate items based on calendar year ending today
 
How can i set up a formula or spreadsheet to calculate how many item have
occurred in the last year based on today's date?

Niek Otten

Calculate items based on calendar year ending today
 
One way:

Insert a column in which you extract the year from the dates:
=YEAR(A1), fill down
Then SUMIF on that column:
=SUMIF(B1:B7,YEAR(TODAY()),C1:C7)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Illogical Lucy" <Illogical wrote in message
...
How can i set up a formula or spreadsheet to calculate how many item have
occurred in the last year based on today's date?




All times are GMT +1. The time now is 08:41 PM.

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