Min/Max Function

Littlemalky

Board Regular
Joined
Jan 14, 2011
Messages
223
Can you not use the Min/Max functions in Access the same way as Excel? For example, I'm trying to replicate a formula I have in Excel that is structured like this. But it is kicking back saying I have the wrong number of arguments. Can I not use comma separators?

L1_PAYOUT: Max(0,(Min(0.9,[%_TO_QUOTA])-0.7)*(2275/4)*100)*[QTR_COMPLETION]
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
It is important to understand that Access and Excel are very different beasts by nature; one is not an extension of the other.
Access is a relational database program. Excel is not. Therefore, they do not have all the same functions and commands.

Access does have MAX and MIN functions, but they have a very different meaning. They are aggregate functions. If you have ever used Pivot Tables in Excel, it is more like that.
So, it would be the MAX or MIN of a single FIELD (column), not of two items that you are trying to compare.

For what you are trying to do, you would probably use something like an Immediate If statement (IIF) in Access, which is like and IF statement in Excel.
Similar to Excel, you can nest IIF statements in Access.
 
Upvote 0

Forum statistics

Threads
1,221,544
Messages
6,160,428
Members
451,645
Latest member
androidmj

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