Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default can you make a formula color a cell rather than display OT?

I have a worksheet that someone else made and it has what I think is a
conditional formula
=IF(ISNA(VLOOKUP(B9,patrols1,3,FALSE)),"(OT)",(VLO OKUP(B9,patrols1,3,FALSE)))
can this be made to color the cell rather than display (OT)?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default can you make a formula color a cell rather than display OT?

You can use Conditional Formatting, without having to change the formula at
all.

Select the cell
From the Format Menu, choose "Conditional Formatting..."
Set "Cell Value Is" and "equal to"
Enter ="(OT)"
Set your format
Click OK

The (OT) will still be displayed, but if you really don't want that, then
you change both the formula and the Conditional Formatting to "" instead of
"(OT)"



HTH,
Elkar


"Phazer" wrote:

I have a worksheet that someone else made and it has what I think is a
conditional formula
=IF(ISNA(VLOOKUP(B9,patrols1,3,FALSE)),"(OT)",(VLO OKUP(B9,patrols1,3,FALSE)))
can this be made to color the cell rather than display (OT)?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default can you make a formula color a cell rather than display OT?

Yes.

Select the cell with your formula and F2 then edit out the (OT) but leave "" to
return a blank if no data found.

You then would use FormatConditional FormattingCondition1Formula is:

=cellref="" Format to a color you like.


Gord Dibben MS Excel MVP

On Mon, 8 Jan 2007 15:59:00 -0800, Phazer
wrote:

I have a worksheet that someone else made and it has what I think is a
conditional formula
=IF(ISNA(VLOOKUP(B9,patrols1,3,FALSE)),"(OT)",(VL OOKUP(B9,patrols1,3,FALSE)))
can this be made to color the cell rather than display (OT)?


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
Using an offset formula for the reference in a relative reference Cuda Excel Worksheet Functions 6 November 15th 06 05:12 PM
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Deferring conditional formatting? Pheasant Plucker® Excel Discussion (Misc queries) 14 March 17th 06 08:17 PM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM


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