Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Conditional formatting based on different sheets

How can I make a cell change colour based on and IF statement.

I want one cell to go red if the value in another cell is negative, but the
two cells are on different sheets so I cant use conditional formatting.

Thank you.

Richard
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Conditional formatting based on different sheets

Various ways, here are a couple

On the sheet you want to CF your cells, include a helper that simply refers
to your If formula on the other sheet

Name your If formula cell, eg "myIf"
then for your CF, Formula Is, =myIf=123

change the 123 as required, or simply =myIf if the formula evaluates to true
(eg a number)

Of course another way would be to replicate your If formula on the CF sheet

Regards,
Peter T


"VoxBox-Richard" wrote in message
...
How can I make a cell change colour based on and IF statement.

I want one cell to go red if the value in another cell is negative, but

the
two cells are on different sheets so I can't use conditional formatting.

Thank you.

Richard



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Conditional formatting based on different sheets

Hi,

You can cheat.

Enter your conditional format formula on the sheet you want it to apply to.
For example this in C1 of Sheet 1 looking at A1 of Sheet 4
=Sheet4!A16

Now in sheet 1 in the cell you want to conditional format, point to that cell
=$C$1=TRUE

Mike


"VoxBox-Richard" wrote:

How can I make a cell change colour based on and IF statement.

I want one cell to go red if the value in another cell is negative, but the
two cells are on different sheets so I cant use conditional formatting.

Thank you.

Richard

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default Conditional formatting based on different sheets

=INDIRECT("Sheet2!A1")10

as an example

--
__________________________________
HTH

Bob

"VoxBox-Richard" wrote in message
...
How can I make a cell change colour based on and IF statement.

I want one cell to go red if the value in another cell is negative, but
the
two cells are on different sheets so I can't use conditional formatting.

Thank you.

Richard



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 In and Across Sheets KHW Excel Discussion (Misc queries) 0 May 27th 10 09:53 PM
Conditional Formatting Based of Cells Based on Data Entry in anoth Jim Excel Discussion (Misc queries) 3 November 11th 08 11:52 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 PM
Conditional Formatting across Sheets Corey Excel Worksheet Functions 5 January 5th 07 01:12 PM


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