#1   Report Post  
Posted to microsoft.public.excel.misc
scott
 
Posts: n/a
Default Still having trouble

I want to return information per month.

Can I do something like this;

=IF(MONTH=APRIL,COUNTIF(B:B,"CUSTOMER ERROR"),)

Obviously MONTH=APRIL is not the proper language, but I am having trouble
using other date functions.

I want to return a number of how many times a customer caused the default in
an order per month.

This was reccomended earlier:
=SUMPRODUCT(--(S2:S999="CUSTOMER ERROR"),--(MONTH(B2:B999)=5))

Still didn't work. Maybe a dumb question, but what does the "--" mean?

Any help is appreciated.
Thanks so much
Scott
  #3   Report Post  
Posted to microsoft.public.excel.misc
bj
 
Posts: n/a
Default Still having trouble

the "--" changes the logical true false of the equation in the parenthesis to
a numeric 1 or 0

the sumproduct will normally work in a situation like this.

are you sure your date is a date and not text?
for one of the date fields that shoud be April (b2) in an empty cell try
=month(B2)=4 (your example says "5" was this for a May question?)

if the answer is not "true" then it is not a date field and a different
matching equation needs to be used.
do something similar to the "customer error" column.
if there is a chance of leading or trailing spaces you might try trim(S2:S999)

"scott" wrote:

I want to return information per month.

Can I do something like this;

=IF(MONTH=APRIL,COUNTIF(B:B,"CUSTOMER ERROR"),)

Obviously MONTH=APRIL is not the proper language, but I am having trouble
using other date functions.

I want to return a number of how many times a customer caused the default in
an order per month.

This was reccomended earlier:
=SUMPRODUCT(--(S2:S999="CUSTOMER ERROR"),--(MONTH(B2:B999)=5))

Still didn't work. Maybe a dumb question, but what does the "--" mean?

Any help is appreciated.
Thanks so much
Scott

  #4   Report Post  
Posted to microsoft.public.excel.misc
scott
 
Posts: n/a
Default Still having trouble

thanks for your responses!
I tried
=SUMPRODUCT(--(S2:S99="CUSTOMER ERROR"),--(MONTH(B2:B99)=5))
and it returned #VALUE

My dates are correct; entered as =date(2006,5,17)

any ideas where this error is coming from?

"bj" wrote:

the "--" changes the logical true false of the equation in the parenthesis to
a numeric 1 or 0

the sumproduct will normally work in a situation like this.

are you sure your date is a date and not text?
for one of the date fields that shoud be April (b2) in an empty cell try
=month(B2)=4 (your example says "5" was this for a May question?)

if the answer is not "true" then it is not a date field and a different
matching equation needs to be used.
do something similar to the "customer error" column.
if there is a chance of leading or trailing spaces you might try trim(S2:S999)

"scott" wrote:

I want to return information per month.

Can I do something like this;

=IF(MONTH=APRIL,COUNTIF(B:B,"CUSTOMER ERROR"),)

Obviously MONTH=APRIL is not the proper language, but I am having trouble
using other date functions.

I want to return a number of how many times a customer caused the default in
an order per month.

This was reccomended earlier:
=SUMPRODUCT(--(S2:S999="CUSTOMER ERROR"),--(MONTH(B2:B999)=5))

Still didn't work. Maybe a dumb question, but what does the "--" mean?

Any help is appreciated.
Thanks so much
Scott

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
Trouble Forecasting PaulW Excel Discussion (Misc queries) 1 April 26th 06 03:24 PM
Trouble with formulas kevhatch Excel Discussion (Misc queries) 2 January 23rd 06 01:52 AM
UGH! Trouble downloading, and opening anything cali Excel Discussion (Misc queries) 1 December 15th 05 06:36 AM
still having trouble with this.... nick Excel Worksheet Functions 4 March 13th 05 07:40 PM
I have had trouble with textbox text to worksheet Thomas Excel Discussion (Misc queries) 1 March 10th 05 03:23 AM


All times are GMT +1. The time now is 05:17 AM.

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"