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?

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Product[/TD]
[TD]Col 1[/TD]
[TD]Col2[/TD]
[TD]Col3[/TD]
[TD]Col4[/TD]
[TD]Max[/TD]
[/TR]
[TR]
[TD]Cherry[/TD]
[TD]3[/TD]
[TD]8[/TD]
[TD]5[/TD]
[TD]3[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]Banana[/TD]
[TD]1[/TD]
[TD]3[/TD]
[TD]5[/TD]
[TD]4[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]9[/TD]
[TD]1[/TD]
[TD]4[/TD]
[TD]8[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]4[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]


Thanks!:eeek:
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,223,275
Messages
6,171,121
Members
452,381
Latest member
Nova88

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