+ Reply to Thread
Results 1 to 13 of 13

Conditional Formatting: highlight row based on filtered batch

Hybrid View

  1. #1
    Registered User
    Join Date
    07-02-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    49

    Conditional Formatting: highlight row based on filtered batch

    Hi Mates.
    Good Day.

    Today i need a help with conditional formatting.

    For instance, i have a table with detailed transaction where column B is batch number & i have another table in the same sheet which is summarized per batch.
    Now, what i am looking for is , if detailed table is filtered by batch, i want the same batch row highlighted in table 2.
    If 2 batches are selected in table 1 , both rows in table 2 needs to be highlighted.

    Can be done this with formula? if not, a formula to get only unique values from table 1 is also i preferred.
    Attached Files Attached Files
    Last edited by AliGW; 08-29-2023 at 03:44 AM. Reason: Thread title improved - generic thread titles are not of much use.

  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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,996

    Re: Conditional Formatting: highlight row based on filtered batch

    I've updated your thread title: please review General Guideline #1 on the Forum Rules page.
    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
    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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,996

    Re: Conditional Formatting: highlight row based on filtered batch

    In your mock-up, you need to illustrate what you mean.

    I am not totally clear on your description, but suspect that it may require VBA.

    Please filter and manually highlight to show what we are aiming for.

  4. #4
    Registered User
    Join Date
    07-02-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    49

    Re: Conditional Formatting: highlight row based on filtered batch

    Please find attached sample
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-02-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    49

    Re: Conditional Formatting: highlight row based on filtered batch

    Thank you Ali, for the response.

    I have updated the sample file, please have a look.

  6. #6
    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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,996

    Re: Conditional Formatting: highlight row based on filtered batch

    I think you're going to need VBA for this - shall I move the thread for you?

  7. #7
    Registered User
    Join Date
    07-02-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    49

    Re: Conditional Formatting: highlight row based on filtered batch

    Do we can do this if only if filtered only by one batch number?

  8. #8
    Registered User
    Join Date
    07-02-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    49

    Re: Conditional Formatting: highlight row based on filtered batch

    Yes, Please.

  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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,996

    Re: Conditional Formatting: highlight row based on filtered batch

    The thread has been moved for you.

  10. #10
    Registered User
    Join Date
    07-02-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    49

    Re: Conditional Formatting: highlight row based on filtered batch

    Thank you Ali

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,994

    Re: Conditional Formatting: highlight row based on filtered batch

    Here is a formula based proposal that adds a column to table14.
    1. The added column (Include) is populated using: =SUBTOTAL(9,[@CIF])
    2. The conditional formatting formula for table25 is: =AND(SUMIFS($M$12:$M$17,$I$12:$I$17,$I4)>0,ISNUMBER(MATCH($I4,$I$12:$I$17,0)))
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  12. #12
    Registered User
    Join Date
    07-02-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    49

    Re: Conditional Formatting: highlight row based on filtered batch

    Thank you Jete

  13. #13
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,994

    Re: Conditional Formatting: highlight row based on filtered batch

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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] Conditional Formatting based on another cells Conditional Formatting
    By chriskay in forum Excel General
    Replies: 4
    Last Post: 08-22-2019, 05:33 AM
  2. [SOLVED] Override conditional formatting (in general, without changing the conditional formatting)
    By Stormin' in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-21-2017, 07:15 AM
  3. Conditional Formatting Removing Previous Conditional Formatting?
    By CravingGod in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2016, 01:02 PM
  4. Replies: 6
    Last Post: 01-08-2016, 06:44 PM
  5. Opening xlsm files with conditional formatting opens with removed conditional formatting
    By Martijn.Steenbakker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:38 AM
  6. Replies: 1
    Last Post: 09-20-2013, 06:23 PM
  7. Replies: 3
    Last Post: 05-15-2012, 04:13 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