+ Reply to Thread
Results 1 to 12 of 12

Highlight entire row between 2 non empty cell

  1. #1
    Forum Contributor
    Join Date
    05-16-2011
    Location
    Philippines
    MS-Off Ver
    Excel 365/Excel 2016
    Posts
    315

    Highlight entire row between 2 non empty cell

    Is there a way to highlight entire row between non empty cell? I just want a macro code for it and perform group to expand and collapsed it anytime .

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Highlight entire row between 2 non empty cell

    Hi.

    Post a sample file.
    Click *, if my suggestion helps you. Have a good day!!

  3. #3
    Forum Contributor
    Join Date
    05-16-2011
    Location
    Philippines
    MS-Off Ver
    Excel 365/Excel 2016
    Posts
    315

    Re: Highlight entire row between 2 non empty cell

    Refer to Column D please,between those word are empty cell and I want to group it so I can expand and collapsed it
    Attached Files Attached Files

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Highlight entire row between 2 non empty cell

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Forum Contributor
    Join Date
    05-16-2011
    Location
    Philippines
    MS-Off Ver
    Excel 365/Excel 2016
    Posts
    315

    Re: Highlight entire row between 2 non empty cell

    Hi there @ Sixthsense , when I try to embed your code,what only happen is that the code remove the color blue background on row 1, If you refer on Column D, I want to group the words between "Total Assets" to "Liabilities","Liabilities" to "Net earnings", or any words that appears. I hope I explain it well. Thanks

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Highlight entire row between 2 non empty cell

    That was posted based on your post #1 content

  7. #7
    Forum Contributor
    Join Date
    05-16-2011
    Location
    Philippines
    MS-Off Ver
    Excel 365/Excel 2016
    Posts
    315

    Re: Highlight entire row between 2 non empty cell

    Ah I see,i get it now,sorry if you misunderstand my post,I just want to select the empty cell between words downward and perform group and ungroup for me to easy collapse and expand.

  8. #8
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Highlight entire row between 2 non empty cell

    perhaps
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  9. #9
    Forum Contributor
    Join Date
    05-16-2011
    Location
    Philippines
    MS-Off Ver
    Excel 365/Excel 2016
    Posts
    315

    Re: Highlight entire row between 2 non empty cell

    Hi @JosephP thanks for the code you given me,it works now,however I just need to group also other column aside from Column D,if you notice the number on Row 1 in the workbook I attach,I just need to group that from Column D to N(number 12). When I try to modify the code to group other columns by row, it turns out to be messy .

  10. #10
    Forum Contributor
    Join Date
    05-16-2011
    Location
    Philippines
    MS-Off Ver
    Excel 365/Excel 2016
    Posts
    315

    Re: Highlight entire row between 2 non empty cell

    Hi,I'm going up this thread.Need help badly,I manage to embed the code that Mr JosephP given to me,I want to group by row(from Column D to N),with the help of his code. But then something is not right since it start to group blank cells of row 2 before the non empty cell. I hope you get the point what I am trying to explain . Try to see the new attach workbook
    Attached Files Attached Files

  11. #11
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Highlight entire row between 2 non empty cell

    you can only have 7 levels of nested grouping so that's not possible

  12. #12
    Forum Contributor
    Join Date
    05-16-2011
    Location
    Philippines
    MS-Off Ver
    Excel 365/Excel 2016
    Posts
    315

    Re: Highlight entire row between 2 non empty cell

    Wow,there is a limit of nested grouping,anyway, is there a way to start a nested grouping after the 1st word found in a column. For example on my 2nd workbook attach on "Column H" from row 2 to row 18, I don't want to include that on grouping rather if the 1st word found(1st non empty cell found) it would start to group the non blank cell below.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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