Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tyrone Lopez
 
Posts: n/a
Default Counting the items


Is there a formula to count the number of items in a list and its
corresponding sum value, eg

Item $
apple 1.00
apple 2.00
orange 1.50

For the above, the result should be apple=2 items, totalling $3.00.
Orange+ ! item totalling $1.50. :)


--
Tyrone Lopez
------------------------------------------------------------------------
Tyrone Lopez's Profile: http://www.excelforum.com/member.php...o&userid=22194
View this thread: http://www.excelforum.com/showthread...hreadid=544540

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB
 
Posts: n/a
Default Counting the items

COUNTIF(A1:A3,"apple")
SUMIF(A1:A3,"apple",B1:B3)


"Tyrone Lopez" wrote:


Is there a formula to count the number of items in a list and its
corresponding sum value, eg

Item $
apple 1.00
apple 2.00
orange 1.50

For the above, the result should be apple=2 items, totalling $3.00.
Orange+ ! item totalling $1.50. :)


--
Tyrone Lopez
------------------------------------------------------------------------
Tyrone Lopez's Profile: http://www.excelforum.com/member.php...o&userid=22194
View this thread: http://www.excelforum.com/showthread...hreadid=544540


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Counting the items

Hi!

This table being in the range A1:B4. A1 and B1 are headers. Data in A2:B4.

Item $
apple 1.00
apple 2.00
orange 1.50


...........D............E..............F
1......Item......Count.........Sum
2......Apple............................
3.....Orange...........................

Enter this formula in E2:

=COUNTIF(A$2:A$4,D2)

Enter this formula in F2:

=SUMIF(A$2:A$4,D2,B$2:B$4)

Select both E2 and F2 then copy down as needed.

Biff

"Tyrone Lopez"
wrote in message
...

Is there a formula to count the number of items in a list and its
corresponding sum value, eg

Item $
apple 1.00
apple 2.00
orange 1.50

For the above, the result should be apple=2 items, totalling $3.00.
Orange+ ! item totalling $1.50. :)


--
Tyrone Lopez
------------------------------------------------------------------------
Tyrone Lopez's Profile:
http://www.excelforum.com/member.php...o&userid=22194
View this thread: http://www.excelforum.com/showthread...hreadid=544540



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Counting the items

This is just made for pivot tables,
--

Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
"It is a good thing to follow the first law of holes;
if you are in one stop digging." Lord Healey


"Tyrone Lopez"
wrote in message
...

Is there a formula to count the number of items in a list and its
corresponding sum value, eg

Item $
apple 1.00
apple 2.00
orange 1.50

For the above, the result should be apple=2 items, totalling $3.00.
Orange+ ! item totalling $1.50. :)


--
Tyrone Lopez
------------------------------------------------------------------------
Tyrone Lopez's Profile:
http://www.excelforum.com/member.php...o&userid=22194
View this thread: http://www.excelforum.com/showthread...hreadid=544540



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tyrone Lopez
 
Posts: n/a
Default Counting the items


Hi guys,
Thanks a million, you've made my day. I was using the formulas but did
not know what to do until your replies.


--
Tyrone Lopez
------------------------------------------------------------------------
Tyrone Lopez's Profile: http://www.excelforum.com/member.php...o&userid=22194
View this thread: http://www.excelforum.com/showthread...hreadid=544540

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
Counting different items in one column Chris Excel Discussion (Misc queries) 2 March 23rd 06 09:08 PM
Counting number of items being added in a formula Lambtwo Excel Discussion (Misc queries) 14 November 3rd 05 05:19 PM
counting unique items tjtjjtjt Excel Discussion (Misc queries) 3 September 14th 05 05:47 AM
counting filtered items mar10 Excel Worksheet Functions 3 August 25th 05 08:09 PM
counting similar items in a column bj Excel Discussion (Misc queries) 5 June 6th 05 10:30 PM


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