+ Reply to Thread
Results 1 to 3 of 3

Modify Cell Background Color based on cell content

  1. #1
    Registered User
    Join Date
    07-01-2014
    Location
    New Haven
    MS-Off Ver
    MS Office for Mac 2011
    Posts
    1

    Modify Cell Background Color based on cell content

    Hello,

    I am working on developing QR Codes using some MATLAB code and it would be really convenient if I could create an excel program which changed the background color of a cell containing a 1 to black and a cell containing a 0 to white.

    Thank you so much for your help! I searched through the forums as best I could but I didn't find anything super useful.

    Best,

    Connor

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Modify Cell Background Color based on cell content

    Background colors can be changed based on cell contents using Conditional Formatting.

  3. #3
    Registered User
    Join Date
    07-01-2014
    Location
    UK
    MS-Off Ver
    MS Office Professional Plus 2013 on Win 7
    Posts
    14

    Re: Modify Cell Background Color based on cell content

    sounds simplistic but you can do this with conditional formatting.

    select the area that contains your numbers and then select conditional formatting
    I then used Format all Cells based on their values
    then chose 2-color scale
    Selected minimum to Number and 0 and chose the colour
    then did the same for the maximum and set that to 1

    Hey presto

    Hope this helps.

+ 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. Change cell background color based on another cells background color
    By Queo in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 4
    Last Post: 06-10-2014, 05:28 AM
  2. Replies: 4
    Last Post: 09-15-2012, 02:46 PM
  3. [SOLVED] Modify Current VBA Cell Background Color Code
    By boldcode in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-10-2011, 02:29 AM
  4. Modify Code to change cell background color
    By dcgrove in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-12-2008, 12:54 AM
  5. Replies: 5
    Last Post: 02-11-2006, 07:12 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