+ Reply to Thread
Results 1 to 12 of 12

Sum of colored cells

  1. #1
    Registered User
    Join Date
    09-22-2021
    Location
    Westlake Village, CA
    MS-Off Ver
    Microsoft 365
    Posts
    11

    Sum of colored cells

    Hi everyone. First post. Relearning Excel after 10 years of being away is crazy! Trying to sum the cells in orange. They change daily - both the amounts in the cells and the number of cells and I cant spend the time filtering each time. Attaching a snippit of what I am working with. Looking to have a cell off screen with the sum. Any help appreciated. I have a COUNTIF next to waiting. That is the current # of cells that are orange, but I need a formula that gives me the sum of those orange cells. Thanks again.
    Attached Files Attached Files
    Last edited by jstebbins; 09-27-2021 at 11:29 AM. Reason: hopefully adding workbook

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Sum of colored cells

    If you have a logical reason for cells being orange, then you can use that reason to sum the orange cells. If they are randomly orange, then Excel doesn't look at color when working with functions. You'd need to use VBA (probably a UDF)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    09-22-2021
    Location
    Westlake Village, CA
    MS-Off Ver
    Microsoft 365
    Posts
    11

    Re: Sum of colored cells

    I go in and make them orange. If there is a way i can have excel change them to orange as well as sum the totals inside that would be amazing!

  4. #4
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: Sum of colored cells

    Welcome to the forum, jstebbins. If you want members to help, attach a workbook, not a pdf or image file.

  5. #5
    Registered User
    Join Date
    09-22-2021
    Location
    Westlake Village, CA
    MS-Off Ver
    Microsoft 365
    Posts
    11

    Re: Sum of colored cells

    added workbook
    Last edited by jstebbins; 09-22-2021 at 02:43 PM.

  6. #6
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: Sum of colored cells

    Noticed you have mark the thread "Solved". Could you share your solution with forum members please?

    As mentioned in ChemistB's post, you have to provide the reason why certain cells are orange. If there is no logic but merely based on what you choose, then I propose adding a column in G and mark "x" on the rows that you want to filter.

    With the entire column F selected, Conditional Formatting formula:=G1="x". If your selection is based on column B with Dept=ACTG, then, CF formula:=B1="ACTG"

    I don't see any fields you can SUM.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-22-2021
    Location
    Westlake Village, CA
    MS-Off Ver
    Microsoft 365
    Posts
    11

    Re: Sum of colored cells

    it has not been solved, i just did not want it dangling there and could not find a way to delete the question. my apologies. i will change it back.

    in a nutshell, looking for: if column H = "x" then column F fills ORANGE regardless of data in that cell. F1=sum of cells that are orange in that column.

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Sum of colored cells

    For the counts try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    For the sums try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  9. #9
    Registered User
    Join Date
    09-22-2021
    Location
    Westlake Village, CA
    MS-Off Ver
    Microsoft 365
    Posts
    11

    Re: Sum of colored cells

    thanks dave! both of those worked perfectly! i used conditional formatting in column H to highlight the cells orange that has an "x" in them. is there a way that I can make both columns F and H turn orange?

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,554

    Re: Sum of colored cells

    Try the following formula as the conditional formatting rule applied to =$H$3:$H$743,$F$3:$F$743
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  11. #11
    Registered User
    Join Date
    09-22-2021
    Location
    Westlake Village, CA
    MS-Off Ver
    Microsoft 365
    Posts
    11

    Re: Sum of colored cells

    Pefection! You people are amazing!!! Thank you so much!!

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,554

    Re: Sum of colored cells

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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] count color cells and highlight the result of colored cells
    By ABDELFATTA in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-13-2020, 02:20 AM
  2. Replies: 26
    Last Post: 08-07-2017, 02:46 PM
  3. [SOLVED] Apply macro to unique seqence of cells colored cells
    By capson in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-04-2016, 11:49 PM
  4. Replies: 4
    Last Post: 01-19-2016, 10:24 PM
  5. Auto skip colored cells VBA but include conditionally formatted cells also
    By Cremorneguy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-31-2014, 03:44 AM
  6. Replies: 1
    Last Post: 11-09-2013, 02:43 AM
  7. Have blocks of blue colored cells ... want them surrounded by lavender-colored cells
    By rocket1406 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-01-2007, 03:59 PM

Tags for this Thread

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