+ Reply to Thread
Results 1 to 2 of 2

Color conditional in vba for columns

  1. #1
    Registered User
    Join Date
    09-10-2024
    Location
    Spain
    MS-Off Ver
    office 365
    Posts
    1

    Color conditional in vba for columns

    Hello,

    I'm trying to make a macro for each week column.

    Column A are the unique codes and for each code there are two data of sales and fcst

    cond. excel.xlsxcond. excel.xlsx
    with the following conditional:

    1. If we do not have Sales but we do have Fcst, both are red > If in the Sales cell = 0 and Fcst if it has data > Red
    2. If we have Sales but it is below Fcst it turns both orange > Yes in the Sales cell > Fcst cell > Orange
    3. If we have Sales and it is the same quantity as the Fcst, they both turn green
    4. If we have Sales and the Fcst is less than this or is 0, both are turned purple.

    Thank you.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,862

    Re: Color conditional in vba for columns

    Please Login or Register  to view this content.
    results in Sheet2: note there are no GREEN as no exact matches!
    Attached Files Attached Files
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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] Conditional Formatting - How to Color Other Columns
    By nowimindata in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-01-2021, 11:26 AM
  2. [SOLVED] Hiding Columns Except Based on Conditional Cell Format Fill Color
    By brentjohn in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-19-2019, 12:50 PM
  3. Replies: 5
    Last Post: 03-13-2019, 08:04 PM
  4. Using color scale conditional formatting on columns
    By moty.98 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-17-2013, 11:05 AM
  5. Replies: 2
    Last Post: 04-15-2013, 02:05 PM
  6. [SOLVED] How do I add conditional color to my rows based on two columns?
    By LarryDH in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-02-2012, 01:14 PM
  7. Replies: 0
    Last Post: 09-26-2012, 01:08 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