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

I have a workbook comprised of several worksheets. All of the worksheets
lookup data from a single worksheet using the VLOOKUP function. How do I
code an IF THEN statement that will highlight a cell Red if it returns a
certain value and leaves the cell White if any other value is returned?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default Logic Programming

Hi,

The formula itself can't change the format of the cell, but you can use
Conditional Formatting to accomplish that:

Needs Sage Advice wrote:
I have a workbook comprised of several worksheets. All of the
worksheets lookup data from a single worksheet using the VLOOKUP
function. How do I code an IF THEN statement that will highlight a
cell Red if it returns a certain value and leaves the cell White if
any other value is returned?


http://www.contextures.com/xlCondFormat01.html

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]

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
Excel 2007-macro programming logic for data validation Derek Megyesi Excel Discussion (Misc queries) 2 February 1st 10 01:34 AM
More if then logic DJ Excel Worksheet Functions 2 October 8th 09 05:40 PM
More if then logic DJ Excel Worksheet Functions 2 October 8th 09 05:37 PM
LOGIC H0MELY Excel Discussion (Misc queries) 6 June 4th 08 10:41 PM
Programming Logic robot[_2_] Excel Programming 2 September 12th 04 06:50 PM


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