Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Countifs -Count no of times products have been sold on particular

I have tried a few methods but I am not getting the results I need. I am
trying to count how many products €“ any value (in column J) sold on a
particular date say 17/11/2008 (column H).

I used the following formula to count the number of times there is a value
in column L (for criteria of 12 mth) for anything with a date in column L
and got the results I expected, but when when i changed it to a date and
different range on same sheet I got no results.

=COUNTIFS($K$3:$K$398,"12 mth",$L$3:$L$398,"0") I got the number of times
I expected for this.

When I changed it to this formula I got no results, Why??
=COUNTIFS(H$3:H$398,"18/11/08",J$3:J$398,"0")

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Countifs -Count no of times products have been sold on particular

Excel is kind of picky when you refer to a date in a formula and there's
also the issue of date ambiguity.

Try one of these:

=COUNTIFS(H$3:H$398,""&DATE(2008,11,18),J$3:J$398 ,"0")

Use a cell to hold the date:

A1 = some date

=COUNTIFS(H$3:H$398,""&A1,J$3:J$398,"0")

As a last resort (I don't like this method!):

=COUNTIFS(H$3:H$398,""&--"2008/11/18",J$3:J$398,"0")


--
Biff
Microsoft Excel MVP


"kje.1953" wrote in message
...
I have tried a few methods but I am not getting the results I need. I am
trying to count how many products - any value (in column J) sold on a
particular date say 17/11/2008 (column H).

I used the following formula to count the number of times there is a value
in column L (for criteria of 12 mth) for anything with a date in column L
and got the results I expected, but when when i changed it to a date and
different range on same sheet I got no results.

=COUNTIFS($K$3:$K$398,"12 mth",$L$3:$L$398,"0") I got the number of
times
I expected for this.

When I changed it to this formula I got no results, Why??
=COUNTIFS(H$3:H$398,"18/11/08",J$3:J$398,"0")



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Countifs -Count no of times products have been sold on particular


Sumproduct would be the way to go i think, this example has the dates in
column B and the items in column A:

=SUMPRODUCT((B1:B20=(--("17/11/2008")))*(A1:A20<""))


--
The Code Cage Team

Regards,
The Code Cage Team
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
The Code Cage Team's Profile: http://www.thecodecage.com/forumz/member.php?userid=2
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=31883

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Countifs -Count no of times products have been sold on particular

COUNTIFS is faster (calculation-wise)

--
Biff
Microsoft Excel MVP


"The Code Cage Team" wrote in
message ...

Sumproduct would be the way to go i think, this example has the dates in
column B and the items in column A:

=SUMPRODUCT((B1:B20=(--("17/11/2008")))*(A1:A20<""))


--
The Code Cage Team

Regards,
The Code Cage Team
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
The Code Cage Team's Profile:
http://www.thecodecage.com/forumz/member.php?userid=2
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=31883



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Countifs -Count no of times products have been sold on particular


"T. Valko" wrote in message
...
Excel is kind of picky when you refer to a date in a formula and there's
also the issue of date ambiguity.


<snip

As a last resort (I don't like this method!):

=COUNTIFS(H$3:H$398,""&--"2008/11/18",J$3:J$398,"0")


You don't need the double unary and this ISO standard format is the best IMO

=COUNTIFS(H$3:H$398,"2008-11-18",J$3:J$398,"0")


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
inventory Add, Cost, Sold, Sold price - formula Summer Excel Discussion (Misc queries) 3 July 20th 08 06:26 PM
count text appear how many times & put in respec col??eg 1st times Piglet Excel Discussion (Misc queries) 3 May 29th 08 07:53 AM
Count Products Jen[_6_] Excel Worksheet Functions 1 January 8th 08 03:47 AM
Need formula to count number of books sold Watercolor artist Excel Worksheet Functions 4 June 23rd 05 03:14 PM
Combine query to count products with similar names pomalley Excel Worksheet Functions 8 April 22nd 05 02:15 AM


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