Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Help with an Array

Ok, here is what I need to do: I need to count the number of
"Consulting" column, the number of times it was initiated by
"Proposal", and the month that it occurred in, which is the
numerical (serial) value of the month. The month I am currently
working on is September. So if there were two proposals for consulting
services during the month, I need that to be reported back to a cell.

I started with the below array but just could not get it to work. It
is a variation of another array I used to check revenue using the same
parameters but without trying to separate the RFP and Consulting from
the list. I am pretty sure I am screwing up on the COUNTIF because I
get "0" in my answer cell.

=SUM(COUNTIF($G$4:$G$5000,"Consulting")*($T$4:$T$5 000=38930)*($S$4:$S$5000<=38960)*((COUNTIF(D4:D40 0,"Proposal"))))

RFP WEB 38935
PROPOSAL CONSULTING 38936
RFP MARKETING 38937
RFP CONSULTING 38938
PROPOSAL MARKETING 38939
PROPOSAL WEB 38940

Thanks for the help!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 510
Default Help with an Array

Hi Ted,

What about a pivot table ... which would also give you the flexibility
to move around your data ...

HTH
Cheers
Carim

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Help with an Array

Hi Ted

for this sort of counting with multiple conditions SUMPRODUCT is probably
the best option. Assuming your dates are in column S try this

=SUMPRODUCT(--($G$4:$G$5000="Consulting"),--(TEXT($S$4:$S$5000,"mmm
yy")="Sep 06"),--($D$4:$D$5000="Proposal"))
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Help with an Array

An unfortunate line break:

=SUMPRODUCT(--($G$4:$G$5000="Consulting"),
--(TEXT($S$4:$S$5000,"mmm yy")="Sep 06"),
--($D$4:$D$5000="Proposal"))



daddylonglegs wrote:

Hi Ted

for this sort of counting with multiple conditions SUMPRODUCT is probably
the best option. Assuming your dates are in column S try this

=SUMPRODUCT(--($G$4:$G$5000="Consulting"),--(TEXT($S$4:$S$5000,"mmm
yy")="Sep 06"),--($D$4:$D$5000="Proposal"))


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Help with an Array

Thanks for the help but two things:

When using the formula, Excel keeps say it is a circular reference.

Secondly, I inherited this workbook and do not have the time to change
it to a pivot table.

T


Dave Peterson wrote:
An unfortunate line break:

=SUMPRODUCT(--($G$4:$G$5000="Consulting"),
--(TEXT($S$4:$S$5000,"mmm yy")="Sep 06"),
--($D$4:$D$5000="Proposal"))



daddylonglegs wrote:

Hi Ted

for this sort of counting with multiple conditions SUMPRODUCT is probably
the best option. Assuming your dates are in column S try this

=SUMPRODUCT(--($G$4:$G$5000="Consulting"),--(TEXT($S$4:$S$5000,"mmm
yy")="Sep 06"),--($D$4:$D$5000="Proposal"))


--

Dave Peterson




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Help with an Array

Update:

I got rid of the circular reference by removing "06" from the array and
from the cell. The problem is that I will be referencing against the
serial dates.

Is there a way to incorporate the date checking using the serial dates
of a month? Instead of using the (TEXT(..."mmm yy"..) is possible to
use something like ($T$4:$T$5000=38930)*($S$4:$S$5000<=38960) I am
just not sure how to incorportate it into the formula from earlier...

=SUMPRODUCT(--($G$4:$G$5000="Consulting"),--(TEXT($S$4:$S$5000,"mmm
yy")="Sep"),--($D$4:$D$5000="Proposal"))
Ted McCastlain wrote:
Thanks for the help but two things:

When using the formula, Excel keeps say it is a circular reference.

Secondly, I inherited this workbook and do not have the time to change
it to a pivot table.

T


Dave Peterson wrote:
An unfortunate line break:

=SUMPRODUCT(--($G$4:$G$5000="Consulting"),
--(TEXT($S$4:$S$5000,"mmm yy")="Sep 06"),
--($D$4:$D$5000="Proposal"))



daddylonglegs wrote:

Hi Ted

for this sort of counting with multiple conditions SUMPRODUCT is probably
the best option. Assuming your dates are in column S try this

=SUMPRODUCT(--($G$4:$G$5000="Consulting"),--(TEXT($S$4:$S$5000,"mmm
yy")="Sep 06"),--($D$4:$D$5000="Proposal"))


--

Dave Peterson


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Help with an Array

Removing the 06 from the formula didn't affect the circular reference. I'm
betting that you put the formula in a cell in one of those ranges that were used
within the formula.

Maybe:

=SUMPRODUCT(($G$4:$G$5000="Consulting")
*($T$4:$T$5000=38930)*($S$4:$S$5000<=38960)
*($D$4:$D$5000="Proposal"))

Watch your ranges (I read your initial post and your ranges weren't the same
size).

But if I inherited this from you, I would find it difficult to figure out.

=SUMPRODUCT(($G$4:$G$5000="Consulting")
*($T$4:$T$5000=date(2006,8,1))*($S$4:$S$5000<=dat e(2006,8,31))
*($D$4:$D$5000="Proposal"))

would be easier for me to understand.

But as long as I'm looking at a complete month, I'd use a variation of
DaddyLongLeg's:

=SUMPRODUCT(--($G$4:$G$5000="Consulting"),
--(TEXT($S$4:$S$5000,"yyyymm")="200608"),
--($D$4:$D$5000="Proposal"))

That seems the easiest for me to understand.


Ted McCastlain wrote:

Update:

I got rid of the circular reference by removing "06" from the array and
from the cell. The problem is that I will be referencing against the
serial dates.

Is there a way to incorporate the date checking using the serial dates
of a month? Instead of using the (TEXT(..."mmm yy"..) is possible to
use something like ($T$4:$T$5000=38930)*($S$4:$S$5000<=38960) I am
just not sure how to incorportate it into the formula from earlier...

=SUMPRODUCT(--($G$4:$G$5000="Consulting"),--(TEXT($S$4:$S$5000,"mmm
yy")="Sep"),--($D$4:$D$5000="Proposal"))
Ted McCastlain wrote:
Thanks for the help but two things:

When using the formula, Excel keeps say it is a circular reference.

Secondly, I inherited this workbook and do not have the time to change
it to a pivot table.

T


Dave Peterson wrote:
An unfortunate line break:

=SUMPRODUCT(--($G$4:$G$5000="Consulting"),
--(TEXT($S$4:$S$5000,"mmm yy")="Sep 06"),
--($D$4:$D$5000="Proposal"))



daddylonglegs wrote:

Hi Ted

for this sort of counting with multiple conditions SUMPRODUCT is probably
the best option. Assuming your dates are in column S try this

=SUMPRODUCT(--($G$4:$G$5000="Consulting"),--(TEXT($S$4:$S$5000,"mmm
yy")="Sep 06"),--($D$4:$D$5000="Proposal"))

--

Dave Peterson


--

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
Display an array of references andy62 Excel Worksheet Functions 1 July 6th 06 03:36 AM
Pass an array to Rank Biff Excel Worksheet Functions 12 June 29th 05 04:15 PM
Where is the bug in my array? Gail Gurman Excel Discussion (Misc queries) 1 January 25th 05 12:36 AM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
VBA Import of text file & Array parsing of that data Dennis Excel Discussion (Misc queries) 4 November 28th 04 10:20 PM


All times are GMT +1. The time now is 02:08 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"