Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here is my column A (formated as a Date):
1-Oct 2-Oct 3-Oct 4-Oct 5-Oct 6-Oct ..... .... Then in Column B i plug in the number of miles I ran. What i would like to do is Sum column B if Column A contains "Oct", or "Sep", etc.. How do i use the SumIf formula when Column A is formated as a date? Looking for "...Oct" does not work for me. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this:
=SUMPRODUCT(--(TEXT(A1:A100,"mmm")="Oct"),B1:B100) adjust the range to suit your data. If you put Sep and Oct in cells, eg D1, D2, then the formula becomes: =SUMPRODUCT(--(TEXT(A$1:A$100,"mmm")=D1),B$1:B$100) and you can copy this down to pick up the other months on successive rows. Hope this helps. Pete On Oct 17, 7:52*pm, dksaluki wrote: Here is my column A (formated as a Date): 1-Oct 2-Oct 3-Oct 4-Oct 5-Oct 6-Oct .... ... Then in Column B i plug in the number of miles I ran. *What i would like to do is Sum column B if Column A contains "Oct", or "Sep", etc.. *How do i use the SumIf formula when Column A is formated as a date? *Looking for "...Oct" *does not work for me. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
awesome, perfect! thanks. your first formula worked perfectly.
thanks again |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You're welcome - thanks for feeding back.
Pete On Oct 17, 8:06*pm, dksaluki wrote: awesome, perfect! *thanks. *your first formula worked perfectly. thanks again |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
SumIf Formula | Excel Worksheet Functions | |||
Nesting a sumproduct formula within a sumif formula. | Excel Discussion (Misc queries) | |||
multiply formula where 1 cell has a (sumif) formula as a result | Excel Worksheet Functions | |||
Embed AND formula in SUMIF formula | Excel Discussion (Misc queries) | |||
Is there a MAXIF formula similar to the SUMIF formula? | Excel Discussion (Misc queries) |