+ Reply to Thread
Results 1 to 11 of 11

Wanting to extract specific data from a table of values

Hybrid View

  1. #1
    Registered User
    Join Date
    07-22-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    26

    Wanting to extract specific data from a table of values

    Hi,

    I have attached a spreadsheet which shows data on the left hand side which is automatically download via IRESS (a software program we use) and on the right hand side (highlighted in yellow) is the data I need to extract. I have tried matches, index but it seems to bring up the wrong data and not sure what I have done wrong. I would prefer a non-macro if possible but if it's not, then happy with macro.

    Hope that makes sense, let me know otherwise.

    Your help would be greatly appreciated.
    Attached Files Attached Files
    Last edited by lvsmr2; 07-03-2013 at 11:10 PM.

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Not sure where to start

    after you have complied to moderator request i can provide solution i worked on


    ps there was no highlighting in yellow i could see....
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    07-22-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Not sure where to start

    Hi,

    Apologies for the title issue. I hope I have fixed it?

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Wanting to extract specific data from a table of values

    Try these

    l8
    =VLOOKUP(L7,INDIRECT("C"&MATCH(L6,A:A)&":"&"H"&MATCH(L6,A:A)+25),4,0)

    l9
    =VLOOKUP(L7,INDIRECT("C"&MATCH(L6,A:A)&":"&"H"&MATCH(L6,A:A)+25),5,0)

    l10
    =VLOOKUP(L7,INDIRECT("C"&MATCH(L6,A:A)&":"&"H"&MATCH(L6,A:A)+25),6,0)

  5. #5
    Registered User
    Join Date
    07-22-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Wanting to extract specific data from a table of values

    Hi

    Thanks so much for the reply. I tried the above but I am not getting the correct answers. I get the price for the first month and then 0 for the last two values.

    I think I see the problem. The first two columns of data is what data IRESS dumbs (dates going from today backwads running down or colmns C & D). I then transpose the data next to it with the dates running down. So effectively I am only wanting to retrieve data from Columns E to H. Hope that's not too confusing?
    Last edited by lvsmr2; 07-04-2013 at 12:16 AM.

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Wanting to extract specific data from a table of values

    so you dont want to look up against date in column C but rather column E?

  7. #7
    Registered User
    Join Date
    07-22-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Wanting to extract specific data from a table of values

    Yes please. Sorry for any confusion.

  8. #8
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Wanting to extract specific data from a table of values

    OK Replace "C" with "E" and update accordingly
    L8
    =VLOOKUP(L7,INDIRECT("E"&MATCH(L6,A:A)&":"&"H"&MATCH(L6,A:A)+25),2,0)

    l9
    =VLOOKUP(L7,INDIRECT("E"&MATCH(L6,A:A)&":"&"H"&MATCH(L6,A:A)+25),3,0)

    L10
    =VLOOKUP(L7,INDIRECT("E"&MATCH(L6,A:A)&":"&"H"&MATCH(L6,A:A)+25),4,0)

    just to explain what this is doing
    the indirect section is changing the array on which to lookup data based on the match formula which gives the row number of STOCK
    ie, AAD = 3, ABC = 35

    indirect builds the array with stock row to include the whole section which is 25 rows more than the matched row
    so for AAD
    array = E3:H28

    once the array is set it just a regular vlookup

  9. #9
    Registered User
    Join Date
    07-22-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Wanting to extract specific data from a table of values

    Thanks so much for your help and the explanation. Makes complete sense now. Been a great help.

  10. #10
    Registered User
    Join Date
    07-22-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Wanting to extract specific data from a table of values

    Sorry humdingaling, just one more question. If I was to move those formulas you gave me to another sheet it doesn't work. What do I then need to add to the formula for it to work then?

  11. #11
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Wanting to extract specific data from a table of values

    you would need to reassess the format of the data
    as this solution only works specifically for the example which is why i explained the workings

    basis of the formula is that it looks at l6 for the stock and l7 for the date
    if these are else where you need to change the formula accordingly

+ 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