![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 8
|
I have a spreadsheet consisting of 5 columns.
ColumnA displays dates in a downward fashion. A2=01/10/2001, A2=02/10/2001 etc. The next four columns display sales activity for that day, eg meetings arranged etc. In this column a number is inserted eg 2. I currently have a totals row at the end of each month but would like to have a seperate table using the countIf or Sumif function. I have tried using the formula (this is not the formula just explaining what i have done!) SUMIF A1:A90 is less than or equal to 31/10/2001 then SUM the meetings in A1:A90 hoping that in that cell I would get the results for october 2001, however excel does not appear to recognise I want all the info for all dates before OCt 31st 2001, any ideas? I would also have additional cells in the new table to do the same formula but for Nov 1 2001:Nov 30 2001 etc. In this case I would need to conditions, If a2:a90 > NOV 01 2001 but < DEC 1 2001 Thanks Folks |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Posts: 1,805
|
One of the possibilities is to Autofilter by date, using custom filter in which you put your starting and ending dates.
Then use the SUBTOTAL formula to count or sum every column you want in the filtered time range. Eli |
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
=MONTH(A2) Enter from I2 on the month numbers 1 to 12. In H2 enter and copy down: =SUMIF($G$2:$G$100,I2,$B$2:$B$100) |
|
|
|
|
|
|
#4 |
|
New Member
Join Date: May 2002
Posts: 8
|
Thanks guys, both suggestions work well, But wanting the simplest way of entering as least data as possible the Month function works well, if combined with the year function it will work indefinately... Obviously as aladin suggested I will have to manually enter the values that the formula creates as excel won't sum a formula but i can make a macro to copy the formula and paste values on cell entry, unless there is another way? ideally i didn't want to use VB or macros, and having additional formulas i would have to. Thats why I was hoping it could be done in one formula? Cheers for the help so far guys.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|