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


I am trying to change the cell color when I get an error. Here is th
vlookup I am using. I want to change to red when I get Not Assigne
Yet. Please help.

=IF(ISERROR(VLOOKUP($G12,'SAS Specialis
Assigned'!$D$4:$E$1288,2,0)),"Not Assigned Yet",VLOOKUP($G12,'SA
Specialist Assigned'!$D$4:$E$1288,2,0)

--
geparksj
-----------------------------------------------------------------------
geparksjr's Profile: http://www.excelforum.com/member.php...fo&userid=2567
View this thread: http://www.excelforum.com/showthread.php?threadid=39336

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Iserror change cell color

Select the cell, then in the menu
format=conditional formatting

In conditional formatting set the condition to

Cell Value is "Not Assigned Yet"

--
Regards,
Tom Ogilvy

"geparksjr" wrote in
message ...

I am trying to change the cell color when I get an error. Here is the
vlookup I am using. I want to change to red when I get Not Assigned
Yet. Please help.

=IF(ISERROR(VLOOKUP($G12,'SAS Specialist
Assigned'!$D$4:$E$1288,2,0)),"Not Assigned Yet",VLOOKUP($G12,'SAS
Specialist Assigned'!$D$4:$E$1288,2,0))


--
geparksjr
------------------------------------------------------------------------
geparksjr's Profile:

http://www.excelforum.com/member.php...o&userid=25677
View this thread: http://www.excelforum.com/showthread...hreadid=393367



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default Iserror change cell color

Take a look at conditional formatting, set up using the Format-Conditional
Formatting or using VBA with


With Range("A1:A20") ' change range as required
.FormatConditions.Delete
.FormatConditions.Add Type:=xlCellValue, Operator:=xlEqual, _
Formula1:="=""Not Assigned Yet"""
.FormatConditions(1).Font.ColorIndex = 3
End With


--
Cheers
Nigel



"geparksjr" wrote in
message ...

I am trying to change the cell color when I get an error. Here is the
vlookup I am using. I want to change to red when I get Not Assigned
Yet. Please help.

=IF(ISERROR(VLOOKUP($G12,'SAS Specialist
Assigned'!$D$4:$E$1288,2,0)),"Not Assigned Yet",VLOOKUP($G12,'SAS
Specialist Assigned'!$D$4:$E$1288,2,0))


--
geparksjr
------------------------------------------------------------------------
geparksjr's Profile:

http://www.excelforum.com/member.php...o&userid=25677
View this thread: http://www.excelforum.com/showthread...hreadid=393367



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Iserror change cell color

Use conditional formatting on the cell with a formula of

=ISERROR(cell_address)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"geparksjr" wrote in
message ...

I am trying to change the cell color when I get an error. Here is the
vlookup I am using. I want to change to red when I get Not Assigned
Yet. Please help.

=IF(ISERROR(VLOOKUP($G12,'SAS Specialist
Assigned'!$D$4:$E$1288,2,0)),"Not Assigned Yet",VLOOKUP($G12,'SAS
Specialist Assigned'!$D$4:$E$1288,2,0))


--
geparksjr
------------------------------------------------------------------------
geparksjr's Profile:

http://www.excelforum.com/member.php...o&userid=25677
View this thread: http://www.excelforum.com/showthread...hreadid=393367



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
Cannot change font color or cell color Bezell Excel Discussion (Misc queries) 2 January 30th 09 06:12 PM
Change tab color based on current color of a cell MarkT Excel Discussion (Misc queries) 0 May 22nd 08 05:46 PM
Excel: Syntax to change cell color based on color of another cell davew18 Excel Worksheet Functions 1 January 4th 07 01:24 PM
How to change the default Border, Font Color, and Cell Color Elijah Excel Discussion (Misc queries) 3 November 2nd 05 11:52 PM
Browse Forms Controls and change TextBox color based on cell color StefanW Excel Programming 2 November 21st 04 07:06 PM


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