+ Reply to Thread
Results 1 to 2 of 2

Return ALL relative positions of a value within an array

  1. #1
    Registered User
    Join Date
    08-19-2007
    Posts
    1

    Return ALL relative positions of a value within an array

    I am looking for a way to return ALL relative positions of a value within an array. The 'match' formula allows to determine the first position of that value...but I need to determine the row number of all the instances of the value.

    Can anyone help. Thank you so much!

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Perhaps build your own function (UDF).

    In a general module in the relevant workbook, put in the code

    Please Login or Register  to view this content.
    Say your data was in the range A2:A9, and contained some "a" values. Enter the function
    =getpos(A2:A9,"a")
    and it will return the row numbers of the relevant matches.

    HTH

    rylo

+ 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