PC Review


Reply
Thread Tools Rate Thread

Count Data in two Columns

 
 
briandhowells@gmail.com
Guest
Posts: n/a
 
      7th May 2007
I have a spreadsheet of jobs worked by two different employees
structured like this...

Date Job Emp 1 Emp 2
1/1 Installation John Smith Rick Johnson
1/1 Installation Rick Johnson John Smith
1/2 Construction John Smith Eric Richards
1/3 Installation John Smith Rick Johnson

....The two employee fields represent unique jobs - so I need to keep
that data the way that it is for tracking purposes - but I'd also like
to get a count of how many times a pair of employees worked together
regardless of the job. In other words, the above would yield the
results

John Smith and Rick Johnson 3
John Smith and Eric Richards 1

Any thoughts? I'd also be open to something in Access if it isn't too
complicated.

Thanks!

 
Reply With Quote
 
 
 
 
PCLIVE
Guest
Posts: n/a
 
      7th May 2007
One way:

=SUMPRODUCT(--(B1:B4=J1),--(C1:C4=K1))

Column B has Employee 1 and Column C has Employee 2. J1 and K1 are the two
employees of which you want a count of when they worked together.

HTH,
Paul

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a spreadsheet of jobs worked by two different employees
> structured like this...
>
> Date Job Emp 1 Emp 2
> 1/1 Installation John Smith Rick Johnson
> 1/1 Installation Rick Johnson John Smith
> 1/2 Construction John Smith Eric Richards
> 1/3 Installation John Smith Rick Johnson
>
> ...The two employee fields represent unique jobs - so I need to keep
> that data the way that it is for tracking purposes - but I'd also like
> to get a count of how many times a pair of employees worked together
> regardless of the job. In other words, the above would yield the
> results
>
> John Smith and Rick Johnson 3
> John Smith and Eric Richards 1
>
> Any thoughts? I'd also be open to something in Access if it isn't too
> complicated.
>
> Thanks!
>



 
Reply With Quote
 
merjet
Guest
Posts: n/a
 
      7th May 2007
Try this in E2:
=SUMPRODUCT(--(C2:C5=C2),--(D25=D2))+SUMPRODUCT(--(C2:C5=D2),--
(D25=C2))

Hth,
Merjet


 
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
Data count on pivotchart columns? seed Microsoft Excel Misc 0 26th Jan 2010 05:10 PM
How to count data in 2 columns Ltat42a Microsoft Excel Misc 20 31st May 2006 05:55 PM
How do I count data with criteria from two separate columns in exc =?Utf-8?B?U2NvdHQ=?= Microsoft Excel Worksheet Functions 1 2nd Mar 2006 04:17 AM
count data from 2 seperate columns =?Utf-8?B?V2luc3RvbiBIYXJyZWxs?= Microsoft Excel Programming 2 21st Dec 2005 02:16 PM
Count data in different columns Annie Microsoft Excel Worksheet Functions 1 2nd Nov 2003 05:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:13 AM.