Highlight every fifth nonblank cells in column by conditional format

Johnson Parayil

New Member
Joined
Jan 8, 2022
Messages
8
Office Version
  1. 2019
Platform
  1. Windows
Hi, I need the formula to highlight every 5th nonblank cells in a columns by conditional format . Sample screen shoot is attaching with message. Thank you in advance.
 

Attachments

  • Highlight every 5th cells by conditional format in excel.png
    Highlight every 5th cells by conditional format in excel.png
    9.9 KB · Views: 6

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Try this. Select from D2 down and apply this CF rule

22 01 20.xlsm
D
1Qty
2
31
44
55
66
79
88
9
10
117
128
139
14
155
162
174
18
191
205
2169
222
23
Every 5th
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:D23Expression=AND(MOD(COUNT(D$2:D2),5)=0,D2<>"")textNO
 
Upvote 0
Try this. Select from D2 down and apply this CF rule

22 01 20.xlsm
D
1Qty
2
31
44
55
66
79
88
9
10
117
128
139
14
155
162
174
18
191
205
2169
222
23
Every 5th
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:D23Expression=AND(MOD(COUNT(D$2:D2),5)=0,D2<>"")textNO
Thank you so much Peter_SSs, It's working fine.
Regards
Johnson
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,694
Members
448,979
Latest member
DET4492

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top