+ Reply to Thread
Results 1 to 10 of 10

Conditional formatting for DV with INDIRECT.

  1. #1
    Registered User
    Join Date
    03-26-2022
    Location
    Queensland, Australia.
    MS-Off Ver
    365
    Posts
    89

    Conditional formatting for DV with INDIRECT.

    Hi, I am trying to get some conditional formatting to work.
    I have created a very small sample, (attached), with some note within.
    Let me know if there are questions.
    Thanking you!
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,181

    Re: Conditional formatting for DV with INDIRECT.

    Please explain what the problem is with the DV you have currently. It appears to be working fine.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    03-26-2022
    Location
    Queensland, Australia.
    MS-Off Ver
    365
    Posts
    89

    Re: Conditional formatting for DV with INDIRECT.

    Hi Ali,
    Yes the DV works but I can't get any conditional formatting to work.
    As per the notes included in the sheet,"I want conditional formatting to alert if the selection in coloumn C "Colour" is not from the
    "Sub Category" selected in column B. And like wise Column B "Sub Category from column A "Category".
    I have done this previously, but not using indirect. And my data tables are set up a bit different this time".

    There is no conditional formatting in Sheet1 columns B:C as I cannot work out how to this time with INDIRECT being used.
    This formatting would highlight a cell in B or C if someone goes back and changes what is in Column A or B.
    Because if you change what's in column A for instance you have to manually update both columns B:C it won't happen automatically, thus the conditional formatting
    to let you know there is a mismatch.

    Cheers,
    Ken.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,181

    Re: Conditional formatting for DV with INDIRECT.

    Is this for an event where someone might go back and CHANGE entries? Because I can't see the need otherwise. Please confirm.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,181

    Re: Conditional formatting for DV with INDIRECT.

    OK - let's try this.

    CF for B2:

    =AND(B2<>"",COUNTIF(INDIRECT(A2),B2)=0)

    Applies to: =$B$2:$C$5
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-26-2022
    Location
    Queensland, Australia.
    MS-Off Ver
    365
    Posts
    89

    Re: Conditional formatting for DV with INDIRECT.

    Yes, Exactly.

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

    Re: Conditional formatting for DV with INDIRECT.

    See post #5.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,181

    Re: Conditional formatting for DV with INDIRECT.

    You could also add an explanatory alert to an adjacent column (e.g. column E).

    In E2 copied down:

    =IFERROR(IF(COUNTIF(INDIRECT(A2),B2)=0,"SubCategory option not available - please choose again",IF(COUNTIF(INDIRECT(B2),C2)=0,"Colour option not available - please choose again","")),"")
    Attached Files Attached Files

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,181

    Re: Conditional formatting for DV with INDIRECT.

    Thanks for the rep.

  10. #10
    Registered User
    Join Date
    03-26-2022
    Location
    Queensland, Australia.
    MS-Off Ver
    365
    Posts
    89

    Re: Conditional formatting for DV with INDIRECT.

    Quote Originally Posted by AliGW View Post
    You could also add an explanatory alert to an adjacent column (e.g. column E).
    Thanks, I'll do that. Have a great day!
    Last edited by AliGW; 09-10-2024 at 02:18 AM. Reason: Please limit quoting.

+ 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] Using conditional formatting with INDIRECT
    By okela in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-11-2021, 10:53 AM
  2. Conditional Formatting with Indirect
    By scott.garrett in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-14-2017, 01:09 PM
  3. [SOLVED] Conditional Formatting with Indirect Function
    By nathanmccormick in forum Excel General
    Replies: 2
    Last Post: 07-08-2016, 04:38 PM
  4. [SOLVED] Conditional Formatting with VBA and INDIRECT formulas
    By indub in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2016, 12:31 PM
  5. [SOLVED] Conditional Formatting INDIRECT between dates
    By Will_iam in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-07-2012, 10:46 AM
  6. [SOLVED] INDIRECT in Conditional Formatting Question
    By Spencer101 in forum Excel General
    Replies: 10
    Last Post: 06-22-2012, 07:21 AM
  7. Conditional Formatting and Indirect Function
    By gmc2k2 in forum Excel General
    Replies: 4
    Last Post: 02-03-2011, 09:30 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