+ Reply to Thread
Results 1 to 3 of 3

Merge sumbycolor and sumif(text) resulting in sum range (Colour + text = sum)

  1. #1
    Registered User
    Join Date
    11-01-2017
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    2

    Merge sumbycolor and sumif(text) resulting in sum range (Colour + text = sum)

    I am desperately looking for help with this.

    i have a sheet with a working sumbycolor macro to sum a range if a different range is of a certain colour.

    it also has a working sumif formula to sum a range if a different range contains a specific word.

    What i am trying to now do is create a cell that contains both.

    I have tried using different combinations of sumif sumifs if and sumbycolor formulae with no success

    EG

    i am wanting a cell to have as its final value the sum of a column of numerical amounts, as long as the rows contain a certain word and are coloured specifically (both separate columns).

    See attached image.

    Table.png

    I require the total of column D for each "name" separated by color red, orange and green.
    So that in "name1" box the red cells in D that correlate to "name1" in F are totaled in the red box.

    I really hope i havnt over/under explained this.

    *edit added worksheet. Example area in yellow, work area in blue.
    Attached Files Attached Files
    Last edited by Aphadon; 11-02-2017 at 05:43 AM. Reason: Added worksheet

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Merge sumbycolor and sumif(text) resulting in sum range (Colour + text = sum)

    What yu haven't done.... is attach a sample workbook.

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    11-01-2017
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    2
    Quote Originally Posted by Glenn Kennedy View Post
    What yu haven't done.... is attach a sample workbook.

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).



    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Thank you. As you can tell I'm new to the site. I will look into that in the morning.

+ 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. Copy a range with text colour
    By sianjialin in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-12-2013, 08:14 AM
  2. Replies: 1
    Last Post: 09-10-2013, 10:28 PM
  3. [SOLVED] merge 2 columns of data and add text to resulting cells
    By tiger10012 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2013, 11:55 AM
  4. [SOLVED] Sumif based on a text range, text criteria and and text sum range
    By ned0 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-18-2012, 07:45 PM
  5. [SOLVED] Macro to change text colour of adjacent cell to the same text colour as target cell
    By kayoke in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-28-2012, 04:18 AM
  6. Cell Colour based on text in Range of cells
    By viewmaster in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-02-2006, 11:53 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