+ Reply to Thread
Results 1 to 6 of 6

Count how often a value occurs but wont know what the value will be

  1. #1
    Registered User
    Join Date
    01-28-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    14

    Count how often a value occurs but wont know what the value will be

    So i have a excel sheet getting its data from a Microsoft form.
    My problem is this someone enters a unique value and some times they will use same one, charging code for example
    i need to count how many times this code is used, now the code will be a 1-6 digit number so i couldn't enter that many Counif formulas lol
    is there an easy way to do this?

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,913

    Re: Count how often a value occurs but wont know what the value will be

    Without knowing your workbook/data structure it's bit hard to help. I'd recommend uploading desensitized sample, see yellow banner at top for how.

    If you don't need to set it up as dynamic calculation. You can just copy the column into another sheet. Use Remove duplicate tool.
    Then use Countif using cell references.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    01-28-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    14

    Re: Count how often a value occurs but wont know what the value will be

    So keeping it simple
    column A is all I'm interested in.

    But i dont know what the user will put here its unique to each user the could be 2000+ but if the have 2 inputs id like to count them

    Eg

    USER
    1000
    2000
    1000
    2000
    3000

    USER 1000 = 2
    USER 2000 = 2
    USER 3000 = 3

    but again i wont know this user number until they put it in does that help

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,913

    Re: Count how often a value occurs but wont know what the value will be

    So like I mentioned.

    You'd add another sheet (Sheet2). Then copy column A from original (Sheet1) over. Then use Data -> Data tools -> Remove Duplicates.
    Then in column beside the result, assuming Row 1 is header, enter following formula and copy down.
    =COUNTIF(Sheet1!A:A,Sheet2!A2)

    If you need it to be dynamic... you could just use Pivot Table rather than formula.

  5. #5
    Registered User
    Join Date
    01-28-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    14

    Re: Count how often a value occurs but wont know what the value will be

    i need this data to update each week and would rather it automatic otherwise id end up with lots of extra sheets
    Pivot table could would, but id like to do sums with the data im left with

  6. #6
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,913

    Re: Count how often a value occurs but wont know what the value will be

    Really depends on your set up. Like I wrote, upload sample workbook to get more direct help, follow direction in the yellow banner.

    If you have access to Get & Transform (Power Query) and/or PowerPivot I'd use that.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Count numbers when certain name occurs in a category
    By SemV in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-16-2018, 04:25 PM
  2. Count how often a value/name occurs
    By dchew in forum Excel General
    Replies: 5
    Last Post: 12-26-2017, 10:24 AM
  3. Count Until Next Value Occurs
    By rmeister29 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-27-2013, 10:12 PM
  4. [SOLVED] Excel 2007 : how to count if multiple criteria occurs
    By Agulag in forum Excel General
    Replies: 9
    Last Post: 06-28-2012, 03:43 PM
  5. [SOLVED] Excel 2007 : Count how many a value occurs with given set of criteria
    By Heartbreak_one in forum Excel General
    Replies: 7
    Last Post: 04-29-2012, 05:40 AM
  6. Count how often a value occurs – multiple criteria
    By euclid537 in forum Excel General
    Replies: 13
    Last Post: 01-31-2011, 07:06 PM
  7. I would like to count the # of times a value occurs in Col B base
    By shopaholic in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-09-2005, 12:30 PM

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