Highlight column on minimum condition

sachin483

Board Regular
Joined
Mar 31, 2015
Messages
157
Office Version
  1. 2019
Platform
  1. Windows
i have 2 column from which i have arrived minimum value of 2 column like that i have around 65000 thousands row from which i want to highlighted the cell column from which minimum condition has arrived and if the value of both the column is similar then the first column should get highlighted

col 1col2RESULT
184117681841176818411768
648013117011801701180
286769921709802170980
415368415368415368
464270436827043682704
1598838910032910032
3417113164431644
4153686480131415368
286769936827042867699
415368410032410032
464270444427044442704
159883816188381598838

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
You don't necessarily need the RESULT column. For the conditional formatting, you should choose "Use a formula to determine this formula is true:" and assuming your col 1 heading is in cell A1, the formula should be =IF(AND(A2=MIN($A2:$B2),$A2<>$B2),TRUE,IF(AND($A2=$B2,COLUMN()=COLUMN($A$2)),TRUE,FALSE))

The range your conditional formatting applies to should be the full range of your data; I've deleted the $ signs in the above formula to allow it to follow down the full range.
 
Last edited:
Upvote 0
thanks for the formula as per the formula if the result is true then it is column 1 and for false its column 2 right
 
Upvote 0

Forum statistics

Threads
1,215,197
Messages
6,123,585
Members
449,108
Latest member
rache47

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