Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default conditional formatting and VLookup


Hi folks,

Quick question...I have a column in a spreadsheet using VLookup to
place "X" in certain cells if a number in a corresponding column are
within a certain range. I would like to break this up to color the X's
in this column based on the value in their corresponding cell (ie, if
the value in the original cell is between 100,000-499,999, the X in
this column should be blue, if the value is between 500,000 and
1,000,000 the X should be pink, etc.).

Here is my code right now:
=IF(ISNA(VLOOKUP($G5&"-"&"INTERNAL CONNECTIONS MNT",'TX
(8)'!$CF:$CG,2,FALSE))," ","X")

The "conditional formatting" option doesn't seem to work because it
doesn't recognize the VLookup value, only the "X" in the cell.
Is there any way to break up this code by value of the VLookup number
to color the X in the new column?

I've been trying to get the simple [COLOR] command to work but I can't
figure out where to place it in order to integrate it with the rest of
this. Any help/advice from you fabulous smart people would be
appreciated.

Best,
Katherine


--
KatherineMolina
------------------------------------------------------------------------
KatherineMolina's Profile: http://www.excelforum.com/member.php...o&userid=36033
View this thread: http://www.excelforum.com/showthread...hreadid=558243

  #2   Report Post  
Posted to microsoft.public.excel.programming
ADG ADG is offline
external usenet poster
 
Posts: 76
Default conditional formatting and VLookup

Hi Katherine

You can use formulas in conditional formating eg the below tests the values
in A1 but can be used in any cells conditional formating, these also copy
down OK

=AND(A1100000, A1 <500000)

Then set your format colour

then you can add a second test and so on

give this a try

Regards

--
Tony Green


"KatherineMolina" wrote:


Hi folks,

Quick question...I have a column in a spreadsheet using VLookup to
place "X" in certain cells if a number in a corresponding column are
within a certain range. I would like to break this up to color the X's
in this column based on the value in their corresponding cell (ie, if
the value in the original cell is between 100,000-499,999, the X in
this column should be blue, if the value is between 500,000 and
1,000,000 the X should be pink, etc.).

Here is my code right now:
=IF(ISNA(VLOOKUP($G5&"-"&"INTERNAL CONNECTIONS MNT",'TX
(8)'!$CF:$CG,2,FALSE))," ","X")

The "conditional formatting" option doesn't seem to work because it
doesn't recognize the VLookup value, only the "X" in the cell.
Is there any way to break up this code by value of the VLookup number
to color the X in the new column?

I've been trying to get the simple [COLOR] command to work but I can't
figure out where to place it in order to integrate it with the rest of
this. Any help/advice from you fabulous smart people would be
appreciated.

Best,
Katherine


--
KatherineMolina
------------------------------------------------------------------------
KatherineMolina's Profile: http://www.excelforum.com/member.php...o&userid=36033
View this thread: http://www.excelforum.com/showthread...hreadid=558243


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 & Vlookup Yogin Excel Discussion (Misc queries) 0 July 30th 08 02:43 PM
Vlookup and Conditional Formatting exceluser Excel Worksheet Functions 1 December 31st 07 03:35 PM
VLookup & Conditional Formatting together Mike Excel Worksheet Functions 4 December 19th 07 12:00 PM
vlookup with conditional formatting pm Excel Worksheet Functions 1 January 4th 07 05:32 PM
VLookup for Conditional Formatting Alicia Excel Discussion (Misc queries) 2 December 7th 06 12:49 AM


All times are GMT +1. The time now is 08:12 PM.

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"