How to set up odd Numbered Rows in a Color based on amount of Data

BishopDesigns

New Member
Joined
Oct 14, 2015
Messages
22
Hello,
Is there a way I can set up my Excel Document so that a Macro could make every Odd Row from Column A to S to be a different color?
Each day I paste in new data so I could have anywhere from 130 to 500 rows that contain data in Column A.

I tried inserting a Table but as soon as I check the box that I have Headers, my Excel freezes.
Thanks for any and all assistance!

1669757332123.png
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Is Conditional Formatting OK for you?

Book1.xlsm
ABCDEFGHIJKLMNOPQRS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Sheet17
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A:SExpression= MOD(ROW(A2),2) = 1textNO
A:SExpression= MOD(ROW(A2),2) = 0textNO
 
Upvote 0
Or this? (just change the range to include the maximum number of rows likely)

Book1
ABDGHIJKLMNOPQRST
1Emp#Folllow upOrder#ContactStatePhoneEmailCode
2data
3data
4data
5data
6data
7data
8data
9data
10data
11data
12data
13data
14data
15data
16data
17data
18data
19data
20
21
22
23
24
25
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:S100Expression=AND($A2<>"",MOD(ROW(A2),2) = 1)textNO
 
Upvote 0

Forum statistics

Threads
1,216,074
Messages
6,128,649
Members
449,462
Latest member
Chislobog

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