Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Conditional formatting using lookup

I have a sheet to which I would like to apply conditional formatting.
The formatting to be applied is dependant on the value of a cell in
each row. That cell will contain a value based on a list (which I have
set up using validation).

The Validation list contains one column that has the format name and
the adjacent cell in each column will contain a sample format which the
user can change by applying different font, colour background etc. I
could restrict the formats that may be applied to say Bold, size,
shading, or such like if that would make it possible to only use
conditional formatting as opposed to using VBA.

I am doing this so that the user can choose what each format will look
like by applying the format to the cell adjacent to the format list.
This is so that when printing the sheet the user can differentiate
certain rows. I can't use colour only because the user may not have a
colour printer nor can I apply arbitrary font or background patterns
because what may work for me may be unreadable to another user.

Is it Possible to do this using conditional formatting only?
If so how can I determine the formats to apply based on the lookup
value?

If this is not possible using conditional formatting can it be done
using a function to a VBA procedure? A sample would be great!

My sheet is as follows.
Row 1 contains headings
Column 1 on each row from 2 on, contains the format name to apply.
The content of the rest of the row is irrelevant.


The format/sample list can be at the end of the main content. The
example blow has three different formats, In the actual sheet I need
(at least) seven different format.

Thanks oin advance,
Cheers
TonyS.


e.g.

A B C
1 RowFormat Month Category
2 Format1 Aug Communications
3 Format2 Aug Communications
4 Format1 Aug Investigation
5 Format1 Aug Resolution
6 Format3 Aug Appraisal
7 Format3 Aug Communications
8 Format2 Aug Communications
9 Format2 Aug Communications
10 Format2 Aug Communications


Formats
20 Format1 Sample
21 Format2 Sample
22 Format3 Sample

The samples could be formatted say as;
Format 1 Sample text: Blue text old font
Format 2 Sample text: Brown text with dotted shading
Format 3 Sample text: white text on blue background.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Conditional formatting using lookup

Select the range you want to apply the conditional formatting.

Say A2:X9999

And with the activecell in row 2, you can use:
format|conditional formatting
formula is
=$a2="format 1"
(apply the formatting you want)

And add another condition and do the similar things.

By anchoring the formula--the $ in front of the column letter, excel will adjust
the formula (by changing the row), but never change the column to check.

wrote:

I have a sheet to which I would like to apply conditional formatting.
The formatting to be applied is dependant on the value of a cell in
each row. That cell will contain a value based on a list (which I have
set up using validation).

The Validation list contains one column that has the format name and
the adjacent cell in each column will contain a sample format which the
user can change by applying different font, colour background etc. I
could restrict the formats that may be applied to say Bold, size,
shading, or such like if that would make it possible to only use
conditional formatting as opposed to using VBA.

I am doing this so that the user can choose what each format will look
like by applying the format to the cell adjacent to the format list.
This is so that when printing the sheet the user can differentiate
certain rows. I can't use colour only because the user may not have a
colour printer nor can I apply arbitrary font or background patterns
because what may work for me may be unreadable to another user.

Is it Possible to do this using conditional formatting only?
If so how can I determine the formats to apply based on the lookup
value?

If this is not possible using conditional formatting can it be done
using a function to a VBA procedure? A sample would be great!

My sheet is as follows.
Row 1 contains headings
Column 1 on each row from 2 on, contains the format name to apply.
The content of the rest of the row is irrelevant.

The format/sample list can be at the end of the main content. The
example blow has three different formats, In the actual sheet I need
(at least) seven different format.

Thanks oin advance,
Cheers
TonyS.

e.g.

A B C
1 RowFormat Month Category
2 Format1 Aug Communications
3 Format2 Aug Communications
4 Format1 Aug Investigation
5 Format1 Aug Resolution
6 Format3 Aug Appraisal
7 Format3 Aug Communications
8 Format2 Aug Communications
9 Format2 Aug Communications
10 Format2 Aug Communications

Formats
20 Format1 Sample
21 Format2 Sample
22 Format3 Sample

The samples could be formatted say as;
Format 1 Sample text: Blue text old font
Format 2 Sample text: Brown text with dotted shading
Format 3 Sample text: white text on blue background.


--

Dave Peterson
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 Rich Excel Discussion (Misc queries) 2 April 1st 06 11:27 AM
Conditional Formatting when inserting a row zahoulik Excel Worksheet Functions 2 January 7th 06 04:01 PM
Conditional Formatting Ant Excel Worksheet Functions 4 December 8th 05 09:44 PM
cannot use ISEVEN or ISODD functions in Conditional Formatting Scott Paine Excel Worksheet Functions 6 December 6th 05 10:44 PM
Conditional Formatting in Excel Help Please..... Willie T Excel Discussion (Misc queries) 4 February 9th 05 03:28 PM


All times are GMT +1. The time now is 05:28 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"