Conditional Format Help Needed

Tmayeux

New Member
Joined
Apr 23, 2009
Messages
10
Hi Everyone,
I need help with a conditional formatting issue. I basically what excel to look at my column A and every time the data changes I want it to highlight the cells a different color. Pretty much similar to the Subtotals function but I need cell color differation not numeric calculations. I want the cell backround shaded differnt colors, not the font different though like shown below. Also I do not have the same number of each account number so I can't say change every 5th time.

See below:

Col A
600000
600000
600000
605000
607000
607000

Thanks!!
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hey there,

Did you tried the Conditional Formating, there you can set your chosen format the Custom Format.
 
Upvote 0
Yes,
I tried the Conditional Format Option. I could not find one that fit this particular problem though....
 
Upvote 0
I am not sure I know how to attach a file on this board.

Basically Column A has random six digit numbers in it that repeats vertically. Some numbers repeat several times. Other columns I have have names and dollar amounts in them. I want to see color differences each time Column A changes to a different account number. I want every cell in Column A to be shaded. It does not matter if it just two colors alternating or if I have a differnt color for each GL number. See Below:

ColumnA ColumnB ColumnC
600000 US Foods 100.00
600000 US Foods 150.00
600000 US Foods 250.00
605000 Walmart 50.00
605000 Ace Hardware 100.00
605000 Sam's 800.00
900000 K-mart 55.00
 
Upvote 0
=MOD(SUM(1/COUNTIF($A$1:$A1,$A$1:$A1)),2)=1

Assuming A1 is the first of your data... select A1 , choose conditional formatting with formula and enter the above....choose color

Copy that cell, select all of the below cells that may have data... press F5, click Special, and choose formats, hit OK....

your groups should now alternate color
 
Upvote 0
Danzon,

That sort of worked. It highlighted my first group of GL#'s but did not do anything to any of the other sets of GL#s.
 
Upvote 0
hmmm... it is working for me using your sample data.... unless I am misunderstanding your request

ScreenShot092.gif
 
Upvote 0
I verified that is what was in my formula bar just like your screen shot. When I scolled down I did notice that random cells were highlighed the chosen color. It did not highlight chuncks of account just random cells.

I had some trouble following your paste directions. When I copied the cell and highlighted the rest of my cells and hit F5 it only gave me the option to copy conditional formats. If I copied the cell and then right clicked paste special and then I could choose formats only.
 
Upvote 0
Sorry....I can't figure out why it is not working for you.... it does work for me...I expanded my column A to add more random values...all grouped by color automatically as expected...

ScreenShot093.gif
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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