Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15
Default format cells in one column based on value in another column

I want to highligt the value in one cell if the value of another cell in the
same row is null. (Unless value is 0) I want this format for every cell in
one column. How can I do this? Additionally, for another column I want to
do the same thing.

In the example below I want to highlight D1, D4, D5, E1, and E4 because G1
and G4 are null - Rows 2 and 3 would not be highlighted because column G in
those rows have a value. E5, D6, and E6 would not be highlighted because
their value is 0. I want to do this for the entire column of D and E. Do I
have to do this individually in each cell of those column, or is there
another way? What would the formula be, because I tried it for one cell (D1)
using the formula isnull(G1), but it put cell value = "isnull(G1)" instead.

Columns
D E G
23.67 0.33
6.89 0.11 7/16/09
16.07 0.93 7/7/9
14.08 0.92
10 0
0 0

  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,533
Default format cells in one column based on value in another column

Hi
Select both columns, and use this formula in conditional formatting:

=AND($G1="",D1<0)

Regards,
Per

"SuzyQ" skrev i meddelelsen
...
I want to highligt the value in one cell if the value of another cell in
the
same row is null. (Unless value is 0) I want this format for every cell
in
one column. How can I do this? Additionally, for another column I want
to
do the same thing.

In the example below I want to highlight D1, D4, D5, E1, and E4 because G1
and G4 are null - Rows 2 and 3 would not be highlighted because column G
in
those rows have a value. E5, D6, and E6 would not be highlighted because
their value is 0. I want to do this for the entire column of D and E. Do
I
have to do this individually in each cell of those column, or is there
another way? What would the formula be, because I tried it for one cell
(D1)
using the formula isnull(G1), but it put cell value = "isnull(G1)"
instead.

Columns
D E G
23.67 0.33
6.89 0.11 7/16/09
16.07 0.93 7/7/9
14.08 0.92
10 0
0 0


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15
Default format cells in one column based on value in another column

thanks - it worked perfectly

"Per Jessen" wrote:

Hi
Select both columns, and use this formula in conditional formatting:

=AND($G1="",D1<0)

Regards,
Per

"SuzyQ" skrev i meddelelsen
...
I want to highligt the value in one cell if the value of another cell in
the
same row is null. (Unless value is 0) I want this format for every cell
in
one column. How can I do this? Additionally, for another column I want
to
do the same thing.

In the example below I want to highlight D1, D4, D5, E1, and E4 because G1
and G4 are null - Rows 2 and 3 would not be highlighted because column G
in
those rows have a value. E5, D6, and E6 would not be highlighted because
their value is 0. I want to do this for the entire column of D and E. Do
I
have to do this individually in each cell of those column, or is there
another way? What would the formula be, because I tried it for one cell
(D1)
using the formula isnull(G1), but it put cell value = "isnull(G1)"
instead.

Columns
D E G
23.67 0.33
6.89 0.11 7/16/09
16.07 0.93 7/7/9
14.08 0.92
10 0
0 0



  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15
Default format cells in one column based on value in another column

I probably should have included version is 2007

"SuzyQ" wrote:

I want to highligt the value in one cell if the value of another cell in the
same row is null. (Unless value is 0) I want this format for every cell in
one column. How can I do this? Additionally, for another column I want to
do the same thing.

In the example below I want to highlight D1, D4, D5, E1, and E4 because G1
and G4 are null - Rows 2 and 3 would not be highlighted because column G in
those rows have a value. E5, D6, and E6 would not be highlighted because
their value is 0. I want to do this for the entire column of D and E. Do I
have to do this individually in each cell of those column, or is there
another way? What would the formula be, because I tried it for one cell (D1)
using the formula isnull(G1), but it put cell value = "isnull(G1)" instead.

Columns
D E G
23.67 0.33
6.89 0.11 7/16/09
16.07 0.93 7/7/9
14.08 0.92
10 0
0 0

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
Total cells of one column based on the values in another column? Riccol New Users to Excel 10 February 1st 09 09:07 AM
Display cells(text) in one column based on cells which are present inother column [email protected] Excel Discussion (Misc queries) 1 May 12th 08 01:40 PM
Format one column based on another? Needaclerk Excel Worksheet Functions 1 March 3rd 08 03:21 PM
Count number of cells and total in one column, based on another column suffix Pierre Excel Worksheet Functions 5 October 31st 07 12:28 AM
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look [email protected] Excel Discussion (Misc queries) 1 December 27th 06 05:47 PM


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