+ Reply to Thread
Results 1 to 3 of 3

Returning Row Number For a Specific Value

  1. #1
    Registered User
    Join Date
    04-03-2019
    Location
    U.S.A
    MS-Off Ver
    2016
    Posts
    1

    Returning Row Number For a Specific Value

    Hello!

    I'm currently teaching myself how to use VBA at work, as I track large amounts of data regularly. I ran into an issue while trying to collect specific keyword data. I'm trying to grab the row# that has the maximum value for the inserted range.

    This is my code:

    Please Login or Register  to view this content.


    I'm really not familiar (probably very obviously so) with VBA. I learned a bit in an engineering class I took, but that's about it. Any suggestions or ideas on how to better return the values I'm looking for are greatly appreciated.

    1) I have all my maximum, median, and minimum values
    2) I want to find the keywords associated with those maximum, median, and minimum values
    3) Those keywords are located in the same rows as my max, med, min values


    Thanks,
    Simcha
    Last edited by Simcha84; 04-03-2019 at 02:40 PM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Returning Row Number For a Specific Value

    Administrative Note:

    Welcome to the forum.

    I will reply once you comply with the Forum rules.

    However please explain in words exactly what you want done. One step at a time.




    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Last edited by mehmetcik; 04-03-2019 at 01:39 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Returning Row Number For a Specific Value

    Try something like this. Assuming the max value is in AG265

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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. Replies: 1
    Last Post: 03-30-2019, 11:11 AM
  2. Replies: 2
    Last Post: 07-09-2015, 09:52 AM
  3. Returning A Number Against Specific Text
    By Streaky in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-09-2014, 10:02 AM
  4. Replies: 4
    Last Post: 06-04-2014, 04:12 PM
  5. Replies: 6
    Last Post: 01-31-2013, 02:50 AM
  6. [SOLVED] Searching for a specific value on another sheet and returning the row number.
    By Ataraxicatom in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-24-2012, 07:47 PM
  7. Replies: 2
    Last Post: 11-04-2010, 03:15 PM

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