Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roni
 
Posts: n/a
Default I would like to Count values in two columns.

Hello - I am going INSANE for over a month now.... I need to figure out how
to add up this information.

I have one column (Coulmn F) which list Doctors
I have another column (Column D) which list procedures

I need to count how many times each doctor did each type of procedure.

So I THINK I need to add up each occurance of "Dr.Smith" AND "Procedure 1"

Any help would be GREATLY Appreciated!!!! Thanks in advance!

Roni
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roni
 
Posts: n/a
Default I would like to Count values in two columns.

When I do that, I get a "#Num!" error

=SUMPRODUCT(('Dr McNanley'!F:F="Grunert")*('Dr McNanley'!D:D="Vaginal"))



"Don Guillett" wrote:

try
=sumproduct((a2:a22="Dr Smith")*(b2:b22="procedure1"))

--
Don Guillett
SalesAid Software

"Roni" wrote in message
...
Hello - I am going INSANE for over a month now.... I need to figure out
how
to add up this information.

I have one column (Coulmn F) which list Doctors
I have another column (Column D) which list procedures

I need to count how many times each doctor did each type of procedure.

So I THINK I need to add up each occurance of "Dr.Smith" AND "Procedure 1"

Any help would be GREATLY Appreciated!!!! Thanks in advance!

Roni




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default I would like to Count values in two columns.

Try limiting your range (F1:F9999, maybe???).

=sumproduct() doesn't like whole columns.

Roni wrote:

When I do that, I get a "#Num!" error

=SUMPRODUCT(('Dr McNanley'!F:F="Grunert")*('Dr McNanley'!D:D="Vaginal"))

"Don Guillett" wrote:

try
=sumproduct((a2:a22="Dr Smith")*(b2:b22="procedure1"))

--
Don Guillett
SalesAid Software

"Roni" wrote in message
...
Hello - I am going INSANE for over a month now.... I need to figure out
how
to add up this information.

I have one column (Coulmn F) which list Doctors
I have another column (Column D) which list procedures

I need to count how many times each doctor did each type of procedure.

So I THINK I need to add up each occurance of "Dr.Smith" AND "Procedure 1"

Any help would be GREATLY Appreciated!!!! Thanks in advance!

Roni





--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roni
 
Posts: n/a
Default I would like to Count values in two columns.

Thank you Dave!!!! That worked.... Now next problem...
The doctors are writing "C/S Primary" and "C/S Repeat"
I want it to count any cell that has "C/S" in it....

"Dave Peterson" wrote:

Try limiting your range (F1:F9999, maybe???).

=sumproduct() doesn't like whole columns.

Roni wrote:

When I do that, I get a "#Num!" error

=SUMPRODUCT(('Dr McNanley'!F:F="Grunert")*('Dr McNanley'!D:D="Vaginal"))

"Don Guillett" wrote:

try
=sumproduct((a2:a22="Dr Smith")*(b2:b22="procedure1"))

--
Don Guillett
SalesAid Software

"Roni" wrote in message
...
Hello - I am going INSANE for over a month now.... I need to figure out
how
to add up this information.

I have one column (Coulmn F) which list Doctors
I have another column (Column D) which list procedures

I need to count how many times each doctor did each type of procedure.

So I THINK I need to add up each occurance of "Dr.Smith" AND "Procedure 1"

Any help would be GREATLY Appreciated!!!! Thanks in advance!

Roni




--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernie Deitrick
 
Posts: n/a
Default I would like to Count values in two columns.

Roni,

Use a pivot table: select the table, and use Data / Pivot table. Then drag 'doctors' to the row
field, 'procedure' to the row field, and 'procedure' to the data fieled, and you will get a table of
doctor/procedure counts.

HTH,
Bernie
MS Excel MVP


"Roni" wrote in message
...
Hello - I am going INSANE for over a month now.... I need to figure out how
to add up this information.

I have one column (Coulmn F) which list Doctors
I have another column (Column D) which list procedures

I need to count how many times each doctor did each type of procedure.

So I THINK I need to add up each occurance of "Dr.Smith" AND "Procedure 1"

Any help would be GREATLY Appreciated!!!! Thanks in advance!

Roni



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default I would like to Count values in two columns.

=countif(f1:f9999,"c/s*")
for a single count


If it starts with c/s:
=sumproduct(--('dr mcnanley'!d1:d9999="procedure"),
--(left('dr mcnanley'!f1:f9999,3)="c/s"))

if it contains c/s:
=SUMPRODUCT(--('dr mcnanley'!D1:D9999="procedure"),
--(ISNUMBER(SEARCH("c/s",'dr mcnanley'!F1:F9999))))

Adjust the ranges to match--but you can't use whole columns.

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html


Roni wrote:

Thank you Dave!!!! That worked.... Now next problem...
The doctors are writing "C/S Primary" and "C/S Repeat"
I want it to count any cell that has "C/S" in it....

"Dave Peterson" wrote:

Try limiting your range (F1:F9999, maybe???).

=sumproduct() doesn't like whole columns.

Roni wrote:

When I do that, I get a "#Num!" error

=SUMPRODUCT(('Dr McNanley'!F:F="Grunert")*('Dr McNanley'!D:D="Vaginal"))

"Don Guillett" wrote:

try
=sumproduct((a2:a22="Dr Smith")*(b2:b22="procedure1"))

--
Don Guillett
SalesAid Software

"Roni" wrote in message
...
Hello - I am going INSANE for over a month now.... I need to figure out
how
to add up this information.

I have one column (Coulmn F) which list Doctors
I have another column (Column D) which list procedures

I need to count how many times each doctor did each type of procedure.

So I THINK I need to add up each occurance of "Dr.Smith" AND "Procedure 1"

Any help would be GREATLY Appreciated!!!! Thanks in advance!

Roni




--

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
Copy columns values into separate columns Mike_can Excel Discussion (Misc queries) 7 May 27th 06 12:32 AM
count number of values between plus signs in addition calc CRH Excel Discussion (Misc queries) 5 December 2nd 05 11:56 PM
Count Intervals of 2 Consecutive Values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 6 November 29th 05 03:27 PM
Count on multiple columns Emece Excel Worksheet Functions 2 March 4th 05 02:52 PM
Count number of Unique values Alan Excel Worksheet Functions 4 January 6th 05 08:05 PM


All times are GMT +1. The time now is 09:44 PM.

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"