Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Conditional Formatting Based on vlookup Value

I have the following on one worksheet:

A B
School 1 (formatted in green) Nickname 1 (formatted in green)
School 2 (formatted in blue) Nickname 2 (formatted in blue)

On my second worksheet I have a cell that looks up school and returns
corresponding nickname using vlookup. What I need is to have the cell with
vlookup also show the formatting. So if that cell looked up Nickname 1, it
would have green formatting.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default Conditional Formatting Based on vlookup Value

Please keep in mind that there are hundreds of school names, so stringing if
statements for each school is not practical/possible. Thanks.

"Excel User" wrote:

I have the following on one worksheet:

A B
School 1 (formatted in green) Nickname 1 (formatted in green)
School 2 (formatted in blue) Nickname 2 (formatted in blue)

On my second worksheet I have a cell that looks up school and returns
corresponding nickname using vlookup. What I need is to have the cell with
vlookup also show the formatting. So if that cell looked up Nickname 1, it
would have green formatting.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Conditional Formatting Based on vlookup Value

Formulas cannot return color formats so you would have to use Conditional
Formatting or event code.

If you did find a solution, keep in mind that Excel is limited to 56 colors
so the "hundreds of schools" being a unique color is impossible without
extensive code.


Gord Dibben MS Excel MVP

On Sun, 10 Aug 2008 08:58:00 -0700, Excel User
wrote:

Please keep in mind that there are hundreds of school names, so stringing if
statements for each school is not practical/possible. Thanks.

"Excel User" wrote:

I have the following on one worksheet:

A B
School 1 (formatted in green) Nickname 1 (formatted in green)
School 2 (formatted in blue) Nickname 2 (formatted in blue)

On my second worksheet I have a cell that looks up school and returns
corresponding nickname using vlookup. What I need is to have the cell with
vlookup also show the formatting. So if that cell looked up Nickname 1, it
would have green formatting.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default Conditional Formatting Based on vlookup Value

Thank you Gord. I am not looking for unique colors for each school, just a
way to format both text and cell fill colors based on the content and format
of the cell it looks up.

"Gord Dibben" wrote:

Formulas cannot return color formats so you would have to use Conditional
Formatting or event code.

If you did find a solution, keep in mind that Excel is limited to 56 colors
so the "hundreds of schools" being a unique color is impossible without
extensive code.


Gord Dibben MS Excel MVP

On Sun, 10 Aug 2008 08:58:00 -0700, Excel User
wrote:

Please keep in mind that there are hundreds of school names, so stringing if
statements for each school is not practical/possible. Thanks.

"Excel User" wrote:

I have the following on one worksheet:

A B
School 1 (formatted in green) Nickname 1 (formatted in green)
School 2 (formatted in blue) Nickname 2 (formatted in blue)

On my second worksheet I have a cell that looks up school and returns
corresponding nickname using vlookup. What I need is to have the cell with
vlookup also show the formatting. So if that cell looked up Nickname 1, it
would have green formatting.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 PM
Conditional Formatting Based on If and Or luvthavodka Excel Discussion (Misc queries) 5 August 10th 06 10:13 PM
Conditional formatting formula that uses VLookup, based on content of another cell Fred Excel Discussion (Misc queries) 2 August 3rd 06 10:38 AM
Conditional formatting formula that uses VLookup, based on content of another cell Fred Excel Discussion (Misc queries) 3 August 2nd 06 04:23 PM


All times are GMT +1. The time now is 02:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"