+ Reply to Thread
Results 1 to 7 of 7

Changing a cells format based on another cell and staying in that format

  1. #1
    Registered User
    Join Date
    12-04-2020
    Location
    California, USA
    MS-Off Ver
    Office 365
    Posts
    22

    Changing a cells format based on another cell and staying in that format

    I want to change cell's A1 format when cell B1 exceeds a value of 100.
    I want to keep that new format for cell A1 even if cell B1 changes and goes below 100. So, once cell B1 hits a value of 100 or greater the cell A1 format changes and stays no matter what cell B1 does.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Changing a cells format based on another cell and staying in that format

    If you want A1 to change format when B1 exceeds 100, then keep that format even if B1 goes back below 100, you will need VBA.

    What data is in A1, what is the format, and what do you want to change it to?

  3. #3
    Registered User
    Join Date
    12-04-2020
    Location
    California, USA
    MS-Off Ver
    Office 365
    Posts
    22

    Re: Changing a cells format based on another cell and staying in that format

    A1 is a stock price.
    A1 is updated every 30sec by a macro that refreshes stock data.
    When A1 goes above 100 I want to change the text color and background color and leave it in the new text color and background color even if the stock price goes below 100. This way I know the value exceeded 100 at some point.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Changing a cells format based on another cell and staying in that format

    Can you attach a sample file (see yellow banner at the top of the page)? If not then please show your macro and describe exactly where all the data is.

  5. #5
    Registered User
    Join Date
    12-04-2020
    Location
    California, USA
    MS-Off Ver
    Office 365
    Posts
    22

    Re: Changing a cells format based on another cell and staying in that format

    Yes, give me a little time to build an example worksheet.

  6. #6
    Registered User
    Join Date
    12-04-2020
    Location
    California, USA
    MS-Off Ver
    Office 365
    Posts
    22

    Re: Changing a cells format based on another cell and staying in that format

    Here you go...
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    01-02-2020
    Location
    Idaho, USA
    MS-Off Ver
    365
    Posts
    273

    Re: Changing a cells format based on another cell and staying in that format

    Just put this in the worksheets change event:

    Please Login or Register  to view this content.
    You'll need to set the format of the cell how you want it. This just changes the font color to red.

+ 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. Format cells based on 2 separate cell data, incorporated into the format
    By Laur_E in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-11-2019, 01:57 AM
  2. [SOLVED] Changing color format in cells based on 3 range values in a different column cells.
    By konkonmike in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 07-08-2019, 08:11 AM
  3. changing a cell from a time format to a total sum format
    By batjl9 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-28-2017, 05:35 PM
  4. Changing Cell format based on another cells format.
    By MrStevie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-05-2017, 03:02 PM
  5. help with changing format macro based on another cell
    By alanb1976 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-09-2011, 05:05 AM
  6. format not staying same
    By ricklyne in forum Excel General
    Replies: 5
    Last Post: 10-26-2010, 02:47 AM
  7. how do i format a cell based on format of a range of cells?
    By Chris Hardick in forum Excel General
    Replies: 2
    Last Post: 04-03-2006, 03:55 AM

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