+ Reply to Thread
Results 1 to 8 of 8

Need help combining data + vlookup multiple values + Pivot table

Hybrid View

  1. #1
    Registered User
    Join Date
    08-07-2011
    Location
    america
    MS-Off Ver
    Excel 2003
    Posts
    18

    Need help combining data + vlookup multiple values + Pivot table

    Hi, I'm working with this data:
    Date Time Open High Low Close Volume
    1/3/2012 9:30:00 AM 127.77 127.88 127.73 127.84 1332008
    1/3/2012 9:31:00 AM 127.84 127.88 127.812 127.84 712398
    1/3/2012 9:32:00 AM 127.84 127.90 127.81 127.88 529695

    1/4/2012 9:31:00 AM 127.26 127.31 127.24 127.3 554619
    1/4/2012 9:32:00 AM 127.3 127.37 127.28 127.31 549311
    1/4/2012 9:33:00 AM 127.31 127.33 127.22 127.24 697424

    ---
    What I want to do is get the lowest, highest, the opening and closing price and the time that is associate with them. For the above example I want to find a formula that would return:

    1/3/2012 Open= 127.77@9:30AM, High= 127.90@9:32AM, Low= 127.73@9:30AM and Close= 127.88@9:32AM
    1/4/2012 Open= 127.26@9:30AM, High= 127.37@9:32AM, Low= 127.22@9:33AM and Close= 127.24@9:33AM
    ----------

    What I started doing was, I created a pivot point for the entire data. I was easily able to use the "min" and "max" function in pivot tables to find the high and low. However I was not able to retrieve the time associated with them. I was thinking maybe I should go back to the data source and "combine" the time cell and the value together? Also, I was not able to retrieve the Opening value and Closing value using pivot table because I don't know how to get the "beginning" and "ending value" for a given value. Because the opening and ending value always shows up in the beginning and end of the data that I have.

    Thanks for your help!

  2. #2
    Valued Forum Contributor Sadath31's Avatar
    Join Date
    03-02-2011
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Office 365
    Posts
    452

    Re: Need help combining data + vlookup multiple values + Pivot table

    Hi
    Instead of Pivot table I have used formula.
    See the attached workbook helps.

    Sadath
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor Sadath31's Avatar
    Join Date
    03-02-2011
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Office 365
    Posts
    452

    Re: Need help combining data + vlookup multiple values + Pivot table

    Hi
    sorry, attached here again the Excel 2003 ver.

    Sadath
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-07-2011
    Location
    america
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Need help combining data + vlookup multiple values + Pivot table

    Genius! Woah, thank you very much. It works! I appreciate your help

  5. #5
    Registered User
    Join Date
    08-07-2011
    Location
    america
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Need help combining data + vlookup multiple values + Pivot table

    Hey buddy,

    Thanks for your help on my thread. For some reason every time I change your formula to adjust to more cells, I keep getting #N/A or #VALUE.

    For example of Open, I changed your formula from:
    =INDEX(C2:C15,MATCH(J2&"@"&L2,A2:A15&"@"&B2:B15,0))

    To:
    =INDEX(C2:C1012878,MATCH(J2&"@"&L2,A2:A1012878&"@"&B2:B1012878,0))

    or:
    =INDEX(C:C,MATCH(J2&"@"&L2,A:A&"@"&B:B,0))

    Do you know what I'm doing wrong?

  6. #6
    Registered User
    Join Date
    08-07-2011
    Location
    america
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Need help combining data + vlookup multiple values + Pivot table

    Book3.xlsx
    I notice that when I downloaded your file, all of your formulas have "{" at the beginning and "}" at the end. And if i try to edit your formula, the formula does not work. I tried to even type the formula but it doesnt work.
    Thanks

  7. #7
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Need help combining data + vlookup multiple values + Pivot table

    when you edit the formula the { and } will disapear, you need to confirm the formula with Ctrl+Shift+Enter, this will cause the formula to be treated as an array.
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  8. #8
    Registered User
    Join Date
    08-07-2011
    Location
    america
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Need help combining data + vlookup multiple values + Pivot table

    Nvm... with the info that you provided in your spreadsheet.. and the help of google, i figured it out and learned a lot more about excel!

+ 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