+ Reply to Thread
Results 1 to 11 of 11

Question about conditional formatting

  1. #1
    Registered User
    Join Date
    01-11-2024
    Location
    Sweden
    MS-Off Ver
    365
    Posts
    4

    Question about conditional formatting

    Hi!

    Time to ask for help:

    Empty Apple Blue
    Empty Banana Green
    Empty Pear Pink

    I'm trying to make the conditional formatting color the text in the triggering cells of column 1 based on the words in the same row of column 2 and 3. If the user typed "Apple" in A1 nothing happens but if the user also types "Blue" in A2 or A3, the text of both these cells would turn red because both Apple and Blue are on the same row in the table. The table I'm working on contains over 100 rows so it would be painful to have to format every cell in column 1 based on every possible input scenario =)

    Any ideas? Can excel check the entire column 2 and match by row in column 3 and only format the triggering cells of column 1?

    Best,

  2. #2
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Question about conditional formatting

    Welcome to the forum.

    Sorry, I don't follow the logic.

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    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.

  3. #3
    Registered User
    Join Date
    01-11-2024
    Location
    Sweden
    MS-Off Ver
    365
    Posts
    4

    Re: Question about conditional formatting

    Thanks for the reply and the welcoming =)

    The workbook looks the same as the example table in my post, only with many more rows. None of the functions I've tried have worked so it's just a blank sheet with words in columns at the moment.

    I'm basically trying to make an excel function that acts like "check for duplicates" but instead of duplicates it would be checking for words on the same row of column 2 and 3.

  4. #4
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Question about conditional formatting

    Please read the last line of my instruction again and provide the sample workbook as requested with the formatting manually implemented and annotations to clarify the requirement. Then I shall have a look.

  5. #5
    Registered User
    Join Date
    01-11-2024
    Location
    Sweden
    MS-Off Ver
    365
    Posts
    4

    Re: Question about conditional formatting

    Here is an example workbook.
    Attached Files Attached Files

  6. #6
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Question about conditional formatting

    So, a pure guess in the absence of a sample sheet (I should NOT have had to create a sample myself - you should have done this).

    CF rule for B1:

    =AND($B1<>"",$C1<>"",NOT(OR(ISNA(XMATCH($B1,$A:$A,0)),ISNA(XMATCH($C1,$A:$A,0)))))

    Applies to: =$B:$C

    EDIT: I see from your workbook that this is not what you want. I'll have another look later if I have time.
    Attached Files Attached Files

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Question about conditional formatting

    CF rule for A1:

    =AND($A1<>"",OR(AND(NOT(ISNA(MATCH($A1,$B:$B,0))),NOT(ISNA(MATCH(INDEX($C:$C,MATCH($A1,$B:$B,0)),$A:$A,0)))),AND(NOT(ISNA(MATCH($A1,$C:$C,0))),NOT(ISNA(MATCH(INDEX($B:$B,MATCH($A1,$C:$C,0)),$A:$A,0))))))

    Applies to: =$A:$A

    You will need to test this thoroughly.
    Attached Files Attached Files

  8. #8
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Question about conditional formatting

    Is this any good?

  9. #9
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Question about conditional formatting

    No response ...

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  10. #10
    Registered User
    Join Date
    01-11-2024
    Location
    Sweden
    MS-Off Ver
    365
    Posts
    4

    Re: Question about conditional formatting

    Awesome! Thanks alot, this seem to work perfectly. You are a magician =)

  11. #11
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Question about conditional formatting

    Glad to have helped.

    If you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

+ 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. conditional formatting question
    By fivestar17 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-30-2013, 10:02 PM
  2. Conditional Formatting Question
    By timmysd88 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-11-2013, 05:11 PM
  3. Excel 2007 : Another Conditional Formatting question
    By blackps in forum Excel General
    Replies: 0
    Last Post: 07-28-2011, 07:45 PM
  4. conditional formatting question
    By waternut in forum Excel General
    Replies: 2
    Last Post: 08-12-2008, 03:06 PM
  5. conditional formatting question
    By rwethington in forum Excel General
    Replies: 3
    Last Post: 09-22-2006, 03:22 PM
  6. [SOLVED] Conditional formatting question
    By Carl Imthurn in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  7. [SOLVED] Conditional formatting question
    By Dodo in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 04:05 AM
  8. Conditional formatting question
    By Carl Imthurn in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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