Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Dreaming
 
Posts: n/a
Default Formatting a cell with a function (IF statement)

I have a matrix of values in sheet 1, and the cells in sheet 2 refer to sheet
1 with:
=IF('Sheet1'!A11400,"X"," ")
but instead of outputting an X in the cell in sheet 2, I would like the cell
to turn red if the corresponding cell in sheet 1 is 1400.

Help!
--
Cheerio

  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

You need to use conditional formatting to accomplish this. Because the
criteria is established on a different sheet you cannot directly reference
Sheet1!A1 in the formula needed. This could make copying the conditional
formatting to other cells in the "matrix" slightly more complicated.

Select the cell in Sheet2 that you want to format based on
=IF('Sheet1'!A11400

Goto FormatConditional Formatting
Formula is: =INDIRECT("Sheet1!A1")1400
Click the Format button and select the style(s) you want
OK out

Another way is to name the cell on Sheet1

InsertNameDefine
Name: Sh1A1
Refers to: =Sheet1!$A$1

Then, the cf Formula is: =Sh1A11400

Biff

"Dreaming" wrote in message
...
I have a matrix of values in sheet 1, and the cells in sheet 2 refer to
sheet
1 with:
=IF('Sheet1'!A11400,"X"," ")
but instead of outputting an X in the cell in sheet 2, I would like the
cell
to turn red if the corresponding cell in sheet 1 is 1400.

Help!
--
Cheerio



  #3   Report Post  
Vasant Nanavati
 
Posts: n/a
Default

I assume you want the background to turn red.

Skip the formula. Using the Name Box, assign a range name (say "Rng") to
Sheet1!A1. With the cell in Sheet2 selected, use:

Format | Conditional Formatting | Formula Is | =Rng1400 | Format | Patterns
| Cell Shading | Color | Red | OK | OK

--

Vasant



"Dreaming" wrote in message
...
I have a matrix of values in sheet 1, and the cells in sheet 2 refer to
sheet
1 with:
=IF('Sheet1'!A11400,"X"," ")
but instead of outputting an X in the cell in sheet 2, I would like the
cell
to turn red if the corresponding cell in sheet 1 is 1400.

Help!
--
Cheerio



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
ADDRESS function - dynamic input cell claytorm Excel Discussion (Misc queries) 1 June 28th 05 02:05 PM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM
Hiding a function value in a cell until function used Paul Smithson Excel Worksheet Functions 1 February 25th 05 06:19 PM
Function to determine if any cell in a range is contained in a given cell [email protected] Excel Worksheet Functions 3 February 7th 05 04:19 PM
Function making cell really "empty" Arvi Laanemets Excel Worksheet Functions 2 January 31st 05 05:23 PM


All times are GMT +1. The time now is 01:46 AM.

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"