+ Reply to Thread
Results 1 to 4 of 4

Getting the row number of a value in a range

  1. #1
    Registered User
    Join Date
    04-05-2016
    Location
    US
    MS-Off Ver
    2013
    Posts
    20

    Getting the row number of a value in a range

    Hello Guys,

    I'm still learning vba

    I know I can use match() but i'm trying to create a custom match function with two possible matching values. I have the following code but it returns the row number of the sheet. Instead I want it to return the row number of the selected range like how a match() function would. Also how do you make it loop and check row by row to find a match?

    Please Login or Register  to view this content.
    Much appreciated,
    Liz

  2. #2
    Valued Forum Contributor
    Join Date
    02-02-2016
    Location
    Indonesia
    MS-Off Ver
    Office 365
    Posts
    1,004

    Re: Getting the row number of a value in a range

    Maybe this:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-05-2016
    Location
    US
    MS-Off Ver
    2013
    Posts
    20

    Re: Getting the row number of a value in a range

    Quote Originally Posted by Akuini View Post
    Maybe this:
    Please Login or Register  to view this content.
    Thank you so much Akuini! I was able to modify it as needed.

  4. #4
    Valued Forum Contributor
    Join Date
    02-02-2016
    Location
    Indonesia
    MS-Off Ver
    Office 365
    Posts
    1,004

    Re: Getting the row number of a value in a range

    Quote Originally Posted by agzil View Post
    Thank you so much Akuini! I was able to modify it as needed.
    You're welcome & thanks for the reply.

+ 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. Query date range and ref number match to return another reference number
    By 27paul0 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-09-2015, 07:31 AM
  2. [SOLVED] How2 find number in range and return that number or if doesn't exist then the next highest
    By Crawfinator1 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-06-2014, 08:52 AM
  3. [SOLVED] Count number of occurances below a range, within a range, and below a range
    By maacmaac in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-15-2013, 11:36 PM
  4. Counting number of values within a date range equal or great to a number
    By diablo_719 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-15-2013, 02:55 PM
  5. Replies: 1
    Last Post: 07-18-2013, 10:11 AM
  6. Replies: 1
    Last Post: 01-17-2013, 10:44 AM
  7. [SOLVED] Define a range of fixed number of columns, but unlimited number of rows
    By ccopac in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-22-2012, 02:23 PM

Tags for this Thread

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