PC Review


Reply
Thread Tools Rate Thread

conditional format code based on lookup from another tab

 
 
Tracey
Guest
Posts: n/a
 
      13th Dec 2009
Hi All,

I'm wondering if it's possible to create vba code using conditional format
principles with the source data on another tab.

I have a separate tab for each store that lists it's personnel and their
ratings. I have then summarised all of this info on another sheet using
vlookup. I would like this final spreadsheet to colour code each cell
according to their rating i.e.

Position Store1 Store2 Store3 etc
Manager Bob (red) Carol (blue) Ted (yellow)
Meat Mgr Alice (blue)
Bakery Mgr

Can I incorporate a vlookup into the sub code or would I have to create a
change criteria for every single column?

--
Tracey @ BrisVegas
 
Reply With Quote
 
 
 
 
Rob van Gelder
Guest
Posts: n/a
 
      14th Dec 2009
Add a conditional format for each use of a colour.
=VLOOKUP(B2, NameColours, 2, FALSE) = "Yellow"

NameColours is a 2 column range:
Bob Red
Carol Blue
Ted Yellow
Alice Blue

Cheers,
Rob



On 14-Dec-2009 12:59, Tracey wrote:
> I have a separate tab for each store that lists it's personnel and their
> ratings. I have then summarised all of this info on another sheet using
> vlookup. I would like this final spreadsheet to colour code each cell
> according to their rating i.e.
>
> Position Store1 Store2 Store3 etc
> Manager Bob (red) Carol (blue) Ted (yellow)
> Meat Mgr Alice (blue)
> Bakery Mgr

 
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
Conditional format a cell if it has an error (due to lookup #N/A) Manosh Microsoft Excel Discussion 2 26th Mar 2010 01:17 AM
Conditional Formatting Based on Lookup into List roscfb Microsoft Excel Misc 2 3rd Apr 2008 11:27 AM
conditional format lookup Johnny1r Microsoft Excel Worksheet Functions 2 12th Mar 2008 03:58 AM
Return cell contents based on conditional lookup jarviscars Microsoft Excel Worksheet Functions 15 5th Aug 2005 08:05 AM
Conditional format based on format of another cell Jason Microsoft Excel Worksheet Functions 4 23rd Jul 2003 10:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:26 AM.