Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default help with sumif formula

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,856
Default help with sumif formula

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default help with sumif formula

awesome, perfect! thanks. your first formula worked perfectly.
thanks again
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,856
Default help with sumif formula

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
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
SumIf Formula Storm Excel Worksheet Functions 4 June 20th 08 07:34 PM
Nesting a sumproduct formula within a sumif formula. jerrymcm Excel Discussion (Misc queries) 2 October 3rd 07 03:35 PM
multiply formula where 1 cell has a (sumif) formula as a result kcip Excel Worksheet Functions 1 May 3rd 07 07:41 AM
Embed AND formula in SUMIF formula Tinkerbell1178 Excel Discussion (Misc queries) 1 February 21st 07 07:29 AM
Is there a MAXIF formula similar to the SUMIF formula? tlc Excel Discussion (Misc queries) 2 March 13th 06 08:07 PM


All times are GMT +1. The time now is 04:02 AM.

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

About Us

"It's about Microsoft Excel"