Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jeff
 
Posts: n/a
Default Last Months Data!!

I am trying to auto populate a cell with sum of users for last month:

Column A Column B
Month No of Users

I have managed to calculate, this weeks, last weeks and the last 30 days
total of users using a variation of:
=SUMIF(A1:A100, "="&TODAY()-7, B1:B100)

I want to be able to see the last calender month total. So today I would get
the total number of users for November.

I have tried adding the MONTH function but the SUMIF function does like all
the arguments needed to calculate the what last month was.

Any help would be appreciated.
-
Jeff
  #3   Report Post  
Dave R.
 
Posts: n/a
Default

Try

=SUMPRODUCT(--(MONTH(A1:A100)=MONTH(TODAY())-1),B1:B100)




"Jeff" wrote in message
...
I am trying to auto populate a cell with sum of users for last month:

Column A Column B
Month No of Users

I have managed to calculate, this weeks, last weeks and the last 30 days
total of users using a variation of:
=SUMIF(A1:A100, "="&TODAY()-7, B1:B100)

I want to be able to see the last calender month total. So today I would

get
the total number of users for November.

I have tried adding the MONTH function but the SUMIF function does like

all
the arguments needed to calculate the what last month was.

Any help would be appreciated.
-
Jeff



  #4   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

You can do it easier by using sumproduct and MONTH but if you want to use
SUMIF you would need something like

=SUMIF(A1:A100, "="&DATE(YEAR(TODAY()),MONTH(TODAY())-1,1),
B1:B100)-SUMIF(A1:A100, ""&DATE(YEAR(TODAY()),MONTH(TODAY()),0), B1:B100)


Regards,

Peo Sjoblom

"Jeff" wrote:

I am trying to auto populate a cell with sum of users for last month:

Column A Column B
Month No of Users

I have managed to calculate, this weeks, last weeks and the last 30 days
total of users using a variation of:
=SUMIF(A1:A100, "="&TODAY()-7, B1:B100)

I want to be able to see the last calender month total. So today I would get
the total number of users for November.

I have tried adding the MONTH function but the SUMIF function does like all
the arguments needed to calculate the what last month was.

Any help would be appreciated.
-
Jeff

  #5   Report Post  
Jeff
 
Posts: n/a
Default

Thanks for the help.

"Dave R." wrote:

Try

=SUMPRODUCT(--(MONTH(A1:A100)=MONTH(TODAY())-1),B1:B100)




"Jeff" wrote in message
...
I am trying to auto populate a cell with sum of users for last month:

Column A Column B
Month No of Users

I have managed to calculate, this weeks, last weeks and the last 30 days
total of users using a variation of:
=SUMIF(A1:A100, "="&TODAY()-7, B1:B100)

I want to be able to see the last calender month total. So today I would

get
the total number of users for November.

I have tried adding the MONTH function but the SUMIF function does like

all
the arguments needed to calculate the what last month was.

Any help would be appreciated.
-
Jeff




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with data not getting plotted Scott Ehrlich Excel Discussion (Misc queries) 2 January 25th 05 05:17 AM
Help with data not getting plotted Scott Ehrlich Charts and Charting in Excel 1 January 23rd 05 05:15 PM
Charting data ranges that change mikelee101 Charts and Charting in Excel 2 December 16th 04 11:07 PM
Weekly data allocated to months Henry Bolton Excel Worksheet Functions 2 December 13th 04 02:15 PM
Weekly data allocated to months Henry Bolton Excel Worksheet Functions 2 December 13th 04 09:53 AM


All times are GMT +1. The time now is 01:38 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"