PC Review


Reply
Thread Tools Rate Thread

Change fill color of cell

 
 
BillP
Guest
Posts: n/a
 
      2nd May 2010
Hello,
Excel 2k on Vista 64 bit.
I have a range of cells (b2:bn2) in a row that are answers to a quiz. In the
same cells below are the answers with a different quiz participant in each
row. I would like to change the background of the cells that do not match
the answers in b2:bn2. I have used conditional formatting and accomplished
this task, however, I would also like to total the wrong answers in column
"bo" for every row. I have found a bit of programming on line but it doesn't
work with conditional formatting. It does work when I format the cells by
hand. Any suggestions?
Thanks for your input.
Bill

 
Reply With Quote
 
 
 
 
BillP
Guest
Posts: n/a
 
      2nd May 2010
The contents of cells b2:bn2 are text, letters A thru E, corresponding to
the correct letter in multiple choice answers.
Sorry for not including in original post.
Bill
"BillP" <(E-Mail Removed)> wrote in message
news:1ACE36BE-046D-46D2-AF91-(E-Mail Removed)...
> Hello,
> Excel 2k on Vista 64 bit.
> I have a range of cells (b2:bn2) in a row that are answers to a quiz. In
> the same cells below are the answers with a different quiz participant in
> each row. I would like to change the background of the cells that do not
> match the answers in b2:bn2. I have used conditional formatting and
> accomplished this task, however, I would also like to total the wrong
> answers in column "bo" for every row. I have found a bit of programming on
> line but it doesn't work with conditional formatting. It does work when I
> format the cells by hand. Any suggestions?
> Thanks for your input.
> Bill


 
Reply With Quote
 
Rick Rothstein
Guest
Posts: n/a
 
      2nd May 2010
Put this formula in BO3 and copy it down as needed...

=SUMPRODUCT((B3:BN3<>"")*($B$2:$BN$2=B3:BN3))

Note: This formula will work independently from your Conditional Formatting
(that is, it will work whether you are using Conditional Formatting or not).

--
Rick (MVP - Excel)



"BillP" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> The contents of cells b2:bn2 are text, letters A thru E, corresponding to
> the correct letter in multiple choice answers.
> Sorry for not including in original post.
> Bill
> "BillP" <(E-Mail Removed)> wrote in message
> news:1ACE36BE-046D-46D2-AF91-(E-Mail Removed)...
>> Hello,
>> Excel 2k on Vista 64 bit.
>> I have a range of cells (b2:bn2) in a row that are answers to a quiz. In
>> the same cells below are the answers with a different quiz participant in
>> each row. I would like to change the background of the cells that do not
>> match the answers in b2:bn2. I have used conditional formatting and
>> accomplished this task, however, I would also like to total the wrong
>> answers in column "bo" for every row. I have found a bit of programming
>> on line but it doesn't work with conditional formatting. It does work
>> when I format the cells by hand. Any suggestions?
>> Thanks for your input.
>> Bill

>

 
Reply With Quote
 
BillP
Guest
Posts: n/a
 
      2nd May 2010
Thank you Rick,
Worked perfect!
Bill
"Rick Rothstein" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Put this formula in BO3 and copy it down as needed...
>
> =SUMPRODUCT((B3:BN3<>"")*($B$2:$BN$2=B3:BN3))
>
> Note: This formula will work independently from your Conditional
> Formatting (that is, it will work whether you are using Conditional
> Formatting or not).
>
> --
> Rick (MVP - Excel)
>
>
>
> "BillP" <(E-Mail Removed)> wrote in message
> news:#(E-Mail Removed)...
>> The contents of cells b2:bn2 are text, letters A thru E, corresponding to
>> the correct letter in multiple choice answers.
>> Sorry for not including in original post.
>> Bill
>> "BillP" <(E-Mail Removed)> wrote in message
>> news:1ACE36BE-046D-46D2-AF91-(E-Mail Removed)...
>>> Hello,
>>> Excel 2k on Vista 64 bit.
>>> I have a range of cells (b2:bn2) in a row that are answers to a quiz. In
>>> the same cells below are the answers with a different quiz participant
>>> in each row. I would like to change the background of the cells that do
>>> not match the answers in b2:bn2. I have used conditional formatting and
>>> accomplished this task, however, I would also like to total the wrong
>>> answers in column "bo" for every row. I have found a bit of programming
>>> on line but it doesn't work with conditional formatting. It does work
>>> when I format the cells by hand. Any suggestions?
>>> Thanks for your input.
>>> Bill

>>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change color fill when data in cell changes Cali Sal Microsoft Excel Misc 3 30th Jun 2009 06:38 AM
Change cell fill color options John Microsoft Excel Misc 1 8th May 2009 12:50 PM
Cell Fill Color change for MAX value Dewayne Microsoft Excel Worksheet Functions 3 26th Nov 2008 05:35 AM
change fill color of a range of cells based on color of a cell? =?Utf-8?B?RGFyTWVsTmVs?= Microsoft Excel Programming 0 2nd Mar 2006 06:35 PM
Change a cell's fill color dynamically? =?Utf-8?B?QXJsZW4=?= Microsoft Excel Misc 2 22nd Jan 2005 09:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:29 PM.