Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default sum if - month question

I am using the following formula (and it works!) to calculate the number of
dates that equal january, feb, and so on.

=SUMPRODUCT(--(MONTH('Raw Data'!H$4:H$18)=1))

Within the raw data, I also have the word "unscheduled" where a date should
belong. I am now getting errors with my formula. How do I add - if the cell
doesn't = unscheduled, then sum product?

Thanks!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default sum if - month question

One way:

=SUMPRODUCT(--(TEXT('Raw Data'!H4:H18,"mmm")="Jan"))

Biff

"paula k" wrote in message
...
I am using the following formula (and it works!) to calculate the number of
dates that equal january, feb, and so on.

=SUMPRODUCT(--(MONTH('Raw Data'!H$4:H$18)=1))

Within the raw data, I also have the word "unscheduled" where a date
should
belong. I am now getting errors with my formula. How do I add - if the
cell
doesn't = unscheduled, then sum product?

Thanks!!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default sum if - month question

Try this

=SUM(IF(ISNUMBER(H$4:H$18),IF(MONTH(H$4:H$18),1)))

as an array formula, commit with Ctrl-Shift-Enter rather than just Enter

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"paula k" wrote in message
...
I am using the following formula (and it works!) to calculate the number of
dates that equal january, feb, and so on.

=SUMPRODUCT(--(MONTH('Raw Data'!H$4:H$18)=1))

Within the raw data, I also have the word "unscheduled" where a date
should
belong. I am now getting errors with my formula. How do I add - if the
cell
doesn't = unscheduled, then sum product?

Thanks!!



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default sum if - month question

One way:

=SUM(IF(ISNUMBER('Raw Data'!H$4:H$18),--(MONTH('Raw Data'!H$4:H$18)=1)))

This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

paula k wrote:

I am using the following formula (and it works!) to calculate the number of
dates that equal january, feb, and so on.

=SUMPRODUCT(--(MONTH('Raw Data'!H$4:H$18)=1))

Within the raw data, I also have the word "unscheduled" where a date should
belong. I am now getting errors with my formula. How do I add - if the cell
doesn't = unscheduled, then sum product?

Thanks!!


--

Dave Peterson
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
12 Month Average Dewayne Excel Worksheet Functions 10 November 6th 06 09:18 PM
Dates Formatting Question - What if you do not know month and/or d elfmajesty Excel Discussion (Misc queries) 4 October 12th 06 08:37 PM
How to create a rolling 6 month average? anley Excel Discussion (Misc queries) 3 August 14th 06 12:41 PM
End of Month question Purple_Jack New Users to Excel 5 May 31st 05 07:12 PM
Month Year Date Format Jamie Excel Worksheet Functions 2 February 7th 05 06:43 PM


All times are GMT +1. The time now is 05:01 PM.

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"