+ Reply to Thread
Results 1 to 6 of 6

Finding the address of the cell that houses the maximum value in a column range

  1. #1
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Hollidaysburg, Pa
    MS-Off Ver
    Excel 2010
    Posts
    398

    Finding the address of the cell that houses the maximum value in a column range

    Hello all,
    • I have a values in Cell (I15:I50)
    • I want to know the cell address of the cell that has MAX(I15:I50) in my vba code

    On my excel-sheet I wrote
    Please Login or Register  to view this content.
    What I need ?
    How can i get to make my VBA code to display the address of the cell that houses the maximum value in the range I15:I50 ?

    I tried :

    Please Login or Register  to view this content.
    This portion of the code "rng = WorksheetFunction.Application.ADDRESS(MATCH(MAX(I:I),I:I,0),9)" is in red and I am unable to understand why


    another code I tried

    Please Login or Register  to view this content.
    gives me a run-time error-91 saying "Object Variable or With Block variable not set"
    Last edited by subbby; 03-05-2019 at 12:27 PM. Reason: Solved

  2. #2
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Finding the address of the cell that houses the maximum value in a column range

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    2,026

    Re: Finding the address of the cell that houses the maximum value in a column range

    Or just evaluate the formula:
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Hollidaysburg, Pa
    MS-Off Ver
    Excel 2010
    Posts
    398

    Re: Finding the address of the cell that houses the maximum value in a column range

    Quote Originally Posted by ByteMarks View Post
    Or just evaluate the formula:
    ]
    Short and simple. This worked like a charm. Thank you very much.

  5. #5
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Hollidaysburg, Pa
    MS-Off Ver
    Excel 2010
    Posts
    398

    Re: Finding the address of the cell that houses the maximum value in a column range

    Quote Originally Posted by nigelog View Post
    Please Login or Register  to view this content.
    Thank you very much Nigelog. It worked fine and gave me the desired output. Appreciate your time .

  6. #6
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Finding the address of the cell that houses the maximum value in a column range

    Glad to help but I do enjoy far shorter alternatives,
    I had never seen this before
    Please Login or Register  to view this content.
    but looked it up in the function ribbon and it made total sense

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Finding Maximum from Cell to Last Entry in each column : Using For..Next
    By subbby in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-16-2018, 02:08 PM
  2. Finding an adjacent value after finding a maximum value on another column
    By VanCricken in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-10-2016, 11:58 AM
  3. Replies: 7
    Last Post: 10-07-2015, 03:01 PM
  4. Finding the cell address and value in a range
    By nyxcirce in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-30-2014, 10:59 PM
  5. [SOLVED] Finding a value within the defined column address of a specific range
    By mike ryan in forum Excel General
    Replies: 5
    Last Post: 07-05-2012, 06:03 AM
  6. finding Cell Address of the last cell that has a value in a range
    By amitmodi_mrt in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 09-20-2009, 11:26 PM
  7. Finding the cell address of maximum value
    By Siddhartha in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-14-2007, 04:07 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1