+ Reply to Thread
Results 1 to 4 of 4

Color a box in excel with formulas

  1. #1
    Registered User
    Join Date
    02-04-2021
    Location
    Singapore
    MS-Off Ver
    2019
    Posts
    11

    Color a box in excel with formulas

    Hi! how do I color a box in excel automatically besides manual coloring.
    I am interested to color the excel in a column like
    Blue color then green color alternatively base on like n = 5.
    A
    Blue
    Green
    Blue
    Green
    Blue

    https://cdn.extendoffice.com/images/...-clicked-2.png

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Color a box in excel with formulas

    You could probably use Conditional Formatting for this, but you need to upload a sample EXCEL file (see yellow banner at the top of the page), unlikely anyone is going to do anything with a picture.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,582

    Re: Color a box in excel with formulas

    If you want this to happen with double clicks and right clicks, you’ll need VBA. Can’t be done with conditional formatting.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Color a box in excel with formulas

    Thanks Ali, didnt see anything about clicks, must have been in the pic - which I didnt bother opening

+ 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. Color Formulas
    By blando89 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-07-2016, 03:17 AM
  2. Color formulas
    By Pisasu69 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-19-2015, 11:01 PM
  3. Formulas based on color of the row
    By barclay777 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-11-2012, 09:57 AM
  4. Excel formulas based on color of cell
    By gthemerc in forum Excel General
    Replies: 3
    Last Post: 03-02-2012, 02:34 PM
  5. How do I use cell color in formulas?
    By Mike in forum Excel General
    Replies: 1
    Last Post: 12-23-2005, 11:00 AM
  6. Excel formulas based upon the color shading of a cell?
    By DGBG in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-12-2005, 06:06 PM
  7. [SOLVED] How to use formulas in Excel to control the text color ?
    By Jackie Cao in forum Excel General
    Replies: 2
    Last Post: 01-24-2005, 12:06 PM

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