+ Reply to Thread
Results 1 to 10 of 10

Show totals for each cell in a single column

  1. #1
    Registered User
    Join Date
    05-26-2020
    Location
    Taipei, Taiwan
    MS-Off Ver
    2007
    Posts
    10

    Show totals for each cell in a single column

    Hi All,

    I would like to obtain the total quantity for how often a particular entry appears in a cell. I'm sure that I'm not searching with the proper terminology, but I've been unable to find any examples remotely similar to what I'm looking for.

    For instance, my column will have entries such as the following:

    B5A
    B5
    B4
    UX4
    B7G
    UX4
    B7G
    UX4
    UX4
    UX4
    AO8
    UX6
    AO8
    B4
    AO8
    AO8
    B8B
    AO8
    AO8


    I would like something that tells me the following:

    B5A = 1
    B5 = 1
    B4 = 2
    UX4 = 5
    B7G = 2
    AO8 = 6
    UX6 = 1
    B8B = 1

    Could anyone help to tell me if something like this is even possible?

    Thanks!

    Andy

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Show totals for each cell in a single column

    I've been unable to find any examples remotely similar to what I'm looking for.
    Here is a similar thread from earlier today: https://www.excelforum.com/excel-for...ml#post5358383

    Try the COUNTIF function: https://support.microsoft.com/en-ie/...rs=en-ie&ad=ie

    If you have any problems applying this, let us know.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    05-26-2020
    Location
    Taipei, Taiwan
    MS-Off Ver
    2007
    Posts
    10

    Re: Show totals for each cell in a single column

    Hello,

    Thanks for the fast reply and providing the other thread as a reference. I'm confused as to how it would apply in my situation though. It seems that it's comparing information shown in two different columns to provide a result. In my case, all the data I wish to count is in one column only.

    Also, for the COUNTIF examples provided at the Microsoft site, it appears that those examples are pre-populated with all the possible values. This would be rather convoluted when there could be as many as 200~250 different values. In addition, I'm not looking for a total number of all the different values, but a total number of how often a particular value appears. I've been looking on this site as well as Google, but not finding exactly what I've been hoping to find to help solve my particular issue. I apologize as most likely I'm not describing it as well as I should be - I'm not familiar enough with Excel or all the associated terms.

    Thanks again,

    Andy

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Show totals for each cell in a single column

    There are instructions at the top of the page explaining how to attach your sample workbook.

    You can easily copy and paste the contents of column A and then remove duplicates using the Remove Duplicates option on the Data ribbon. This can then be used by the COUNTIF to compile your summary list. There are other ways, so please do provide a workbook.

  5. #5
    Registered User
    Join Date
    05-26-2020
    Location
    Taipei, Taiwan
    MS-Off Ver
    2007
    Posts
    10

    Re: Show totals for each cell in a single column

    Thank you. I've spent several more hours attempting to get a handle on this. Unfortunately, I'm afraid that I'm more lost now then when I started.

    A sample workbook has been attached - column A shows some data and column C shows all the unique values after deleting the duplicates.

    I attempted some various sample formulas at the bottom of column A, but no matter how I construct the formula (from my meagre ability), I always get an
    answer of 0 for the entire column of data. Obviously nowhere close to what I'm hoping to find.

    For instance, rather then a result of 0, I was hoping to have something that was going to tell me the total number of times each value appears in the column.

    Since my duplicates column shows 30 unique values, I was expecting 30 rows that would be displaying a total count for how many times each of those values appears in column A. Not a single instance of 0. I know I'm not doing it correctly, but I don't know where or even how to discover anything that might shed even a minuscule amount of light on this. Very frustrating to say the least. Probably I should have just sorted the column and counted manually. It certainly would have been much faster.
    Attached Files Attached Files
    Last edited by andrew20; 07-01-2020 at 08:45 PM.

  6. #6
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Show totals for each cell in a single column

    Make it a table and use a pivot table.
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Show totals for each cell in a single column

    First, delete the formula at A170 - it is causing circular references which is bad!

    Add the following formula to cell D2 then copy that formula down to D32.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Column-D now contains the answer that I think you are looking for.
    Geoff

    Did I help significantly? If you wish, click on * Add Reputation to say thanks.
    If your problem has been resolved please select ?Solved? from the Thread Tools menu

  8. #8
    Registered User
    Join Date
    05-26-2020
    Location
    Taipei, Taiwan
    MS-Off Ver
    2007
    Posts
    10

    Re: Show totals for each cell in a single column

    Quote Originally Posted by Vraag en antwoord View Post
    Make it a table and use a pivot table.
    Thank you. Your result is indeed what I'm looking for, but how did you get there?

    I clicked on the first cell of my column, then clicked on the "Insert" menu, then selected "Pivot Table". Some of the data was copied to a new worksheet and listed under Row Labels such as your example. But I have almost 34000 rows of data with roughly 110~120 unique values and only 3 rows appeared under Row Labels in the new worksheet. How do I get all of them to appear? How did you get all the values to appear in your example?

  9. #9
    Registered User
    Join Date
    05-26-2020
    Location
    Taipei, Taiwan
    MS-Off Ver
    2007
    Posts
    10

    Re: Show totals for each cell in a single column

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Quote Originally Posted by GeoffW283 View Post
    Add the following formula to cell D2 then copy that formula down to D32.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Column-D now contains the answer that I think you are looking for.
    Thanks GeofW283! This works perfectly! I was able to modify the cell references in your formula and receive precisely the results I was looking for.

    Andy

  10. #10
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Show totals for each cell in a single column

    Glad we could help. Thanks for the feedback and reputation points

+ 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. [SOLVED] on duplicate entry in the same column - show popup
    By sumesh56 in forum Excel General
    Replies: 11
    Last Post: 04-15-2019, 12:26 PM
  2. Replies: 4
    Last Post: 02-10-2019, 04:36 PM
  3. [SOLVED] Looking for a way to move Column totals down the spreadsheet with data entry.
    By furface00 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-29-2014, 07:06 PM
  4. [SOLVED] Entry totals
    By John Gross in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 11-15-2013, 04:32 PM
  5. Select a Cell to show the last entry in a column
    By tallpaul in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2007, 03:56 PM
  6. [SOLVED] [SOLVED] Excel - how do I show column grand totals on the pivot chart
    By newuser in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-07-2006, 10:35 AM
  7. Comparing/matching totals in a column to totals in a row
    By Nicole L. in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-27-2005, 07:06 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