+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting to Uneven Merged Cells

  1. #1
    Registered User
    Join Date
    02-07-2013
    Location
    Istanbul
    MS-Off Ver
    Microsoft 365
    Posts
    19

    Question Conditional Formatting to Uneven Merged Cells

    Hello,

    I have a large sheets with over 13000 rows which some of cells are merged (to indicate a group). Unfortunately, they have to stay merged
    I want to fill every other group name (Column A in attached file) with alternating color.
    I know that conditional formatting with the code;
    Please Login or Register  to view this content.
    does the job for unmerged cells (Column B in attached file).

    So far I have managed to find this code
    Please Login or Register  to view this content.
    which allows me to alternate color of every 6 rows. (Most of my merged cells are 6 rows.) However, some group names are created by merging 7-10 rows.

    How to write a conditional formatting for these uneven merged rows?
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,202

    Re: Conditional Formatting to Uneven Merged Cells

    Hi,

    You can try this:

    =ISODD(COUNTA($A$2:A2))
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-07-2013
    Location
    Istanbul
    MS-Off Ver
    Microsoft 365
    Posts
    19

    Re: Conditional Formatting to Uneven Merged Cells

    Quote Originally Posted by Phuocam View Post
    Hi,

    You can try this:

    =ISODD(COUNTA($A$2:A2))
    Thank you, solved my problem

+ 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] Malfunction of conditional formatting in merged cells
    By Agnese in forum Excel General
    Replies: 11
    Last Post: 02-17-2023, 07:00 AM
  2. Replies: 4
    Last Post: 07-25-2020, 04:14 PM
  3. Conditional formatting range changes when cells are merged
    By djmiles in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-20-2016, 01:21 AM
  4. Conditional formatting in merged cells
    By davehow87 in forum Excel General
    Replies: 1
    Last Post: 08-11-2014, 04:56 AM
  5. [SOLVED] Find all merged cells via conditional formatting?
    By se15 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-14-2013, 03:57 PM
  6. Conditional Formatting of Merged Cells
    By ClubCrackerz in forum Excel General
    Replies: 0
    Last Post: 06-14-2012, 03:58 PM
  7. Move merged cells with conditional formatting?
    By SpikeUK in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-08-2005, 01:04 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