Hi
I have data in a column. I want a VBA code that finds out the maximum vaklue in the range and returns the address of that cell.
Thank You so much in Advance
Hi
I have data in a column. I want a VBA code that finds out the maximum vaklue in the range and returns the address of that cell.
Thank You so much in Advance
Look at this MS Link
http://support.microsoft.com/kb/139574/EN-US
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
PHP Code:
Function AddressMax$(Rg As Range)
Dim Rm As Range
V = Application.Max(Rg)
Set Rm = Rg.Find(V)
If Not Rm Is Nothing Then AddressMax = Rm.Address(0, 0) & " : " & V: Set Rm = Nothing
End Function
Do you like it ? So thanks to click on bottom left star icon « Add Reputation » !
Hi, I have got the max value but still unable to retrieve the cell address. For simplicity sake, please use A1: A100 as the range. I want the code within the subroutine and not use a function. Please advice.
Hi,
Perhaps
![]()
Please Login or Register to view this content.
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star iconbelow the post.
Taking richard's code one step further
![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks