+ Reply to Thread
Results 1 to 4 of 4

Using VLOOKUP return as row number in function

  1. #1
    Registered User
    Join Date
    03-16-2009
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    5

    Using VLOOKUP return as row number in function

    Hi, this is quite a random request, but I am wondering about the best syntax for using a VLOOKUP return as the row number in a CORREL function. I want to create rolling correlations from today's date. I have a VLOOKUP function that will return the row number corresponding to the chosen day's date.

    I now need to use that returned value in the CORREL function. That is, I would like it to look something like:

    =CORREL($E$VLOOKUP(today-90,AD5:AE3143, 2):$E$VLOOKUP(today,AD5:AE3143, 2),$E$VLOOKUP(today-90,AD5:AE3143, 2):$E$VLOOKUP(today,AD5:AE3143, 2))

    Does this make sense? When I enter this, I am told that I have an error. Is there a better way to nest this vlookup?

    Thanks so much for your help and please let me know if I can clarify anything!

    Michael
    Last edited by NBVC; 03-16-2009 at 04:13 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: Using VLOOKUP return as row number in function

    Try:

    Please Login or Register  to view this content.
    is "today" a named cell representing today's date? If so, you know there is a built in function: Today() that you can replace that with?
    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 NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using VLOOKUP return as row number in function

    Or better (non-volatile):

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-16-2009
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Using VLOOKUP return as row number in function

    Thank you so much - solved!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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