Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default question regarding formula

I have an excel 2003 spreadsheet that has two worksheets in it. The second
worksheet calculates how many boxes were finished per month by each
individual from the first worksheet. The formula I am using is:

=SUMPRODUCT(--('Box Status'!$D$3:$D$31="BG"),--(MONTH('Box
Status'!$J$3:$J$31)=10))

So, it is supposed to count how many instances there are of the initials in
D3 through D31 (each row has a different set of initials) and for that
individual how many were completed in October. It seems to work except in a
couple of instances. January is all messed up. It is counting boxes being
finished in January for some people when they didn't finish any!

I thought at first it was because the dates are formatted as 01/29/08 and
the formula for January says =1, but it doesn't seem to make any difference.

Does anyone have any suggestions?

Tania
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default question regarding formula

Maybe they have empty cells, they are seen as January 0 1900 so you need to
add

,--(ISNUMBER('Box Status'!$J$3:$J$31))


into your formula


--


Regards,


Peo Sjoblom






"TLAngelo" wrote in message
...
I have an excel 2003 spreadsheet that has two worksheets in it. The second
worksheet calculates how many boxes were finished per month by each
individual from the first worksheet. The formula I am using is:

=SUMPRODUCT(--('Box Status'!$D$3:$D$31="BG"),--(MONTH('Box
Status'!$J$3:$J$31)=10))

So, it is supposed to count how many instances there are of the initials
in
D3 through D31 (each row has a different set of initials) and for that
individual how many were completed in October. It seems to work except in
a
couple of instances. January is all messed up. It is counting boxes
being
finished in January for some people when they didn't finish any!

I thought at first it was because the dates are formatted as 01/29/08 and
the formula for January says =1, but it doesn't seem to make any
difference.

Does anyone have any suggestions?

Tania



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default question regarding formula

This one worked perfectly! Thank you!

"Peo Sjoblom" wrote:

Maybe they have empty cells, they are seen as January 0 1900 so you need to
add

,--(ISNUMBER('Box Status'!$J$3:$J$31))


into your formula


--


Regards,


Peo Sjoblom






"TLAngelo" wrote in message
...
I have an excel 2003 spreadsheet that has two worksheets in it. The second
worksheet calculates how many boxes were finished per month by each
individual from the first worksheet. The formula I am using is:

=SUMPRODUCT(--('Box Status'!$D$3:$D$31="BG"),--(MONTH('Box
Status'!$J$3:$J$31)=10))

So, it is supposed to count how many instances there are of the initials
in
D3 through D31 (each row has a different set of initials) and for that
individual how many were completed in October. It seems to work except in
a
couple of instances. January is all messed up. It is counting boxes
being
finished in January for some people when they didn't finish any!

I thought at first it was because the dates are formatted as 01/29/08 and
the formula for January says =1, but it doesn't seem to make any
difference.

Does anyone have any suggestions?

Tania




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default question regarding formula

This didn't work Sandy, but the formula that Peo Sjoblom provided did...
thank you for your help!

Tania

"Sandy Mann" wrote:

MONTH() will return 1 for empty cells because a date is just a number and XL
*thinks* that day zero was in January 1900.

For January add aother condition to the formula:

=SUMPRODUCT(--('Box Status'!$D$3:$D$31="BG"),--('Box
Status'!$J$3:$J$31)<"")--(MONTH('Box Status'!$J$3:$J$31)=1)

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"TLAngelo" wrote in message
...
I have an excel 2003 spreadsheet that has two worksheets in it. The second
worksheet calculates how many boxes were finished per month by each
individual from the first worksheet. The formula I am using is:

=SUMPRODUCT(--('Box Status'!$D$3:$D$31="BG"),--(MONTH('Box
Status'!$J$3:$J$31)=10))

So, it is supposed to count how many instances there are of the initials
in
D3 through D31 (each row has a different set of initials) and for that
individual how many were completed in October. It seems to work except in
a
couple of instances. January is all messed up. It is counting boxes
being
finished in January for some people when they didn't finish any!

I thought at first it was because the dates are formatted as 01/29/08 and
the formula for January says =1, but it doesn't seem to make any
difference.

Does anyone have any suggestions?

Tania




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
Formula Question Thomas Excel Worksheet Functions 3 December 20th 07 02:35 PM
Formula Question Wanda Excel Worksheet Functions 6 November 7th 07 04:56 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
formula QUESTION Excel Worksheet Functions 2 November 10th 05 12:18 PM
formula question imjustme Excel Discussion (Misc queries) 1 September 1st 05 06:16 PM


All times are GMT +1. The time now is 07:43 PM.

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"