Solved

Excel formula for totals

Posted on 2013-12-27
4
539 Views
Last Modified: 2013-12-28
I'm trying to help a user get the totals of shirt sizes in an excel file.  They routinely come across this and would like to be able to enter in a formula that auto calculates the totals for the different shirt sizes.  I've attached a sample of what they are trying to accomplish.  There are some details listed below.  Thanks for any and all help.

We have 27 different people with varying shirt sizes. Ranging from Small to XL.  I need a formula that would auto calculate the shirt sizes then put them into the various corresponding cells for the shirt size totals for each size.
SHIRT-TOTALS.xlsx
0
Comment
Question by:cknoderer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 13

Expert Comment

by:Ashok
ID: 39742002
=COUNTIF(B2:B28,"s")
=COUNTIF(B2:B28,"m")
=COUNTIF(B2:B28,"l")
=COUNTIF(B2:B28,"xl")

HTH
Ashok
0
 
LVL 9

Accepted Solution

by:
Christopher Jay Wolff earned 500 total points
ID: 39742046
You should probably use the Countif function built into excel.  A good example is attached.

If I remember correctly from looking at your spreadsheet, the formulas in your totals will read something like...

countif(B1:B28,"s")

and so forth.

Is that what you're looking for?
Capture.PNG
0
 
LVL 1

Author Closing Comment

by:cknoderer
ID: 39742062
Thanks!  That's what I was looking for.
0
 
LVL 13

Expert Comment

by:Ashok
ID: 39742137
Thanks
Ashok
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show you how to use shortcut menus in the Access run-time environment.
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question