Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 202
Default Conditional Format Q

I wish to create a conditional format formula that will change the
background colour in a cell to Blue, if the value of another cell is
between to values (which are also detailed)

Cell I want to change is D8 on Sheet1
The dependent cell of D8 is in A8 on Sheet1
The two values which A8 must be between/or equal to is in F7 & H7 on
Sheet2

I just can't get my head around how to construct this

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Conditional Format Q

Select cell D8.
Format/ Conditional Formatting/ Formula Is/
=AND(A8=Sheet2!F7,A8<=Sheet2!H7) if F7 is less than or equal to H7
or
Format/ Conditional Formatting/ Formula Is/
=A8=MEDIAN(Sheet2!F7,A8,Sheet2!H7) more generally
--
David Biddulph

"Seanie" wrote in message
...
I wish to create a conditional format formula that will change the
background colour in a cell to Blue, if the value of another cell is
between to values (which are also detailed)

Cell I want to change is D8 on Sheet1
The dependent cell of D8 is in A8 on Sheet1
The two values which A8 must be between/or equal to is in F7 & H7 on
Sheet2

I just can't get my head around how to construct this

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 202
Default Conditional Format Q

Thanks

Slight issue it says I can't use references to other worksheets in CF

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 834
Default Conditional Format Q

You can if you setup the range in the other sheet as a name
(InsertNameDefine Name...) and use that name in the CF.

HTH

Bob

"Seanie" wrote in message
...
Thanks

Slight issue it says I can't use references to other worksheets in CF



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 202
Default Conditional Format Q

Thanks Bob

I just referenced the relevant cells in the same sheet, Named Range
are a neat trick

One issue, what I am trying to do is give a visual of the 24 Hours in
a day and for each hour show whether the premises is open or not. Thus
in my example above a check for the hour of 7:00am, would be if this
hour is between the stated Open and closing, change the colour of
7:00am cell to "Blue". But what if trading hours straddle 2 days i.e.
Open = 6:30am and closing is next day at 2:00am?

Based on the formula above 7:00am would not be between 6:30am and
2:30am

Any ideas?

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
copy conditional format without using format painter MsConfused Excel Worksheet Functions 2 May 4th 09 07:16 AM
New Conditional Format Overriding Previous Conditional Format Rene Excel Discussion (Misc queries) 3 February 27th 08 06:08 PM
How to create a conditional format that changes the number format tmbo Excel Discussion (Misc queries) 1 August 23rd 06 06:20 AM
Conditional Format - Format Transfer To Chart ju1eshart Excel Discussion (Misc queries) 0 June 1st 06 02:46 PM
copy conditional format to regular format GDC Setting up and Configuration of Excel 3 May 4th 05 09:35 PM


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