Conditional Formatting Help

itsgrady

Board Regular
Joined
Sep 11, 2022
Messages
138
Office Version
  1. 2021
Platform
  1. Windows
  2. MacOS
Need to highlight the adjacent cell to the right of the cell that is min in a given row. E4, G4, I4, k4, M4, O4, Q4, S4, U4 are the cells where the minimum value are. F4, H4, J4, L4, N4, P4, R4, T4, V4 (text cells) are the adjacent cells to highlight when the minimum value is found.

Example - if E4 is the minimum in the row. E4 and F4 should be highlighted.

Thanks for the help.
 
Do the following:

1. Select the range F4:V4
2. Go to Conditional Formatting, click on "New Rule", and select the "Use a formula to determine which cells to format" option.
3. Enter the following formula:
Excel Formula:
=MIN($E4,$G4,$I4,$K4,$M4,$O4,$Q4,$S4,$U4)=E4
4. Click on the Format button, go to the Fill tab, and choose your desired formatting color.
5. Click OK twice

Here is the proof-of-concept:
1740683955528.png
 
Upvote 0
Building on @Joe4's formula but highlighting both cells maybe:
Excel Formula:
=MIN($E4,$G4,$I4,$K4,$M4,$O4,$Q4,$S4,$U4)=IF(ISODD(COLUMN()),E4,D4)
Or
Excel Formula:
=MIN($E4,$G4,$I4,$K4,$M4,$O4,$Q4,$S4,$U4)=IF(ISNUMBER(E4),E4,D4)
 
Upvote 0
Do the columns have headings?
If so, can we see what they are?
 
Upvote 0
Do the columns have headings?
If so, can we see what they are?

Do the following:

1. Select the range F4:V4
2. Go to Conditional Formatting, click on "New Rule", and select the "Use a formula to determine which cells to format" option.
3. Enter the following formula:
Excel Formula:
=MIN($E4,$G4,$I4,$K4,$M4,$O4,$Q4,$S4,$U4)=E4
4. Click on the Format button, go to the Fill tab, and choose your desired formatting color.
5. Click OK twice

Here is the proof-of-concept:
View attachment 122799
Thanks for helping. Can it also not look zero values or blank cells?
 
Upvote 0
Do the columns have headings?
If so, can we see what they are?
I’m
Building on @Joe4's formula but highlighting both cells maybe:
Excel Formula:
=MIN($E4,$G4,$I4,$K4,$M4,$O4,$Q4,$S4,$U4)=IF(ISODD(COLUMN()),E4,D4)
Or
Excel Formula:
=MIN($E4,$G4,$I4,$K4,$M4,$O4,$Q4,$S4,$U4)=IF(ISNUMBER(E4),E4,D4)
Thanks for helping. Can it also not look zero values or blank cells?
 
Upvote 0
Try:
Excel Formula:
=LARGE($E4:$V4,COUNTIFS($E4:$V4,">0"))=IF(ISNUMBER(E4),E4,D4)
With E4 to V4 selected
 
Upvote 0
Solution
Firstly, please don't overload your threads with repeats.
For example, you have quoted post #4 four times and you have said "Can it also not look zero values or blank cells?" three times. Each would only need to be done once.

F4, H4, J4, L4, N4, P4, R4, T4, V4 (text cells)

Example - if E4 is the minimum in the row. E4 and F4 should be highlighted.

Can it also not look zero values or blank cells?
Given all of the above, you could also try this. I have assumed the "$" columns would not contain negative numbers. If they could contain negative numbers and you want those included in the "min" calculation then change the ">" sign in the formula to "<>"
I have also assumed that column D does not contain numerical values. If it does, or could, an adjustment could be made to the formula.

itsgrady.xlsm
DEFGHIJKLMNOPQRSTUV
3SO $SO FEW $EW FHE $H FSI $SI FAT $AT FCW $CW FV6 $V6 FV7 $V7 FV8 $V8 F
422ae3im0q3uy3cg
5bfjnrvzdh
65c5g5k5o5s5w5a5e5i
70d0hlp0t66x0b0f0j
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E4:V7Expression=SUM(D4:E4)=AGGREGATE(15,6,$E4:$V4/($E4:$V4>0),1)textNO
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top