PC Review


Reply
Thread Tools Rate Thread

Counting values in an array where value in one column is not null

 
 
CW
Guest
Posts: n/a
 
      21st Apr 2010
Hi,

I am collating project details from multiple sources and need to report back
how many projects are active in specific phases based on data such as in the
table below:
Projects Phase Version "Start Date
W/c" "End Date
W/c"
A Prep
Build
Deliver a1 5-Apr 26-Apr
Close a1 26-Apr 26-Jul
B Prep
Build
Deliver b1 5-Apr 26-Apr
Close b1 26-Apr 26-Jul
C Prep
Build c1 19-Apr 3-May
Deliver c1 5-Apr 19-Apr
Close c2 3-May 2-Aug
D Prep d1 5-Apr 5-Jul
Build d1 26-Jul 2-Aug
Deliver d1 5-Jul 26-Jul
Close d1 2-Aug 1-Nov


If the start date has an entry it means that phase is active. In the table
above I would need to count how many projects are at the 'Deliver' stage for
example.

I have tried a few options and the closed I have got is:
=COUNTIF(Data1!B318,"deliver") however this also counts cells which
contain a null value,

Could anyone help please?
 
Reply With Quote
 
 
 
 
Ashish Mathur
Guest
Posts: n/a
 
      21st Apr 2010
Hi,

Ty this

=sumproduct((Data1!B3:B18="Deliver")*(Data1!D318<>""))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"CW" <(E-Mail Removed)> wrote in message
news:48D24CE0-64C2-4978-ACD1-(E-Mail Removed)...
> Hi,
>
> I am collating project details from multiple sources and need to report
> back
> how many projects are active in specific phases based on data such as in
> the
> table below:
> Projects Phase Version "Start Date
> W/c" "End Date
> W/c"
> A Prep
> Build
> Deliver a1 5-Apr 26-Apr
> Close a1 26-Apr 26-Jul
> B Prep
> Build
> Deliver b1 5-Apr 26-Apr
> Close b1 26-Apr 26-Jul
> C Prep
> Build c1 19-Apr 3-May
> Deliver c1 5-Apr 19-Apr
> Close c2 3-May 2-Aug
> D Prep d1 5-Apr 5-Jul
> Build d1 26-Jul 2-Aug
> Deliver d1 5-Jul 26-Jul
> Close d1 2-Aug 1-Nov
>
>
> If the start date has an entry it means that phase is active. In the
> table
> above I would need to count how many projects are at the 'Deliver' stage
> for
> example.
>
> I have tried a few options and the closed I have got is:
> =COUNTIF(Data1!B318,"deliver") however this also counts cells which
> contain a null value,
>
> Could anyone help please?


 
Reply With Quote
 
CW
Guest
Posts: n/a
 
      21st Apr 2010
Thanks for the quick response Ashish however unfortunately this doesn't work
and just returns a value of 0.



"Ashish Mathur" wrote:

> Hi,
>
> Ty this
>
> =sumproduct((Data1!B3:B18="Deliver")*(Data1!D318<>""))
>
> --
> Regards,
>
> Ashish Mathur
> Microsoft Excel MVP
> www.ashishmathur.com
>
> "CW" <(E-Mail Removed)> wrote in message
> news:48D24CE0-64C2-4978-ACD1-(E-Mail Removed)...
> > Hi,
> >
> > I am collating project details from multiple sources and need to report
> > back
> > how many projects are active in specific phases based on data such as in
> > the
> > table below:
> > Projects Phase Version "Start Date
> > W/c" "End Date
> > W/c"
> > A Prep
> > Build
> > Deliver a1 5-Apr 26-Apr
> > Close a1 26-Apr 26-Jul
> > B Prep
> > Build
> > Deliver b1 5-Apr 26-Apr
> > Close b1 26-Apr 26-Jul
> > C Prep
> > Build c1 19-Apr 3-May
> > Deliver c1 5-Apr 19-Apr
> > Close c2 3-May 2-Aug
> > D Prep d1 5-Apr 5-Jul
> > Build d1 26-Jul 2-Aug
> > Deliver d1 5-Jul 26-Jul
> > Close d1 2-Aug 1-Nov
> >
> >
> > If the start date has an entry it means that phase is active. In the
> > table
> > above I would need to count how many projects are at the 'Deliver' stage
> > for
> > example.
> >
> > I have tried a few options and the closed I have got is:
> > =COUNTIF(Data1!B318,"deliver") however this also counts cells which
> > contain a null value,
> >
> > Could anyone help please?

