+ Reply to Thread
Results 1 to 5 of 5

SUM different values in a column

  1. #1
    Registered User
    Join Date
    06-07-2016
    Location
    Richmond, VA
    MS-Off Ver
    365 Apps for business
    Posts
    82

    SUM different values in a column

    Hello

    I'm trying to sum all sales for each state. See attached example.

    This is part of a bigger spreadsheet that I'm working on that means that I can't just use a Pivot to sort this.

    Can I use SUBTOTAL and SUM to solve this?

    Thanks

    Tom
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: SUM different values in a column

    I can think of two ways:

    Sub totals or Sumif
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    06-07-2016
    Location
    Richmond, VA
    MS-Off Ver
    365 Apps for business
    Posts
    82

    Re: SUM different values in a column

    I have the same thought, but am unsure of the precise syntax. Are you able to explain that please?

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: SUM different values in a column

    Try

    =SUMIF(A:A,"AL",B:B)

    But better to have a list of States and replace "AL" with cell reference

    =SUMIF(A:A,C1,B:B) where C1="AL"

  5. #5
    Registered User
    Join Date
    06-07-2016
    Location
    Richmond, VA
    MS-Off Ver
    365 Apps for business
    Posts
    82

    Re: SUM different values in a column

    That's it, thanks. So obvious when it's written out by someone else!

+ 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] macro to select and rank top 10 column B values for Column A values
    By genetist in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-30-2018, 06:38 AM
  2. [SOLVED] How to count unique distinct values from a column where values in other column exists ?
    By Daniel Tou in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-19-2017, 05:48 PM
  3. [SOLVED] Sum values in column based on unique values in correlating column.
    By ericbinfet in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-04-2015, 01:04 AM
  4. Transpose values in column to rows, and split cell values to extend column
    By SAMMM in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-03-2015, 12:52 AM
  5. Replies: 2
    Last Post: 12-30-2013, 08:15 AM
  6. Macro that will copy values in Column J and paste values to Column B in new sheet
    By Phixtit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2010, 04:56 PM
  7. assigning date entries to week values and month values to sum column C-N values C-
    By the accountant in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-20-2010, 09:52 AM

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