Compare two cell values show lowest

SOLTEC

Board Regular
Joined
Feb 11, 2015
Messages
195
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I want to compare two numeric cell values in A1 & B1 and show the lowest of the 2 in C1

Any help would be greatly appreciated. Thank you in advance.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Thank you so much for that answer. It works great, now how would I add a background color of cell say green or yellow based on the column the value is from, please?
 
Upvote 0
Thank you so much for that answer. It works great, now how would I add a background color of cell say green or yellow based on the column the value is from, please?
you can try conditional formatting like this

Book1
ABC
1247324
2734141
3255025
4359035
5361010
Sheet1
Cell Formulas
RangeFormula
C1:C5C1=MIN(A1,B1)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C1:C5Expression=C1=A1textNO
C1:C5Expression=C1=B1textNO
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,378
Members
448,955
Latest member
BatCoder

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