PC Review


Reply
Thread Tools Rate Thread

CountIf or another function

 
 
SBO
Guest
Posts: n/a
 
      27th Feb 2009
Hi,

Here is the data in my spreadsheet

ColumnA ColumnB

Open Jack
Open Robert
Closed Jack
In Progress Edward


I want to get a count of all Open, Closed and In Progress, but for each
individual. The output would be as follows and the formula must be contained
in a single cell:

Jack Robert Edward
Open # # #
Closed # # #
In Progress # # #

The CountIf works for me in terms of counting instances in a single column,
but I want to add an "AND" relationship to it and account for Column B.

Thank you,

SB
 
Reply With Quote
 
 
 
 
Stefi
Guest
Posts: n/a
 
      27th Feb 2009
Being the table in Sheet1
and the result table in Sheet2
Enter this formula in B2 of Sheet2 and fill it to the right and down:
=SUMPRODUCT(--(Sheet1!$A$2:$A$5=$A2),--(Sheet1!$B$2:$B$5=B$1))
Adjust ranges to real data!

Regards,
Stefi

„SBO” ezt *rta:

> Hi,
>
> Here is the data in my spreadsheet
>
> ColumnA ColumnB
>
> Open Jack
> Open Robert
> Closed Jack
> In Progress Edward
>
>
> I want to get a count of all Open, Closed and In Progress, but for each
> individual. The output would be as follows and the formula must be contained
> in a single cell:
>
> Jack Robert Edward
> Open # # #
> Closed # # #
> In Progress # # #
>
> The CountIf works for me in terms of counting instances in a single column,
> but I want to add an "AND" relationship to it and account for Column B.
>
> Thank you,
>
> SB

 
Reply With Quote
 
SBO
Guest
Posts: n/a
 
      27th Feb 2009
Stefi,

That worked like a charm!!

Thanks so much.

SB

"Stefi" wrote:

> Being the table in Sheet1
> and the result table in Sheet2
> Enter this formula in B2 of Sheet2 and fill it to the right and down:
> =SUMPRODUCT(--(Sheet1!$A$2:$A$5=$A2),--(Sheet1!$B$2:$B$5=B$1))
> Adjust ranges to real data!
>
> Regards,
> Stefi
>
> „SBO” ezt *rta:
>
> > Hi,
> >
> > Here is the data in my spreadsheet
> >
> > ColumnA ColumnB
> >
> > Open Jack
> > Open Robert
> > Closed Jack
> > In Progress Edward
> >
> >
> > I want to get a count of all Open, Closed and In Progress, but for each
> > individual. The output would be as follows and the formula must be contained
> > in a single cell:
> >
> > Jack Robert Edward
> > Open # # #
> > Closed # # #
> > In Progress # # #
> >
> > The CountIf works for me in terms of counting instances in a single column,
> > but I want to add an "AND" relationship to it and account for Column B.
> >
> > Thank you,
> >
> > SB

 
Reply With Quote
 
Ashish Mathur
Guest
Posts: n/a
 
      1st Mar 2009
Hi,

You may also want to try pivot tables

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"SBO" <(E-Mail Removed)> wrote in message
news:B4767B05-939B-4812-A972-(E-Mail Removed)...
> Hi,
>
> Here is the data in my spreadsheet
>
> ColumnA ColumnB
>
> Open Jack
> Open Robert
> Closed Jack
> In Progress Edward
>
>
> I want to get a count of all Open, Closed and In Progress, but for each
> individual. The output would be as follows and the formula must be
> contained
> in a single cell:
>
> Jack Robert
> Edward
> Open # #
> #
> Closed # #
> #
> In Progress # #
> #
>
> The CountIf works for me in terms of counting instances in a single
> column,
> but I want to add an "AND" relationship to it and account for Column B.
>
> Thank you,
>
> SB


 
Reply With Quote
 
Stefi
Guest
Posts: n/a
 
      2nd Mar 2009
You are welcome! Thanks for the feedback!
Stefi

„SBO” ezt *rta:

> Stefi,
>
> That worked like a charm!!
>
> Thanks so much.
>
> SB
>
> "Stefi" wrote:
>
> > Being the table in Sheet1
> > and the result table in Sheet2
> > Enter this formula in B2 of Sheet2 and fill it to the right and down:
> > =SUMPRODUCT(--(Sheet1!$A$2:$A$5=$A2),--(Sheet1!$B$2:$B$5=B$1))
> > Adjust ranges to real data!
> >
> > Regards,
> > Stefi
> >
> > „SBO” ezt *rta:
> >
> > > Hi,
> > >
> > > Here is the data in my spreadsheet
> > >
> > > ColumnA ColumnB
> > >
> > > Open Jack
> > > Open Robert
> > > Closed Jack
> > > In Progress Edward
> > >
> > >
> > > I want to get a count of all Open, Closed and In Progress, but for each
> > > individual. The output would be as follows and the formula must be contained
> > > in a single cell:
> > >
> > > Jack Robert Edward
> > > Open # # #
> > > Closed # # #
> > > In Progress # # #
> > >
> > > The CountIf works for me in terms of counting instances in a single column,
> > > but I want to add an "AND" relationship to it and account for Column B.
> > >
> > > Thank you,
> > >
> > > SB

 
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
Countif function help =?Utf-8?B?SGF6?= Microsoft Excel Misc 8 12th Oct 2007 04:08 PM
please help how to combine IF function with Countif function =?Utf-8?B?RGluZXNo?= Microsoft Excel Worksheet Functions 6 30th Mar 2006 08:28 PM
How do I use a countif function according to two other countif fu. =?Utf-8?B?S2lyc3R5?= Microsoft Excel Worksheet Functions 2 20th Feb 2006 11:44 AM
Embed a countif function in subtotal function? =?Utf-8?B?U3R1Y2sgYXQgd29yaw==?= Microsoft Excel Worksheet Functions 1 14th Feb 2006 03:19 AM
COUNTIF Function preety Microsoft Excel Worksheet Functions 4 21st Nov 2003 08:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:59 AM.