Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default conditional formatting in an IF function?

I have a set of specified values in two columns in worksheet 1: M1 = 1, M2 =
2, M3 = 3 etc... in Worksheet 2, i have two columns: Class (M1 to M10) and
Value (1 to 10). How do I, in Worksheet 2, highlight the cells that don't
match the specified value of the class (ie. M1 = 5)?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default conditional formatting in an IF function?

In Sheet1,
you have the 2 col base references in A1:B1 down, eg:
M1 1
M2 2
etc

Then in Sheet2,
you have data like this in A1:B1 down, eg:
M2 2
M1 2
etc

Select cols A & B (with A1 active), then apply CF using Formula Is:
=$B1<VLOOKUP($A1,INDIRECT("'Sheet1'!A:B"),2,0)
Format to taste OK out. This should return the desired CF highlights, eg
the 2nd row in the sample data above: M1 2 would appear conditionally
formatted as it differs from the base ref in Sheet1: M1 1.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:21,000 Files:370 Subscribers:66
xdemechanik
---
"Melvin Tang" wrote:
I have a set of specified values in two columns in worksheet 1: M1 = 1, M2 =
2, M3 = 3 etc... in Worksheet 2, i have two columns: Class (M1 to M10) and
Value (1 to 10). How do I, in Worksheet 2, highlight the cells that don't
match the specified value of the class (ie. M1 = 5)?

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 or IF function Danny Excel Worksheet Functions 3 February 26th 08 12:10 AM
Conditional formatting with IF function Michael Excel Discussion (Misc queries) 1 May 29th 07 05:38 AM
Help on a function with Conditional Formatting nemadrias Excel Worksheet Functions 1 August 10th 06 08:55 PM
Conditional Formatting (IF function) Neo1 Excel Worksheet Functions 5 March 2nd 06 10:38 PM
Conditional formatting and If function? dond Excel Discussion (Misc queries) 4 July 22nd 05 01:19 PM


All times are GMT +1. The time now is 06:38 PM.

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

About Us

"It's about Microsoft Excel"