Hi, I want to color same values in a 20000 rows of changing values red and blue alternatively.
I 've attached the file and the the result I 'm trying to achieve. Finding the solution for this is driving me crazy.
Big thanks in advance.
Last edited by Hajik; 02-06-2012 at 12:24 PM. Reason: NBVC solved the case. Case Closed. :)
In a helper column, try:
=MOD(B1+(A1<>A2),2)
copied down
Then select the range to colour and invoke conditional formatting>> use a formula to determine which cells to format:
=B2=1 formatted with pink
then add another condition
=B2=0 formatted with blue.
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Hmmm....
Try this one in B2:
=MOD(OFFSET($B2,-1,0) --(A2<>OFFSET(A2,-1,0)),2)
copied down
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
In your file, I put the formula in B1 and copied down. I don't see what you are seeing....
Note: I placed a 2 in B1 so that I conditionally format whole column A without highlighting the column header.... that doesn't effect the formula outcome though...
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
It worked!! It seems I was entering your formula in the wrong cell!! Oh God MY MISTAKE!!!
I've been struggling to find the answer for more than 12 hours.You did me a big favor. I really don't know how to thank u.
:X
BTW How can I put a [SOLVED] next to the title of the topic.![]()
Last edited by Hajik; 02-06-2012 at 12:11 PM. Reason: adding BTW
How to mark a thread Solved
Go to the first post
Click edit
Click Go Advanced
Just below the word Title you will see a dropdown with the word No prefix.
Change to Solved
Click Save
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks