Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default Conditional Formatting - Comparative Versus Other Cells

I have a spreadsheet with numbers listed in columns D, F, H & J. I would
like to include conditional formatting so that if D is greater than F, H & J,
it highlights in Green but if D is less than F, H & J, it highlights in Red.
I tried using formula =If((D2F2),(D2H2),(D2J2) as one condition with the
opposite as an additional condition but it highlights the column if it is
greater than any of the other three. I need it to highlight only if it is
greater or less than ALL 3. Any suggestions???
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Conditional Formatting - Comparative Versus Other Cells

If you want to check for all 3, you need to use And, as in:
=and(d2f2,d2h2,d2j2)

Same for less than all three:
=and(d2<f2,d2<h2,d2<j2)

Regards,
Fred.

"readystate" wrote in message
...
I have a spreadsheet with numbers listed in columns D, F, H & J. I would
like to include conditional formatting so that if D is greater than F, H &
J,
it highlights in Green but if D is less than F, H & J, it highlights in
Red.
I tried using formula =If((D2F2),(D2H2),(D2J2) as one condition with
the
opposite as an additional condition but it highlights the column if it is
greater than any of the other three. I need it to highlight only if it is
greater or less than ALL 3. Any suggestions???


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default Conditional Formatting - Comparative Versus Other Cells

Worked great. I needed to account for cells that were equal (at zero) so I
added an = after the < or . So far, this has been giving the correct
results. I appreciate your assistance.

"Fred Smith" wrote:

If you want to check for all 3, you need to use And, as in:
=and(d2f2,d2h2,d2j2)

Same for less than all three:
=and(d2<f2,d2<h2,d2<j2)

Regards,
Fred.

"readystate" wrote in message
...
I have a spreadsheet with numbers listed in columns D, F, H & J. I would
like to include conditional formatting so that if D is greater than F, H &
J,
it highlights in Green but if D is less than F, H & J, it highlights in
Red.
I tried using formula =If((D2F2),(D2H2),(D2J2) as one condition with
the
opposite as an additional condition but it highlights the column if it is
greater than any of the other three. I need it to highlight only if it is
greater or less than ALL 3. Any suggestions???



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Conditional Formatting - Comparative Versus Other Cells

Glad I could help. Thanks for the feedback.

Fred

"readystate" wrote in message
...
Worked great. I needed to account for cells that were equal (at zero) so
I
added an = after the < or . So far, this has been giving the correct
results. I appreciate your assistance.

"Fred Smith" wrote:

If you want to check for all 3, you need to use And, as in:
=and(d2f2,d2h2,d2j2)

Same for less than all three:
=and(d2<f2,d2<h2,d2<j2)

Regards,
Fred.

"readystate" wrote in message
...
I have a spreadsheet with numbers listed in columns D, F, H & J. I
would
like to include conditional formatting so that if D is greater than F,
H &
J,
it highlights in Green but if D is less than F, H & J, it highlights in
Red.
I tried using formula =If((D2F2),(D2H2),(D2J2) as one condition with
the
opposite as an additional condition but it highlights the column if it
is
greater than any of the other three. I need it to highlight only if it
is
greater or less than ALL 3. Any suggestions???




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Conditional Formatting - Comparative Versus Other Cells

Hi,

Try the following formulas:

=D2<MIN(F2,H2,J2)
=D2MAX(F2,H2,J2)

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"readystate" wrote:

I have a spreadsheet with numbers listed in columns D, F, H & J. I would
like to include conditional formatting so that if D is greater than F, H & J,
it highlights in Green but if D is less than F, H & J, it highlights in Red.
I tried using formula =If((D2F2),(D2H2),(D2J2) as one condition with the
opposite as an additional condition but it highlights the column if it is
greater than any of the other three. I need it to highlight only if it is
greater or less than ALL 3. Any suggestions???



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
Formatting cells in a column with conditional formatting? shamor Excel Discussion (Misc queries) 8 May 19th 08 10:11 PM
conditional formatting of cells cell formatting Excel Worksheet Functions 6 August 9th 07 12:33 AM
Selected cells: item count versus summation Neal Zimm Excel Discussion (Misc queries) 3 October 9th 05 02:30 PM
Conditional Formatting Multiple cells based on 2 cells Louis Markowski Excel Worksheet Functions 2 June 1st 05 05:26 PM
Paste link versus allowing two cells equal each other? emerb Excel Discussion (Misc queries) 5 January 4th 05 04:42 PM


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