+ Reply to Thread
Results 1 to 7 of 7

Counting multiple values in single cells

  1. #1
    Registered User
    Join Date
    07-08-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2011
    Posts
    4

    Counting multiple values in single cells

    Hi All,

    I am new to this forum and not that keep in Excel :-( So forgive me if I'm not using the correct syntax...

    I have a sheet containing results of an online survey.
    Several columns contain identical data that needs to be "manipulated".

    Let's take one column: in a single cell you can have:
    - empty
    - single text like 3mm
    - multi text comma separated like 3mm, 5mm, 7mm, 9mm, ...<increments of 2mm> ... ,35mm
    There are 120 rows FYI.

    Per column I need to calculate the total amount of each occurance of 3mm, 5mm, 7mm, ... , 35mm

    No clue how to tackle this. Working on Excel 2011 for Mac.

    All help and tips are really appreciated.

    Thanks!
    Last edited by guykescheep; 07-09-2013 at 03:03 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: Counting multiple values in single cells

    Is it possible for you to upload a sample of the spreadsheet (with any sensitive date removed)? To upload, click "Go Advanced" then "Manage Attachments".
    Don't just use the answers provided for you. Try to understand how it works by reverse engineering or asking about it.

    Please mark the thread as [SOLVED] (Thread Tools->Mark thread as Solved) when answered.
    If you're happy with an answer given, please click the * under the person's name to boost their reputation.

  3. #3
    Registered User
    Join Date
    07-08-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2011
    Posts
    4

    Re: Counting multiple values in single cells

    Hi Craig, thanks for your effort and time willing to have a look at this.
    A cleaned file should be uploaded.

    I put the expected totals in A92:A102, so the effective sums are to be for Column B, C, ...

    Many thanks
    Attached Files Attached Files

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Counting multiple values in single cells

    Assuming a single cell will not contain multiple instances of an item
    ie..no single cell will contain 3mm twice.
    Try this in B92 filled Down/Right as far as required

    =COUNTIF(B$2:B$90,"*"&MID($A92,7,255)&"*")

  5. #5
    Registered User
    Join Date
    07-08-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2011
    Posts
    4

    Re: Counting multiple values in single cells

    Hi Jonmo,

    Excellent! This works.

    Many thanks my man, you saved my monday ;-)
    Last edited by guykescheep; 07-08-2013 at 01:33 PM.

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Counting multiple values in single cells

    Glad to help, thanks for the feedback..

    Quote Originally Posted by guykescheep View Post
    Just the A92 needs to be without $ to fill down correctly.
    No it doesn't, $A92 WILL incriment to $A93 as the formula is filled DOWN.
    That $ locks the COLUMN reference (A), and prevents it from incrimenting to B when formula is filled ACCROSS.

  7. #7
    Registered User
    Join Date
    07-08-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2011
    Posts
    4

    Re: Counting multiple values in single cells

    You are correct.
    Just spotted that when filling RIGHT.

    Thanks again!
    Much appreciated!

+ Reply to Thread

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.6.0 RC 1