Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default countifs Function not giving desired result with date criteria


Hi,

I have a table where the Column A has dates in sequential format, Column B contains the Average temperature values as on respective dates, Column C contains Average Pressure values as on respective dates.

When I am using Countifs(A2:A200,"=01/04/2013",B2:B200,"=505",C2:C200,"=87"), I am getting the correct count

But if I use a cell reference for a date, like, Countifs(A2:A200,"=A2", B2:B200.....) where cell A2 contains 01/04/2013, the formula is not working.

How can I use the Countifs function correctly with a "between dates criteria",where the dates are referenced from cells

Thanks

San
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default countifs Function not giving desired result with date criteria

Hi San,

Am Tue, 17 Dec 2013 05:23:32 -0800 (PST) schrieb San:

But if I use a cell reference for a date, like, Countifs(A2:A200,"=A2", B2:B200.....) where cell A2 contains 01/04/2013, the formula is not working.


with cell reference you have to write "="&A2. For your example try:
=COUNTIFS(A1:A200,"="&A2,B1:B200,"=505",C1:C200, "=87")


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default countifs Function not giving desired result with date criteria

On Tuesday, December 17, 2013 6:59:11 PM UTC+5:30, Claus Busch wrote:
Hi San,



Am Tue, 17 Dec 2013 05:23:32 -0800 (PST) schrieb San:



But if I use a cell reference for a date, like, Countifs(A2:A200,"=A2", B2:B200.....) where cell A2 contains 01/04/2013, the formula is not working.




with cell reference you have to write "="&A2. For your example try:

=COUNTIFS(A1:A200,"="&A2,B1:B200,"=505",C1:C200, "=87")





Regards

Claus B.

--

Win XP PRof SP2 / Vista Ultimate SP2

Office 2003 SP2 /2007 Ultimate SP2


Thanks Claus. Will try it out.

San
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
COUNTIFS with a date for criteria... LUSN Excel Worksheet Functions 1 March 3rd 10 08:33 PM
countifs criteria includes date range JayH Excel Worksheet Functions 4 February 3rd 10 01:19 AM
which function can get the desired result? ADK Excel Worksheet Functions 3 May 9th 07 03:10 PM
Function giving a result for number within a range [email protected] Excel Worksheet Functions 3 February 28th 06 10:57 AM
giving points by a result (function) Perttu O. Excel Worksheet Functions 2 October 3rd 05 08:21 PM


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