>

 
Reply With Quote
 
Eduardo
Guest
Posts: n/a
 
      21st Apr 2010
Hi,
formula provided should work, check if you don't have any blank space in the
word Deliver

"CW" wrote:

> Thanks for the quick response Ashish however unfortunately this doesn't work
> and just returns a value of 0.
>
>
>
> "Ashish Mathur" wrote:
>
> > Hi,
> >
> > Ty this
> >
> > =sumproduct((Data1!B3:B18="Deliver")*(Data1!D318<>""))
> >
> > --
> > Regards,
> >
> > Ashish Mathur
> > Microsoft Excel MVP
> > www.ashishmathur.com
> >
> > "CW" <(E-Mail Removed)> wrote in message
> > news:48D24CE0-64C2-4978-ACD1-(E-Mail Removed)...
> > > Hi,
> > >
> > > I am collating project details from multiple sources and need to report
> > > back
> > > how many projects are active in specific phases based on data such as in
> > > the
> > > table below:
> > > Projects Phase Version "Start Date
> > > W/c" "End Date
> > > W/c"
> > > A Prep
> > > Build
> > > Deliver a1 5-Apr 26-Apr
> > > Close a1 26-Apr 26-Jul
> > > B Prep
> > > Build
> > > Deliver b1 5-Apr 26-Apr
> > > Close b1 26-Apr 26-Jul
> > > C Prep
> > > Build c1 19-Apr 3-May
> > > Deliver c1 5-Apr 19-Apr
> > > Close c2 3-May 2-Aug
> > > D Prep d1 5-Apr 5-Jul
> > > Build d1 26-Jul 2-Aug
> > > Deliver d1 5-Jul 26-Jul
> > > Close d1 2-Aug 1-Nov
> > >
> > >
> > > If the start date has an entry it means that phase is active. In the
> > > table
> > > above I would need to count how many projects are at the 'Deliver' stage
> > > for
> > > example.
> > >
> > > I have tried a few options and the closed I have got is:
> > > =COUNTIF(Data1!B318,"deliver") however this also counts cells which
> > > contain a null value,
> > >
> > > Could anyone help please?

> >

 
Reply With Quote
 
CW
Guest
Posts: n/a
 
      21st Apr 2010
Yes, thanks both. This does work

"Eduardo" wrote:

> Hi,
> formula provided should work, check if you don't have any blank space in the
> word Deliver
>
> "CW" wrote:
>
> > Thanks for the quick response Ashish however unfortunately this doesn't work
> > and just returns a value of 0.
> >
> >
> >
> > "Ashish Mathur" wrote:
> >
> > > Hi,
> > >
> > > Ty this
> > >
> > > =sumproduct((Data1!B3:B18="Deliver")*(Data1!D318<>""))
> > >
> > > --
> > > Regards,
> > >
> > > Ashish Mathur
> > > Microsoft Excel MVP
> > > www.ashishmathur.com
> > >
> > > "CW" <(E-Mail Removed)> wrote in message
> > > news:48D24CE0-64C2-4978-ACD1-(E-Mail Removed)...
> > > > Hi,
> > > >
> > > > I am collating project details from multiple sources and need to report
> > > > back
> > > > how many projects are active in specific phases based on data such as in
> > > > the
> > > > table below:
> > > > Projects Phase Version "Start Date
> > > > W/c" "End Date
> > > > W/c"
> > > > A Prep
> > > > Build
> > > > Deliver a1 5-Apr 26-Apr
> > > > Close a1 26-Apr 26-Jul
> > > > B Prep
> > > > Build
> > > > Deliver b1 5-Apr 26-Apr
> > > > Close b1 26-Apr 26-Jul
> > > > C Prep
> > > > Build c1 19-Apr 3-May
> > > > Deliver c1 5-Apr 19-Apr
> > > > Close c2 3-May 2-Aug
> > > > D Prep d1 5-Apr 5-Jul
> > > > Build d1 26-Jul 2-Aug
> > > > Deliver d1 5-Jul 26-Jul
> > > > Close d1 2-Aug 1-Nov
> > > >
> > > >
> > > > If the start date has an entry it means that phase is active. In the
> > > > table
> > > > above I would need to count how many projects are at the 'Deliver' stage
> > > > for
> > > > example.
> > > >
> > > > I have tried a few options and the closed I have got is:
> > > > =COUNTIF(Data1!B318,"deliver") however this also counts cells which
> > > > contain a null value,
> > > >
> > > > Could anyone help please?
> > >

 
Reply With Quote
 
