+ Reply to Thread
Results 1 to 12 of 12

Make a cell go red and say "Check Glass"

  1. #1
    Forum Contributor
    Join Date
    02-18-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    356

    Make a cell go red and say "Check Glass"

    Hi Guys

    I really have no idea how to make this work even though ive read about conditional formatting so your help really would be appreciated

    in cells B16 i have a width in metres
    in cell B17 i have a height in metres

    I need cell B28 to flag up red and say "Check glass" if the following happens

    if B16 * B17 is more than 2.5 OR/AND if B16 and B17 are both bigger than 1.399

    I really would appreciate any help regarding this

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Make a cell go red and say "Check Glass"

    Try in conditional formatting =OR(B16*B17>2.5,AND(B16>1.399,B17>1.399))
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Make a cell go red and say "Check Glass"

    Quote Originally Posted by shukla.ankur281190 View Post
    Try in conditional formatting =OR(B16*B17>2.5,AND(B16>1.399,B17>1.399))
    ...And paste this in B28:
    Please Login or Register  to view this content.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,945

    Re: Make a cell go red and say "Check Glass"

    This can be done with VBA

    Please Login or Register  to view this content.
    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Make a cell go red and say "Check Glass"

    Quote Originally Posted by leelnich View Post
    ...And paste this in B28:
    Please Login or Register  to view this content.
    oh! I did miss it thank you

  6. #6
    Forum Contributor
    Join Date
    02-18-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    356

    Re: Make a cell go red and say "Check Glass"

    hi guys

    the formula works well but it doesnt make the cell red what am i doing wrong please?

    ive put it into conditional formatting > new rule > use a formula > pasted formula in and changed to red clicked ok but it doesnt turn cell red when the criteria is met only says check glass

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,434

    Re: Make a cell go red and say "Check Glass"

    Check that you have the correct cell or cell range in the Applies To box in the CF dialog.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  8. #8
    Forum Contributor
    Join Date
    02-18-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    356

    Re: Make a cell go red and say "Check Glass"

    sure do
    it just doesnt change the colour
    its just like a normal cell would be

  9. #9
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Make a cell go red and say "Check Glass"

    Row\Col
    A
    B
    C
    D
    16
    3.5
    17
    1
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    TRUE
    Check Glass


    Check the attached file here it is working great
    Attached Files Attached Files

  10. #10
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Make a cell go red and say "Check Glass"

    It worked fine for me.
    Untitled.png
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    02-18-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    356

    Re: Make a cell go red and say "Check Glass"

    sorry guys

    my mistake i was typing =IF(OR(B16*B17>2.5,AND(B16>1.399,B17>=B16)),"Check Glass","") into the conditional formatting

    sorted now
    thank you so so much

  12. #12
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Make a cell go red and say "Check Glass"

    You're welcome, and thank you for the rep!

+ 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] If cell equals "CR" then make cell to left negative and delete "CR".......
    By pasqualebaldi in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-14-2016, 07:51 PM
  2. Replies: 5
    Last Post: 01-23-2014, 11:02 AM
  3. Replies: 1
    Last Post: 07-04-2013, 07:43 PM
  4. [SOLVED] check if cell only has letter "M", not "MS" or others
    By krackaberr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-25-2013, 02:29 PM
  5. [SOLVED] create links to check boxes marked "good" fair"and "bad"
    By pjb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-19-2006, 09:25 PM
  6. If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ...
    By Maria J-son in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2006, 08:25 AM
  7. Replies: 6
    Last Post: 01-08-2006, 06:20 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