+ Reply to Thread
Results 1 to 7 of 7

Conditional formatting with formulas

  1. #1
    Registered User
    Join Date
    08-09-2021
    Location
    Tunisia
    MS-Off Ver
    365
    Posts
    10

    Exclamation Conditional formatting with formulas

    Hello everyone,

    I tried to explain my problem briefly with a little example that I attached for you, I hope you solve this for me, I will be very grateful.
    It's all about conditional formatting.

    Thank you,
    Have a good day.
    Attached Files Attached Files
    Last edited by YSFG; 10-20-2021 at 06:40 AM. Reason: SOLVED

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Conditional formatting with formulas

    You need to change the CF formula on the BD sheet to this:

    =OR(ISNUMBER(SEARCH("X",C6)),AND(ISNUMBER(SEARCH("X",C6)),ISNUMBER(SEARCH("Y",C6))))

    You need to set up a similar formula on the other sheet.

    Hope this helps.

    Pete

    EDIT: Oh, by the way, you may need to change the commas ( , ) to semicolons ( ; ), depending on your regional settings.

    Pete

  3. #3
    Registered User
    Join Date
    08-09-2021
    Location
    Tunisia
    MS-Off Ver
    365
    Posts
    10

    Re: Conditional formatting with formulas

    Thank you for your help,

    Your solution worked for me in the BD sheet, but it did not work in the other one.

    Can I make a test if the cell in BD sheet is FILLED WITH YELLOW Then fill it with yellow here too ?

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Conditional formatting with formulas

    You can't refer directly to another sheet with Conditional formatting. You could have a (regular) formula within a column of the second sheet which refers to the BD sheet, and then you could refer to that within your CF conditions on the second sheet.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    08-09-2021
    Location
    Tunisia
    MS-Off Ver
    365
    Posts
    10

    Re: Conditional formatting with formulas

    Thank you so much for your time.
    But sorry I did not completely understand your words as I am still a beginner.

    But thank you I apreciate your help.

  6. #6
    Registered User
    Join Date
    08-09-2021
    Location
    Tunisia
    MS-Off Ver
    365
    Posts
    10

    Re: Conditional formatting with formulas

    I am trying with VLOOKUP

    Because in the first sheet I have a list, a list of many letters which are located in the BD, But actually I don't need the letters, I need the type of the selected letter from the list,

    EXAMPLE :

    I choose the letter "A" from the list, the formula should :

    1- Go to the BD sheet
    2- see the type of the selected letter
    3- if the type name contains "X" , then the cell of the selected item from the list get filled with yellow

    It's complicated

  7. #7
    Registered User
    Join Date
    08-09-2021
    Location
    Tunisia
    MS-Off Ver
    365
    Posts
    10

    Re: Conditional formatting with formulas

    Problem solved

    ISNUMBER(SEARCH("X",VLOOKUP(C9,BD!$B$6:$C$24,2)))

    Thank you.

+ 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. Formatting formulas
    By QSGuy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-29-2019, 03:41 AM
  2. How do you copy and paste everything, formulas, non-formulas, formatting?
    By taylorsm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-05-2018, 10:53 AM
  3. Multi-step formatting macros with formatting and formulas
    By LG99 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-05-2013, 10:57 PM
  4. [SOLVED] Conditional Formatting using formulas
    By Babouh in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-17-2012, 06:44 PM
  5. Replies: 1
    Last Post: 09-14-2010, 03:45 AM
  6. Conditional Formatting for Formulas
    By Murat Gordeslioglu in forum Excel General
    Replies: 3
    Last Post: 06-22-2006, 04:10 AM
  7. Formatting Formulas
    By Norg Bort in forum Excel General
    Replies: 1
    Last Post: 01-29-2006, 03:00 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