+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    03-06-2010
    Location
    Vancouver, BC
    MS-Off Ver
    Excel 2004 (Mac)
    Posts
    2

    Talking Tallying types based on cell contents

    Hello Excel Forum,

    Pardon my ignorance regarding nomenclature.

    I am looking to tally types of things based on a cell's contents (would be the number 1 or 2), not find the sum of the contents over this range of cells. Example: for a pre-planned lunch and dinner menu 5 people may choose from option 1 or option 2, for each meal. If I was to input a variety of options how can I tally how many of each option was needed for the day? Another variable that needs to be considered is whether or not the option is a small or large portion.

    I have attached a sample file. I have used 5 people but the spreadsheet would actually have to account for 50+ people.

    Any advice will be greatly appreciated as I can't find the help I need in the help section within Excel 2004 for Mac.

    Thank you,

    Liam
    Attached Files Attached Files
    Last edited by liam.may; 03-07-2010 at 03:29 PM.

  2. #2
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,477

    Re: Tallying types based on cell contents

    you can't count on cell colour. without code. you need some other way of indicating large/ small
    =COUNTIF(C2:D6,2) counts 2's and
    =COUNTIF(C2:D6,1) counts 1's
    perhaps us 1L and 1S
    then
    =COUNTIF(C2:D6,"1L")
    =COUNTIF(C2:D6,"1S")
    Last edited by martindwilson; 03-07-2010 at 07:31 AM.
    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    03-06-2010
    Location
    Vancouver, BC
    MS-Off Ver
    Excel 2004 (Mac)
    Posts
    2

    Re: Tallying types based on cell contents

    Martin,

    Thank you! I have used the second formula you've suggested and it works like a charm.

    Cheers,

    Liam

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0