Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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??? |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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??? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formatting cells in a column with conditional formatting? | Excel Discussion (Misc queries) | |||
conditional formatting of cells | Excel Worksheet Functions | |||
Selected cells: item count versus summation | Excel Discussion (Misc queries) | |||
Conditional Formatting Multiple cells based on 2 cells | Excel Worksheet Functions | |||
Paste link versus allowing two cells equal each other? | Excel Discussion (Misc queries) |