+ Reply to Thread
Results 1 to 8 of 8

Sum column entries by color

  1. #1
    Registered User
    Join Date
    08-08-2017
    Location
    Atlanta, Georgia, USA
    MS-Off Ver
    Office 2016
    Posts
    3

    Sum column entries by color

    Hi. I have a column with invoicing amounts which have different background cell colors. I need to be able to sum the data of each color. I've tried the "How to count and sum cells based on background color in excel" search but it doesn't seem to work. Can someone help me out?

    Or is there a conditional formatting answer?

    Thanks!

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Sum column entries by color

    How are the cells colured? Manually or by conditional formatting?
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Sum column entries by color

    welcome to the forum

    A copy of your workbook would help us avoid having to recreate anything and to understand your data

    Are your cells coloured using conditional formatting or fixed formatting?
    What are the rules determining choice of colours?

    Plesae attach a copy of your workbook.
    Ensure data is made anonymous and
    - that it is clear what you are after
    - even if it means manually mocking up the desired results.

    thanks

    ManageAttachments3.jpg
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  4. #4
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Sum column entries by color

    Hi slc813, welcome to the forum! There is NO WORKSHEET FORMULA that can identify the background color of a cell. You CAN sort and filter by color and use the SUBTOTAL function to get your sums, but if you have lots of colors, that would be tedious. VBA- either as a User-Defined Function (UDF) or a macro called on demand- would seem to be your best bet. We'll need a sample workbook...
    Last edited by leelnich; 08-08-2017 at 03:28 PM.

  5. #5
    Registered User
    Join Date
    08-08-2017
    Location
    Atlanta, Georgia, USA
    MS-Off Ver
    Office 2016
    Posts
    3

    Re: Sum column entries by color

    Conditionally. I'm trying to upload example.

  6. #6
    Registered User
    Join Date
    08-08-2017
    Location
    Atlanta, Georgia, USA
    MS-Off Ver
    Office 2016
    Posts
    3

    Re: Sum column entries by color

    Capture.JPG

    Thanks!

  7. #7
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Sum column entries by color

    You can use the same formula (adapted) to sum the cells as used to conditionally format them.
    What's the formula?

  8. #8
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Sum column entries by color

    Try this
    - it makes use of the letters in column E

    with formula in H2 copied down:

    =SUMIF(E:E,G2,D:D)

    where :
    - D:D is the range containing values to be summed
    - G2 contains A, N or U
    - E:E is range containing A,N,U attributable to each value in D:D
    - The 2 ranges must be the same size

    SumByColour.jpg
    Attached Files Attached Files
    Last edited by kev_; 08-09-2017 at 01:20 AM.

+ 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] Display column entries in row as vertical entries in a userform listbox
    By nigelog in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-22-2016, 08:10 AM
  2. Replies: 13
    Last Post: 05-11-2014, 06:51 PM
  3. Replies: 1
    Last Post: 02-01-2013, 03:38 PM
  4. Set chart series color to match series legend entries font color
    By Equipoise in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-03-2013, 07:33 AM
  5. Replies: 2
    Last Post: 02-16-2012, 12:53 PM
  6. Removing repeat entries in a long column of data entries
    By kaizhong1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-15-2010, 01:31 PM
  7. [SOLVED] Conditional color formatting entries have wild color.
    By John Geyer in forum Excel General
    Replies: 0
    Last Post: 02-24-2006, 02:15 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