Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default The Count Function

Can someone please tell me if the following is poosible;

Date Fruit Consumed

01/03/09 Apple
01/03/09 Banana
01/03/09 Pear
02/03/09 Apple
03/03/09 Banana
03/03/09 Pear

I need a function that can tell me how many apples were consumed on
01/03/09, how many bananas on 01/03/09 and how many pears on 01/03/09. The
same for 02/03/09 and 03/03/09.

Hope someone can help.

Yamorna
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default The Count Function

Hi,

Try this

=SUMPRODUCT((A1:A20=C1)*(B1:B20=D1))

Withthe date your looking for in C1 and the fruit in D1

Mike

"Yamorna" wrote:

Can someone please tell me if the following is poosible;

Date Fruit Consumed

01/03/09 Apple
01/03/09 Banana
01/03/09 Pear
02/03/09 Apple
03/03/09 Banana
03/03/09 Pear

I need a function that can tell me how many apples were consumed on
01/03/09, how many bananas on 01/03/09 and how many pears on 01/03/09. The
same for 02/03/09 and 03/03/09.

Hope someone can help.

Yamorna

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default The Count Function

If C2 contains Apple and D2 contains 01/03/09 then
=SUMPRODUCT(--($B$2:$B$7=$C$2),--($A$2:$A$7=$D$2))

Regards,
Stefi

€˛Yamorna€¯ ezt Ć*rta:

Can someone please tell me if the following is poosible;

Date Fruit Consumed

01/03/09 Apple
01/03/09 Banana
01/03/09 Pear
02/03/09 Apple
03/03/09 Banana
03/03/09 Pear

I need a function that can tell me how many apples were consumed on
01/03/09, how many bananas on 01/03/09 and how many pears on 01/03/09. The
same for 02/03/09 and 03/03/09.

Hope someone can help.

Yamorna

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default The Count Function

Use PIVOT table.


If this post helps click Yes
---------------
Jacob Skaria


"Yamorna" wrote:

Can someone please tell me if the following is poosible;

Date Fruit Consumed

01/03/09 Apple
01/03/09 Banana
01/03/09 Pear
02/03/09 Apple
03/03/09 Banana
03/03/09 Pear

I need a function that can tell me how many apples were consumed on
01/03/09, how many bananas on 01/03/09 and how many pears on 01/03/09. The
same for 02/03/09 and 03/03/09.

Hope someone can help.

Yamorna

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default The Count Function

Formula would be the below if you have the lookup date and fruit in C1 and D1

=SUMPRODUCT(--(A1:A10=C1),--(B1:B10=D1))

If this post helps click Yes
---------------
Jacob Skaria


"Jacob Skaria" wrote:

Use PIVOT table.


If this post helps click Yes
---------------
Jacob Skaria


"Yamorna" wrote:

Can someone please tell me if the following is poosible;

Date Fruit Consumed

01/03/09 Apple
01/03/09 Banana
01/03/09 Pear
02/03/09 Apple
03/03/09 Banana
03/03/09 Pear

I need a function that can tell me how many apples were consumed on
01/03/09, how many bananas on 01/03/09 and how many pears on 01/03/09. The
same for 02/03/09 and 03/03/09.

Hope someone can help.

Yamorna



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default The Count Function

Thanks a lot. I can't believe how simple that was.
--
Yamorna


"Jacob Skaria" wrote:

Use PIVOT table.


If this post helps click Yes
---------------
Jacob Skaria


"Yamorna" wrote:

Can someone please tell me if the following is poosible;

Date Fruit Consumed

01/03/09 Apple
01/03/09 Banana
01/03/09 Pear
02/03/09 Apple
03/03/09 Banana
03/03/09 Pear

I need a function that can tell me how many apples were consumed on
01/03/09, how many bananas on 01/03/09 and how many pears on 01/03/09. The
same for 02/03/09 and 03/03/09.

Hope someone can help.

Yamorna

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default The Count Function

Hi! I know want to add up the total of the fruit column in another cell. By
using the Sum Function it is giving me a 'value' error?

Suggestions?




"Yamorna" wrote:

Thanks a lot. I can't believe how simple that was.
--
Yamorna


"Jacob Skaria" wrote:

Use PIVOT table.


If this post helps click Yes
---------------
Jacob Skaria


"Yamorna" wrote:

Can someone please tell me if the following is poosible;

Date Fruit Consumed

01/03/09 Apple
01/03/09 Banana
01/03/09 Pear
02/03/09 Apple
03/03/09 Banana
03/03/09 Pear

I need a function that can tell me how many apples were consumed on
01/03/09, how many bananas on 01/03/09 and how many pears on 01/03/09. The
same for 02/03/09 and 03/03/09.

Hope someone can help.

Yamorna

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
Count function Jerry Edge Excel Worksheet Functions 3 February 15th 09 04:51 AM
count function further AJ Patel[_2_] Excel Worksheet Functions 5 March 12th 08 01:23 AM
Another which count function? Johnny1r Excel Worksheet Functions 7 February 24th 08 03:52 AM
WHICH COUNT FUNCTION? Johnny1r Excel Worksheet Functions 5 February 23rd 08 09:13 PM
using the count function barklek Excel Discussion (Misc queries) 3 August 22nd 05 01:00 PM


All times are GMT +1. The time now is 09:23 PM.

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"