+ Reply to Thread
Results 1 to 7 of 7

Data lookup in sinusoid function

  1. #1
    Registered User
    Join Date
    08-15-2011
    Location
    Holland
    MS-Off Ver
    Excel 2003
    Posts
    3

    Data lookup in sinusoid function

    Hello, I have an excel question I've been puzzling on the last few days:

    I have values that I have scatter plotted into a chart and gave a sinusoid function.
    The y-axis has values ranging from -10000 to 10000, and the X-axis is time in hours.
    The thing is, I want to calculate the time difference between two peaks of my chart. This can be estimated from the figure, but I want the exact data.

    What I've done so far:
    I've estimated in which range of cells the peak is (y-value) and looked this up with the Max function. Example: Max(H111:H237). This gives me a value. I want to know which cell corresponds with this value.
    Somehow Ctrl+F doesn't help me find this value, so I have to search for it manually in the column, so I can see which cell from the X-axis corresponds with it.
    This all is quite cumbersome, and I just know there is a function for this in excel. The lookup function hasn't helped either, because the data needs to be in ascending order for that to work.

    Thanks for the help in advance!
    Last edited by FireMan.EXE; 08-15-2011 at 05:31 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Data lookup in sinusoid function

    Did you try VLOOKUP? The data doesn't need to be in any specific order.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Data lookup in sinusoid function

    How noisy is the data?
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    08-15-2011
    Location
    Holland
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Data lookup in sinusoid function

    I have tried Vlookup, but I can't get it to work. Gives me a reference error.

    VLOOKUP(MAX(S111:S237),R111:S237,18) or Vlookup(11489.23,R111:S237,18) both give this error

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Data lookup in sinusoid function

    You need:

    =INDEX(R111:R237,MATCH(MAX(S111:S237),S111:S237,0))

    because your lookup column is to the right of the resultant column so basic VLOOKUP can't be used....

  6. #6
    Registered User
    Join Date
    08-15-2011
    Location
    Holland
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Data lookup in sinusoid function

    Quote Originally Posted by NBVC View Post
    You need:

    =INDEX(R111:R237,MATCH(MAX(S111:S237),S111:S237,0))

    because your lookup column is to the right of the resultant column so basic VLOOKUP can't be used....
    You sir, are a genius. That's something I would've never come up with myself. Thanks a bunch.

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Data lookup in sinusoid function

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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