MIN/MAX vs. IF() when cells are blank

ajetrumpet

Banned for being rude
Joined
Apr 12, 2008
Messages
569
Office Version
  1. 365
  2. 2016
  3. 2007
Platform
  1. Windows
all,

is there a justification for using MIN/MAX when I have a max ceiling number for a cell? MIN/MAX functions ignore blank cells, via excel help files. so, using them with a blank cell would require:
Code:
=min(if(isblank(c4), 0, c4), 4000)
whereas a simple IF() is only (which yields a 0 for blank cells):
Code:
if(c4>4000,c4,4000)
that makes MIN/MAX absolutely useless if blank cells are a risk.

an easier way to get around it? or is this set in stone? (I'm looking for ways to write the shortest possible formulas in cells so I don't get confused in the future when I'm looking at my own stuff.

thanks!
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hello,

Have you considered:

<TABLE style="WIDTH: 132pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=176><COLGROUP><COL style="WIDTH: 132pt; mso-width-source: userset; mso-width-alt: 2816" width=176><TBODY><TR style="HEIGHT: 15.75pt" height=21><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: #eaf1dd; WIDTH: 132pt; HEIGHT: 15.75pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" id=td_post_2653128 class=xl63 height=21 width=176>=MIN(0,C4,4000)</TD></TR></TBODY></TABLE>
 
Upvote 0
Hello,

Have you considered:

<TABLE style="WIDTH: 132pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=176><COLGROUP><COL style="WIDTH: 132pt; mso-width-source: userset; mso-width-alt: 2816" width=176><TBODY><TR style="HEIGHT: 15.75pt" height=21><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: #eaf1dd; WIDTH: 132pt; HEIGHT: 15.75pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" id=td_post_2653128 class=xl63 height=21 width=176>=MIN(0,C4,4000)</TD></TR></TBODY></TABLE>

okie doke. so numbers are considered less than blanks?? That's great to know! :)

thanks a lot!
 
Upvote 0
okie doke. so numbers are considered less than blanks?? That's great to know! :)

thanks a lot!

Numbers have a lower value than TEXT.

=100000000000<"x" = TRUE
="x">100000000000 = TRUE

MIN and MAX will ignore empty cells. However, if every referenced cell is empty then both MIN and MAX will return 0.
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,740
Members
452,940
Latest member
rootytrip

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