+ Reply to Thread
Results 1 to 7 of 7

Vba for row number of evaluate and max

  1. #1
    Registered User
    Join Date
    11-17-2009
    Location
    Manchester
    MS-Off Ver
    Excel 2003
    Posts
    27

    Vba for row number of evaluate and max

    Hi all

    Scratched my head with this one most of yesterday before giving up and now seeking your advice!!

    The result of my code needs to select the row of a result using the below vba. The below will currently display the cells value.

    Please Login or Register  to view this content.
    Any help greatly appreciated!!!
    Last edited by stevow; 04-20-2010 at 09:58 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Vba for row number of evaluate and max

    Change the formula to return the ROW value

    Please Login or Register  to view this content.
    Not clear what you want to do with the resulting value... eg

    Please Login or Register  to view this content.

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Vba for row number of evaluate and max

    One way, which will return first occurance.

    Please Login or Register  to view this content.
    DO, doesn't that formula return the first row with a value over 20 rather than the row with the lowest value over 20?
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    11-17-2009
    Location
    Manchester
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Vba for row number of evaluate and max

    Hi Donkey

    I tried this one, it returns Run-TIme error 13

    Any ideas?

    Thanks

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Vba for row number of evaluate and max

    RTE-13 is due to missing bracket.

    Please Login or Register  to view this content.

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Vba for row number of evaluate and max

    Quote Originally Posted by AP
    DO, doesn't that formula return the first row with a value over 20 rather than the row with the lowest value over 20?
    Andy, yes you're quite correct - oversight on my part - stevow please disregard in favour of Andy's MATCH.

  7. #7
    Registered User
    Join Date
    11-17-2009
    Location
    Manchester
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Vba for row number of evaluate and max

    Great stuff - thanks to you both for the input!! My head can now grow hair again!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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