+ Reply to Thread
Results 1 to 7 of 7

Looking up values contingent upon multiple requirements

  1. #1
    Registered User
    Join Date
    12-01-2012
    Location
    chicago
    MS-Off Ver
    Excel 2007 & Excel 2010
    Posts
    9

    Looking up values contingent upon multiple requirements

    Hello - I am currently trying to figure out a simple way to generate a time series from a spreadsheet that has all of the timeseries data on one sheet. The tricky part is that I have multiple descriptions each for the same day that all have different values depending on which day I am looking for. A very simple example would be as follows:

    Date: Bond: Value:
    today Bond1 1
    today Bond2 2
    today Bond3 3
    today Bond4 4
    today+1 Bond1 5
    today+1 Bond2 6
    today+1 Bond3 7
    today+1 Bond4 8
    today+2 Bond1 9
    today+2 Bond2 10
    today+2 Bond3 11
    today+2 Bond4 12

    So, I'd like to be able to lookup a value for today+1 for bond1 and get the result of "5" then on today+2 for bond1 get the result of "9" I think I should be able to do this with Index(Match( but I don't know how to do the lookup so that I get the "Value" for the whichever bond on whichever day I am looking for. It can't be that hard, I am just unable to find the thread that can help me solve this. Any help is appreciated.

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Looking up values contingent upon multiple requirements

    I think you would need to upload a sample worksheet, showing a sample set of data, AND expected output so we can compare our results to your expected results

    Add a File - click 'Go Advanced' (next to 'Post Quick Reply'), scroll down until you see 'Manage Attachments', click that and select 'Add Files' (top right corner). click 'Select files', find your file, click the file, click 'Upload', click 'Done" bottom right. click 'Submit Reply'
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Registered User
    Join Date
    12-01-2012
    Location
    chicago
    MS-Off Ver
    Excel 2007 & Excel 2010
    Posts
    9

    Re: Looking up values contingent upon multiple requirements

    Example attached. New information is added daily and is in a static format so I can't reformat all the data every time.

    Thanks for the help!
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-01-2012
    Location
    chicago
    MS-Off Ver
    Excel 2007 & Excel 2010
    Posts
    9

    Re: Looking up values contingent upon multiple requirements

    Sorry - In this file I would like to write a formula that says, i want to look up bond1 on 12/1/12 and return the price (100), then bond1 on 12/2/12 and return the price (99.5).

    Thanks again.

  5. #5
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Looking up values contingent upon multiple requirements

    Sorry, I need to see what you expect to see in the workbook, otherwise I have no idea of what you expect to see AND I will not do the WB/Post swap any more...

  6. #6
    Registered User
    Join Date
    12-01-2012
    Location
    chicago
    MS-Off Ver
    Excel 2007 & Excel 2010
    Posts
    9

    Re: Looking up values contingent upon multiple requirements

    Ok - Here is a sample file INCLUDING the results I am trying to get. On the let in the first 4 columns is the data that is added to daily and on the right (which will actually be in a separate sheet) are the parameters I would like to use to locate the data. I am looking for the data contingent upon the date field AND the price or yield field referencing a specific bond.

    Let me know if you need more guidance on what I am looking for. Thanks for your patience.
    Attached Files Attached Files

  7. #7
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Looking up values contingent upon multiple requirements

    See the attached
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    12-01-2012
    Location
    chicago
    MS-Off Ver
    Excel 2007 & Excel 2010
    Posts
    9

    Re: Looking up values contingent upon multiple requirements

    This does accomplish what I request in my simple example, the problem is that in the real example I will change the fields I look up as I will want to look at different relationships. So, in my real workbook I have created dropdowns that have all of the values I may want to pull in, (in this example I would have a dropdown for bonds 1 through 10 and another dropdown for price and yield.) Do you have a way to automate which field is being looked up so that when I flip the dropdown the column it looks at moves as well?

    We're making progress. Thanks.

+ 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