Formula To Return Lowest Of Two Calculations

litrelord

Well-known Member
Joined
Dec 1, 2002
Messages
519
Hi All,

I have a formula in Access which evaluates two options and I need to return the lowest of the two numbers e.g.

MIN(Result1/i],Result2)

I would guess I need to have the two values entered into the MIN function as an array but I've not found a way to do this (although this is probably me not searching for the correct terms).

I could write a UDF easily enough but I'd like to avoid the overhead of using VBA if possible as it always seems to slow things down too much.

Thanks

Nick
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
If you are talking about doing this in a query, how about a simple IF statement?

Code:
IIF([Field1]<[Field2],[Field1],[Field2])
 
Upvote 0
If you are talking about doing this in a query, how about a simple IF statement?

Code:
IIF([Field1]<[Field2],[Field1],[Field2])

But that would be way too simple surely! :D

Not sure whey I constantly overcomplicate things but thank you, this works perfectly.

Nick
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,719
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