Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
rar
 
Posts: n/a
Default get a total based on criteria in two columns

Hi,

I am trying to get a total number of records based on criteria in two
different columns. The columns a Date closed (data enetered as YYYY/MM/DD)
and status (where I am looking for "CLOSED", "REGISTERED" and "RENEWED").

I want to count the number of files that have been closed, registered and
renewed in a specific month of a specific year, the day is irrelivant.

Any help would be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SteveG
 
Posts: n/a
Default get a total based on criteria in two columns


There may be an easier formula but this worked for me.

{=SUM(IF(MONTH(A$2:A$7)=1,IF(YEAR(A$2:A$7)=2005,IF (B$2:B$7=I2,1,0))))}

Range A2:A7 is the date in YYYY/MM/DD format.
Range B2:B7 is the "Status" (REGISTERED, CLOSED, RENEWED)

I chose the month of January and the year of 2005 to be the count
criteria.

In the column to the right of my formula, I entered the 3 statuses in
cells I2:I4.
Formula pasted in cell H2 and dragged down to H4 to reference each
status. This is an array formula so enter with Ctrl-Shift-Enter.

Regards,

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=487191

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default get a total based on criteria in two columns

=SUMPRODUCT(--(TEXT(A2:A200="yyyymmm")="2005Jan"),--(B2:B200="CLOSED"))

etc.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"rar" wrote in message
...
Hi,

I am trying to get a total number of records based on criteria in two
different columns. The columns a Date closed (data enetered as

YYYY/MM/DD)
and status (where I am looking for "CLOSED", "REGISTERED" and "RENEWED").

I want to count the number of files that have been closed, registered and
renewed in a specific month of a specific year, the day is irrelivant.

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
Help w/ counting multiple columns based on IF criteria ConstructionGuy Excel Worksheet Functions 3 November 8th 05 04:03 AM
SUMIF in multiple columns based on other criteria in Excel? Scott Powell Excel Discussion (Misc queries) 9 April 13th 05 02:32 PM
Is it possible to use the sumif function based on the criteria of. Shelba Excel Worksheet Functions 1 February 2nd 05 05:40 AM
how do i count values based on multiple criteria sean Excel Worksheet Functions 2 January 7th 05 01:00 AM
returning a value based on mulitple criteria Brad Excel Worksheet Functions 6 December 31st 04 08:14 AM


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