+ Reply to Thread
Results 1 to 8 of 8

Find the First Instance of a Number

  1. #1
    Forum Contributor
    Join Date
    06-10-2005
    MS-Off Ver
    2007
    Posts
    223

    Find the First Instance of a Number

    Hi,
    I have a number, let's say 100, and i'm trying to find the row of the first instance in column B that is greater or equal to that number.
    Suggestions?
    Thanks,
    Phillycheese

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Find the First Instance of a Number

    Try this:

    Please Login or Register  to view this content.
    Adjust range references to suit your situation.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Contributor
    Join Date
    06-10-2005
    MS-Off Ver
    2007
    Posts
    223
    The formula tells me the count of how many cells down in the range the data point is, but I'm not sure how to modify the formula to have it give me the row() of the data point.

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Find the First Instance of a Number

    Well, if your data range doesn't begin in Row_1,
    then....perhaps something like this:

    Please Login or Register  to view this content.
    Does that help?

  5. #5
    Forum Contributor
    Join Date
    06-10-2005
    MS-Off Ver
    2007
    Posts
    223
    I realized that the parenthesis I put into my message didn't work. I'm looking to get the actual row, as in cell reference row, not the number of rows relative to a particular cell. Sorry if I didn't explain it correctly.

    What I'm ultimately trying to accomplish is this: I have daily returns for 1 year and I'm showing the top 25 worst drawdowns, as well as how many days it takes to recover. I need this to help me get the recovery period.

    Thanks again.

  6. #6
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Find the First Instance of a Number

    I believe the last formula I posted *does* return the row number of the matching item. Are you getting different results?

  7. #7
    Forum Contributor
    Join Date
    06-10-2005
    MS-Off Ver
    2007
    Posts
    223
    Ron,
    The formula you provided does in fact work. There was some operator failure on this end.
    Thanks,
    Phillycheese

  8. #8
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Find the First Instance of a Number

    I'm glad you got the formula to work.

+ 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