Find / Return Max value in a row based on columns

SOVIETBIKER

New Member
Joined
May 11, 2015
Messages
8
Hello, I am working with a table in Access and I want to find the max value within a row from multiple columns. How would I create a calculation for the max column?

ProductCol 1Col2Col3Col4Max
Cherry38538
Banana13545
Apple91489
Orange44545

<tbody>
</tbody>


Thanks!:eek:
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
hello!
you said in Access?
because in Excel is =MAX(B2:E2)
Bye!
 
Upvote 0
hello!
you said in Access?
because in Excel is =MAX(B2:E2)
Bye!


Yes in Access. That is why I am posting this in the Access Forum. The second piece of this puzzle would be to return the column name associated with the highest value.

I know how to do this in Excel INDEX($H$1:$L$1,MATCH(MAX($H2:$L2),$H2:$L2,0))) Now I need to recreate in Access.
 
Upvote 0

Forum statistics

Threads
1,221,869
Messages
6,162,530
Members
451,773
Latest member
ssmith04

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