Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Need help with Count, Counta, Countif

I have a sheet with 2 columns, A & B. Column A contains list of market (non
unique) and column B contains dates. I am looking for a way to perform a
count using both coulmns. Say for instance, I wan t to know how many MarketA,
or MarketB in column A has a date in column B, how would I go about writing
that formular?
I tried this =COUNTA(IF((D18:D1769<"")*(B18:B1769=B5),)) but it only
results in 1.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Need help with Count, Counta, Countif

Try:

=sumproduct(--((D18:D1769<""),--(B18:B1769=B5))

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=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

Ayo wrote:

I have a sheet with 2 columns, A & B. Column A contains list of market (non
unique) and column B contains dates. I am looking for a way to perform a
count using both coulmns. Say for instance, I wan t to know how many MarketA,
or MarketB in column A has a date in column B, how would I go about writing
that formular?
I tried this =COUNTA(IF((D18:D1769<"")*(B18:B1769=B5),)) but it only
results in 1.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Need help with Count, Counta, Countif

I found the answer in another posting. Thanks


"Ayo" wrote:

I have a sheet with 2 columns, A & B. Column A contains list of market (non
unique) and column B contains dates. I am looking for a way to perform a
count using both coulmns. Say for instance, I wan t to know how many MarketA,
or MarketB in column A has a date in column B, how would I go about writing
that formular?
I tried this =COUNTA(IF((D18:D1769<"")*(B18:B1769=B5),)) but it only
results in 1.

  #4   Report Post  
Posted to microsoft.public.excel.misc
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Need help with Count, Counta, Countif

Thanks Dave. One other question. Can it be used with more than 2 criteria i.e.,
SUMPRODUCT(--(Baseline!$A$5:$A$1756=$B$2),--(Baseline!$D$5:$D$1756=B$3),--(Baseline!$E$5:$E$1756="Projected"))

Thanks

"Dave Peterson" wrote:

Try:

=sumproduct(--((D18:D1769<""),--(B18:B1769=B5))

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=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

Ayo wrote:

I have a sheet with 2 columns, A & B. Column A contains list of market (non
unique) and column B contains dates. I am looking for a way to perform a
count using both coulmns. Say for instance, I wan t to know how many MarketA,
or MarketB in column A has a date in column B, how would I go about writing
that formular?
I tried this =COUNTA(IF((D18:D1769<"")*(B18:B1769=B5),)) but it only
results in 1.


--

Dave Peterson

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Need help with Count, Counta, Countif

What happened when you tried it?

Ayo wrote:

Thanks Dave. One other question. Can it be used with more than 2 criteria i.e.,
SUMPRODUCT(--(Baseline!$A$5:$A$1756=$B$2),--(Baseline!$D$5:$D$1756=B$3),--(Baseline!$E$5:$E$1756="Projected"))

Thanks

"Dave Peterson" wrote:

Try:

=sumproduct(--((D18:D1769<""),--(B18:B1769=B5))

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=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

Ayo wrote:

I have a sheet with 2 columns, A & B. Column A contains list of market (non
unique) and column B contains dates. I am looking for a way to perform a
count using both coulmns. Say for instance, I wan t to know how many MarketA,
or MarketB in column A has a date in column B, how would I go about writing
that formular?
I tried this =COUNTA(IF((D18:D1769<"")*(B18:B1769=B5),)) but it only
results in 1.


--

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
If with countif or counta [email protected] Excel Worksheet Functions 3 September 28th 08 07:24 PM
Formula Help based around countif and counta Mark McDonough Excel Discussion (Misc queries) 2 June 6th 06 02:11 PM
Errors in COUNT, COUNTA, COUNTIF when counting merged cells Outback Excel Worksheet Functions 1 February 7th 06 04:29 PM
CountIF, CountA,Which one? or neither? amy Excel Discussion (Misc queries) 2 July 20th 05 07:09 PM
COUNTA, COUNTIF? Newbie Excel Worksheet Functions 1 March 18th 05 11:33 AM


All times are GMT +1. The time now is 07:15 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"