MIN and MAX on conditions.. loosing hair

dallenk

New Member
Joined
Jan 20, 2017
Messages
23
Office Version
  1. 365
Platform
  1. Windows
Hey everyone.. I've gotten a ton of help from reading posts here, but I can't seem to figure this one out. I have built a spreadsheet where I can enter quotes from several vendors and it will calculate the best pricing.. but I can't seem to figure out how to get two values based on a couple conditions.

1 - I needed to get the min price including zero values.. done easily with =MIN(F12:F15) no problem there.. but then i found i needed to account for the situation when I don't have all four of the vendors filled in.. maybe I only obtained 3 quotes instead of 4.. this throws off my numbers.

So is it possible to only look for the min value IF the vendor name is also filled in? I've been looking at the new(ish) minifs functions, or trying to see if I can use a vlookup..


1st screenshot shows it working fine as long as all 4 vendors are used.


-- removed inline image ---






this is where I am stumped. if I don't have vendor4 filled in, how can I get excel to ignore the cell in the range?



As soon as I saw that, I also see the HI/LOW spread on the price differences are also not working right.
I'm sure once I can see how to ignore a cell in the min, I'll be able to fix the HI/LOW spread as well.

Thanks !!
 
Last edited by a moderator:

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Ok that's strange.. i can't find a way to edit my post.. apparently I can't paste screenshots so I'll link to them..

4.png


3.png
 
Upvote 0
Hi,

Try this
=MIN(IF(I3:I8<>"",J3:J8)) after entering the formula press Ctrl+Enter

This is an array formula after pressing Ctrl+shift it will look like {=MIN(IF(I3:I8<>"",J3:J8))}
 
Upvote 0
Holy crap,, it was that simple? I was trying to way over-complicate it.
Thank you very much.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,728
Members
452,939
Latest member
WCrawford

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