Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Counting the occurrence of data in one column based on two criteri

I have a database built in Excel (about 3000 rows and 25 columns). The
database grows in rows daily. One of the columns (say D), lists street
addresses, another (sayB), lists the nature of the callout to that address
(three different callout reasons could occur). I have inserted a blank column
and in this column I want to enter a formula (in each row) to give the number
of times a callout has occurred for that address for its corresponding
reason. With just one criteria, that of how many times a callout to an
address has occurred the formula COUNTIF(D:D,Dline number) works. I am not
sure how to bring in the second criteria €“ I have been trying SUMPRODUCT
without success.

Any help would be greatly appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 364
Default Counting the occurrence of data in one column based on two criteri

Assuming no header rows enter this in the first row of the col you have
inserted

=SUMPRODUCT(--(D:D=D1),--(B:B=B1))

In Excel 2003 replace D:D with D1:D3000 (if 3000 is the last row) and B:B
with B1:B3000

"Jim Prentice" wrote:

I have a database built in Excel (about 3000 rows and 25 columns). The
database grows in rows daily. One of the columns (say D), lists street
addresses, another (sayB), lists the nature of the callout to that address
(three different callout reasons could occur). I have inserted a blank column
and in this column I want to enter a formula (in each row) to give the number
of times a callout has occurred for that address for its corresponding
reason. With just one criteria, that of how many times a callout to an
address has occurred the formula COUNTIF(D:D,Dline number) works. I am not
sure how to bring in the second criteria €“ I have been trying SUMPRODUCT
without success.

Any help would be greatly appreciated.

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
Counting items in one column based on criteria in another column luttona Excel Worksheet Functions 3 June 13th 08 06:00 PM
Counting occurrence of day of week AND hour of day Javabumb Excel Discussion (Misc queries) 6 June 7th 08 12:19 AM
Counting entries in column based on condition in another column RobertR Excel Worksheet Functions 1 February 8th 07 03:54 PM
Counting occurrences in one column based on an occurrence in anoth Jim Jackson Excel Worksheet Functions 12 March 3rd 06 11:10 PM
Vlookup based on designated occurrence of value bill9340 Excel Worksheet Functions 4 November 3rd 05 07:02 PM


All times are GMT +1. The time now is 08:23 AM.

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"