A Microsoft Office (Excel, Word) forum. OfficeFrustration

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   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

CountIf 2 columns



 
 
Thread Tools Display Modes
  #1  
Old April 26th, 2010, 02:56 PM posted to microsoft.public.excel.misc
Phippsy
external usenet poster
 
Posts: 113
Default CountIf 2 columns

Hi

I need a formula to count cells in one column containing dates depending on
the contents of a differnt column like SumIf has the option
  #2  
Old April 26th, 2010, 03:06 PM posted to microsoft.public.excel.misc
eduardo
external usenet poster
 
Posts: 2,131
Default CountIf 2 columns

hi
=COUNTIF(A2:A5,"South")



"Phippsy" wrote:

Hi

I need a formula to count cells in one column containing dates depending on
the contents of a differnt column like SumIf has the option

  #3  
Old April 26th, 2010, 03:10 PM posted to microsoft.public.excel.misc
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default CountIf 2 columns

If you are looking to count the dates which falls on a certain month..try the
below formula which count the number of dates in ColA which falls in the same
month as the date specified in cell B1.

=SUMPRODUCT(--(TEXT(A1:A100,"mmyyyy")=TEXT(B1,"mmyyyy")))

If this is not what you are looking for please elaborate with an example..

--
Jacob (MVP - Excel)


"Phippsy" wrote:

Hi

I need a formula to count cells in one column containing dates depending on
the contents of a differnt column like SumIf has the option

  #4  
Old April 26th, 2010, 03:13 PM posted to microsoft.public.excel.misc
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default CountIf 2 columns

You can add more conditions as below....

ColA date = same month as in cell B1 and ColC = cell D1

=SUMPRODUCT((TEXT(A1:A100,"mmyyyy")=TEXT(B1,"mmyyy y"))*
(C1:C100=D1))

--
Jacob (MVP - Excel)


"Jacob Skaria" wrote:

If you are looking to count the dates which falls on a certain month..try the
below formula which count the number of dates in ColA which falls in the same
month as the date specified in cell B1.

=SUMPRODUCT(--(TEXT(A1:A100,"mmyyyy")=TEXT(B1,"mmyyyy")))

If this is not what you are looking for please elaborate with an example..

--
Jacob (MVP - Excel)


"Phippsy" wrote:

Hi

I need a formula to count cells in one column containing dates depending on
the contents of a differnt column like SumIf has the option

 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:45 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.