+ Reply to Thread
Results 1 to 3 of 3

Conditional formatting affected by the data filter

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-15-2013
    Location
    London
    MS-Off Ver
    Excel 2003, 2007, 2010, 2019
    Posts
    436

    Conditional formatting affected by the data filter

    hi everyone,

    I used the formula below to apply a border line every 5 rows for my spreadsheet:

    =MOD(ROW()-ROW($B$4),5)=0
    But I noticed that if a filter is applied such as when a category is selected, then it is no longer working properly. It seems that the formula cannot allow for filter.

    Is there a better formula to allow it is still every 5 rows even when filter is applied?

  2. #2
    Forum Contributor
    Join Date
    01-15-2013
    Location
    London
    MS-Off Ver
    Excel 2003, 2007, 2010, 2019
    Posts
    436

    Re: Conditional formatting affected by the data filter

    Found a thread which solves it:

    HTML Code: 

  3. #3
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Conditional formatting affected by the data filter

    Try this as your CF formula:
    =AND(EVEN(MOD((SUBTOTAL(3,$A$1:A1)),5))=4,MOD((SUBTOTAL(3,$A$1:A1)),5)+1=4)
    That will highlight the same rows as your original formula, assuming that there is data in every row of column A. If not, change the refs to use a column which does have data in every row.

    Edit: see you found another (similar) solution.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

+ 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] is my excel sheet affected by invisible formatting
    By texcel_tom in forum Excel General
    Replies: 4
    Last Post: 11-30-2016, 01:41 PM
  2. [SOLVED] How to filter data in a column by conditional formatting?
    By Swagata in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-28-2012, 01:54 AM
  3. Pictures insert in excel and affected by filter sorting
    By otterandrews in forum Excel General
    Replies: 0
    Last Post: 06-20-2012, 01:54 AM
  4. Conditional Formatting OR Filter?
    By jhiltabidel in forum Excel General
    Replies: 15
    Last Post: 04-10-2012, 01:22 PM
  5. filter + conditional formatting
    By scambug in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-06-2012, 07:12 AM
  6. How to have a column not affected by Auto-Filter
    By crazy479 in forum Excel General
    Replies: 3
    Last Post: 07-08-2010, 03:59 PM
  7. [SOLVED] conditional format: affected by cell size
    By Hugh Murfitt in forum Excel General
    Replies: 5
    Last Post: 11-30-2005, 01:10 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