If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Countif multiple cell criteria

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-08-10, 15:10
jayceesdj jayceesdj is offline
Registered User
 
Join Date: Feb 2009
Posts: 13
Countif multiple cell criteria

I have a spreadsheet that has an rep log on in column H and a date in column F. This is on Sheet 2

I currently have a count of the number of items a rep has worked on Sheet 1 but I also need a count of items the rep closed. Closed is reflected by the Date in column F. IF Column F is populated with a at I want to get a count on that by rep.

I would believe this is possible somehow but I have hit a wall trying to get there.

Any assistance would be greatly appreciated.
__________________
jayceesdj
"I'm an idealist. I don't know where I'm going but, I'm on my way." ---carl sandburg
Reply With Quote
  #2 (permalink)  
Old 04-08-10, 15:29
Colin Legg Colin Legg is offline
Registered User
 
Join Date: Sep 2008
Location: London, UK
Posts: 495
Hi,

A non-formula approach would be to use a pivot table. This is probably the best choice because it will give you a lightning quick overview of the data.

In terms of formula approaches:
If you are using XL2007 or later you can use COUNTIFS().
If you are using XL2003 or earlier you can use SUMPRODUCT() or DCOUNTA().
__________________
Colin

RAD Excel Blog

Other tutorials:
Array Formulas | Deleting Rows with VBA
Reply With Quote
  #3 (permalink)  
Old 04-08-10, 15:32
jayceesdj jayceesdj is offline
Registered User
 
Join Date: Feb 2009
Posts: 13
I hate to admit it but I am using Office 2000, here at work. As for using the Sumproduct I have seen that but keep getting an error when I am trying to get the formula for the date column.

As for the pivot table I have never done one... Guess this is as good a time as any.. will have to research how.
__________________
jayceesdj
"I'm an idealist. I don't know where I'm going but, I'm on my way." ---carl sandburg
Reply With Quote
  #4 (permalink)  
Old 04-08-10, 16:12
Colin Legg Colin Legg is offline
Registered User
 
Join Date: Sep 2008
Location: London, UK
Posts: 495
Hi,
Quote:
As for using the Sumproduct I have seen that but keep getting an error when I am trying to get the formula for the date column.
If you're using XL 2000, one thing to be careful of is not to use entire column references within SUMPRODUCT because the function will return an error. This rule is true up to and including XL 2003.
Other typical causes of an error return value are error values within the data or not keeping the arrays an equal size (depending on the form of SUMPRODUCT() you are using).

Something like this should be fine:
=SUMPRODUCT(--(Sheet2!F2:F200="a"),--(Sheet2!H2:H200="Rep A"))


Quote:
As for the pivot table I have never done one... Guess this is as good a time as any..
Good choice. I don't have XL 2000 to hand to check, but if memory serves me correctly Pivot Tables were introduced in XL 2000, so you are in luck.
__________________
Colin

RAD Excel Blog

Other tutorials:
Array Formulas | Deleting Rows with VBA

Last edited by Colin Legg; 04-08-10 at 16:15.
Reply With Quote
  #5 (permalink)  
Old 04-08-10, 16:22
jayceesdj jayceesdj is offline
Registered User
 
Join Date: Feb 2009
Posts: 13
OK Colin any suggestions on setting up the pivot table. Each time I attempt to set one up my computer locks up.

The spreadsheet has 2100 lines on it and growing and 21 columns. I only need information from 2 maybe 3 columns and only on the rows that have information in those columns.

I have used the wizard and I lock up with virtual memory low.

This is all new to me any assistance or direction would be greatly appreciated.
__________________
jayceesdj
"I'm an idealist. I don't know where I'm going but, I'm on my way." ---carl sandburg
Reply With Quote
  #6 (permalink)  
Old 04-08-10, 16:33
Colin Legg Colin Legg is offline
Registered User
 
Join Date: Sep 2008
Location: London, UK
Posts: 495
Hi,

Have a read though this article which describes the various pivot table wizard options in XL 2000 and explains how the choices affect memory usage:
How to optimize PivotTable performance in Excel 2000

A data set of that size really shouldn't be an issue. It's hard for me to give specific directions because I only have Excel 2007 at home which is quite different!
__________________
Colin

RAD Excel Blog

Other tutorials:
Array Formulas | Deleting Rows with VBA
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On