+ Reply to Thread
Results 1 to 3 of 3

Sum column F2:F1000 if there is CONDITIONAL FORMATTED color in Column E2:E1000

  1. #1
    Registered User
    Join Date
    04-15-2008
    Location
    Tamil Nadu, India.
    MS-Off Ver
    Microsoft Office 2016
    Posts
    584

    Lightbulb Sum column F2:F1000 if there is CONDITIONAL FORMATTED color in Column E2:E1000

    Dear Friends,

    I need a help.

    In Column E2:E1000, I have applied a conditional formatting to apply a specific color based on a condition. The color applied nicely.

    In Column F2:F1000, there are values (amount) which needs to be summed up if the same row of next column consist the color applied using Conditional Format.

    For example:

    Please Login or Register  to view this content.
    I have applied conditional format in Col E, if it contains "APPLE", then apply Yellow color. In next column F, there amount mentioned.

    Therefore, the Column F to be summed up if there is value "APPLE" in Col E. In above example, "APPLE" is applied, then the total is 805.

    If "ORANGE" is applied, then the Total is 450.

    Please note that the column E is conditionally formatted.

    Please help me using VBA.

    Thanks in advance.
    Last edited by acsishere; 07-13-2024 at 03:22 PM.
    Good friends are hard to find, harder to leave, and impossible to forget.

    acsishere.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2508 Build 16.0.19127.20082) 64-bit
    Posts
    31,748

    Re: Sum column F2:F1000 if there is CONDITIONAL FORMATTED color in Column E2:E1000

    Why not have a data validation list of entries in column A and use a simply SUMIF(S) formula?

    See here:

    http://www.cpearson.com/Excel/CFColors.htm
    Attached Files Attached Files
    Last edited by JohnTopley; 07-14-2024 at 05:17 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,623

    Re: Sum column F2:F1000 if there is CONDITIONAL FORMATTED color in Column E2:E1000

    JT's solution is the simplest and the best but if you do want VBA a small loop will do.
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

+ 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: 10
    Last Post: 12-31-2020, 02:52 AM
  2. Replies: 2
    Last Post: 12-20-2019, 11:56 AM
  3. Paste with conditional formatted color
    By Miraz_Sarder in forum Excel General
    Replies: 1
    Last Post: 06-20-2017, 08:49 AM
  4. [SOLVED] VBA to filter source column by search field input and/or conditional formatted cell color
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-28-2016, 12:53 PM
  5. [SOLVED] Conditional Formatting - Silly Question - Why is the column formatted
    By leviathan86 in forum Excel General
    Replies: 5
    Last Post: 07-28-2015, 05:00 PM
  6. Replies: 4
    Last Post: 07-30-2010, 09:19 AM
  7. [SOLVED] Conditional Formatted Cell Color Index
    By MDR5300 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-27-2005, 06:06 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