Ashish Mathur
Guest
Posts: n/a
 
      22nd Apr 2010
Hi,

You are welcome

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"CW" <(E-Mail Removed)> wrote in message
news:776B5984-3815-4F9F-B606-(E-Mail Removed)...
> Yes, thanks both. This does work
>
> "Eduardo" wrote:
>
>> Hi,
>> formula provided should work, check if you don't have any blank space in
>> the
>> word Deliver
>>
>> "CW" wrote:
>>
>> > Thanks for the quick response Ashish however unfortunately this doesn't
>> > work
>> > and just returns a value of 0.
>> >
>> >
>> >
>> > "Ashish Mathur" wrote:
>> >
>> > > Hi,
>> > >
>> > > Ty this
>> > >
>> > > =sumproduct((Data1!B3:B18="Deliver")*(Data1!D318<>""))
>> > >
>> > > --
>> > > Regards,
>> > >
>> > > Ashish Mathur
>> > > Microsoft Excel MVP
>> > > www.ashishmathur.com
>> > >
>> > > "CW" <(E-Mail Removed)> wrote in message
>> > > news:48D24CE0-64C2-4978-ACD1-(E-Mail Removed)...
>> > > > Hi,
>> > > >
>> > > > I am collating project details from multiple sources and need to
>> > > > report
>> > > > back
>> > > > how many projects are active in specific phases based on data such
>> > > > as in
>> > > > the
>> > > > table below:
>> > > > Projects Phase Version "Start Date
>> > > > W/c" "End Date
>> > > > W/c"
>> > > > A Prep
>> > > > Build
>> > > > Deliver a1 5-Apr 26-Apr
>> > > > Close a1 26-Apr 26-Jul
>> > > > B Prep
>> > > > Build
>> > > > Deliver b1 5-Apr 26-Apr
>> > > > Close b1 26-Apr 26-Jul
>> > > > C Prep
>> > > > Build c1 19-Apr 3-May
>> > > > Deliver c1 5-Apr 19-Apr
>> > > > Close c2 3-May 2-Aug
>> > > > D Prep d1 5-Apr 5-Jul
>> > > > Build d1 26-Jul 2-Aug
>> > > > Deliver d1 5-Jul 26-Jul
>> > > > Close d1 2-Aug 1-Nov
>> > > >
>> > > >
>> > > > If the start date has an entry it means that phase is active. In
>> > > > the
>> > > > table
>> > > > above I would need to count how many projects are at the 'Deliver'
>> > > > stage
>> > > > for
>> > > > example.
>> > > >
>> > > > I have tried a few options and the closed I have got is:
>> > > > =COUNTIF(Data1!B318,"deliver") however this also counts cells
>> > > > which
>> > > > contain a null value,
>> > > >
>> > > > Could anyone help please?
>> > >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Array: Counting multiple values within array Trilux_nogo Microsoft Excel Worksheet Functions 4 16th Apr 2007 03:12 AM
Counting Null Values =?Utf-8?B?c2hlcnJpZQ==?= Microsoft Access 3 17th Aug 2006 11:59 PM
Average (but not counting null values) ??? marco_pb via AccessMonster.com Microsoft Access Queries 1 7th Apr 2006 10:38 AM
Counting Null and Not Null values in one query Amy Johnson Microsoft Access Queries 6 20th Nov 2004 05:55 AM
Counting Null Values Frank Winston Microsoft Access Queries 1 13th Jul 2003 06:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:18 PM.