+ Reply to Thread
Results 1 to 8 of 8

Sums in certain cells

  1. #1
    Registered User
    Join Date
    09-15-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    17

    Sums in certain cells

    Hi,

    I have prices displayed in the cells of a column. I indicate some with a green fill color. I'd like to display the total sum of those cells that do not have green fill color.

    How can I do that?

    Thanks

  2. #2
    Forum Contributor S O's Avatar
    Join Date
    06-25-2015
    Location
    England
    MS-Off Ver
    Office 2010 + 2013 + 2016
    Posts
    103

    Re: Sums in certain cells

    How do you identify those that need to be marked green? A formula cannot read the colour of a cell so you're currently looking at a VBA solution - but if you can share the logic that decides a "green" cell then you can use conditional formatting to colour the cells, and a formula to count them

  3. #3
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Sums in certain cells

    did you use conditional formatting to add the color, or is it there from a manual formatting change?
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  4. #4
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Sums in certain cells

    Hi,

    If you are just looking for a quick and dirty solution you could do it simply by entering this at the top or bottom of your sheet, assuming your prices are displayed in column A, say for example A4 to A22.

    Please Login or Register  to view this content.
    Then you can filter the column by colour and 'No Fill' to give you the total for the cells that do not have a green fill.

    See sample attached
    Attached Files Attached Files
    Thanks,
    HangMan

    You can say "Thank you!" by clicking Add Reputation below the post.
    Please, mark your thread [SOLVED] if you are happy with the solution.

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Sums in certain cells

    A table will allow you to filter by colour and if you have a Totals Row for the table (Design Tab, Total Row) the total will be determined by the colour chosen or the lack of colour.

    A
    1
    Number
    2
    1
    3
    2
    4
    3
    5
    4
    6
    5
    7
    6
    8
    21


    A
    1
    Number
    2
    1
    3
    2
    4
    3
    5
    4
    6
    5
    7
    6
    8
    9


    The green values in rows 4,5, and 6 are actually hidden when the table colour filter is used. You can see that the totals for the non green cells is correct in A9.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  6. #6
    Registered User
    Join Date
    09-15-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Sums in certain cells

    The prices are for different invoices listed in a column. I add the green fill color to those that have been paid. So basically I want to display the total sum of the unpaid invoices.

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Sums in certain cells

    If you select all your data and then Insert Table, there is no problem. The filter will work just fine. All the details of the unpaid invoices will be displayed.

  8. #8
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Sums in certain cells

    Or just use the SUBTOTAL function and filter by non-green values, simple...

+ 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. Replies: 13
    Last Post: 04-26-2014, 01:12 PM
  2. [SOLVED] Formula that SUMS cells per month
    By mrcois in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-25-2012, 06:02 AM
  3. adding variable sums from different cells
    By ioneabee in forum Excel General
    Replies: 5
    Last Post: 05-13-2010, 04:09 AM
  4. Function to count non-contiguous cells in a column and sums the cells
    By Ace of Clubs in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-24-2009, 06:34 AM
  5. [SOLVED] multiple entries-sums to different cells
    By Jeff in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-21-2006, 09:00 AM
  6. Need a formula that sums a column but could exclude some cells
    By Watercolor artist in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  7. Help with joined cells / sums
    By pmguerra in forum Excel General
    Replies: 2
    Last Post: 02-26-2005, 08:14 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