+ Reply to Thread
Results 1 to 5 of 5

Identify first instance of a value in a list

  1. #1
    Registered User
    Join Date
    04-19-2012
    Location
    England
    MS-Off Ver
    Excel 2011 (mac)
    Posts
    2

    Identify first instance of a value in a list

    Hi,
    I've come across an issue that I really need some help with. I've got some data which follows an upwards trend but with a high frequency oscillation on top of the signal (due to noise in the measurement equipment). I'd like to look at the signal and identify the first instance when the data in column A reaches 13 and return the corresponding value in column B.

    I've tried using a LOOKUP but if my array is substantially large then the LOOKUP doesn't seem able to identify the correct cell. I'm stuck with using a large array as the worksheet is used to process many sets of data and the data can shift around so the array needs to be large enough to always capture up to the point where the data passes 13.

    Are there any alternative ways of doing this which will give me the correct result?

    I've attached some sample data and my LOOKUP result to this post. By scrolling through the data I can see that Column A reaches 13 in cell A241 however the LOOKUP seems to be returning the values from row 266.

    Any help would be massively appreciated!

    Thank you,

    Alasdair

    Test.xls
    Last edited by alasdair.young; 04-19-2012 at 08:46 AM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Please help me identify first instance of a value in a list

    A simple way would be to use a helper column, say Column C
    In C2
    Please Login or Register  to view this content.
    Drag/Fill Down
    Then in E2
    Please Login or Register  to view this content.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Please help me identify first instance of a value in a list

    An array formula alternative

    =INDEX(B2:B5000,MATCH(TRUE,A2:A5000>=13,0)) entered with Ctrl+Shift+Enter

    change ranges to suit your actual data

  4. #4
    Registered User
    Join Date
    04-19-2012
    Location
    England
    MS-Off Ver
    Excel 2011 (mac)
    Posts
    2

    Re: Please help me identify first instance of a value in a list

    Thank you both for your quick and clear responses. Both solutions work perfectly!

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Please help me identify first instance of a value in a list

    I avoided using an array formula because it was indicated that the data range was large, and other calculations have to be performed.
    Generally speaking, in my opinion, avoiding arrays in large sheets is preferable, they can at times slow a workbook dramatically.

    However this Dynamic version of Cutters' formula might be useful,it only calculates the used rows,and the data can be any length.
    In E2
    Please Login or Register  to view this content.
    Confirm with Ctrl+Shift+Enter not just Enter

+ 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