Using VBA, how do I find the Max value in a table column, based on values in another column?

M McAllister

New Member
Joined
Apr 16, 2013
Messages
15
First, thanks for the help. I tried to research the answer first, but I don't think I was phrasing my question correctly. I've looked at arrays, and worksheet funtions, and I'm not sure how to proceed.

Using Excel 2010.

I have a table with many columns, but for this I'm only using 3 columns: Measure Name, Period, Result Date.

(There are many Measures in the table, with many results. Period is the number of the result (this is the nth result). There is 1 result per result date.

I have a userform which allows the user to select the Measure Name. Based on the Measure name, I want to return the following:

Max Period
Period Count (as verification. It should match max period)
Max Result date

Any guidance is appreciated.

Thank you,
Mathew
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,223,727
Messages
6,174,146
Members
452,547
Latest member
Schilling

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