+ Reply to Thread
Results 1 to 2 of 2

Trying to input data from one sheet based on two criterias on another

  1. #1
    Registered User
    Join Date
    09-03-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Trying to input data from one sheet based on two criterias on another

    I have two sheets in my excel workbook. I am trying to figure out a formula that will look at the symbol on sheet 1 (AA) and the date (3/6/2000) and use the information from sheet 2 plug in the info on sheet 1. The date in column A in sheet 1 needs to be the greater than or equal to the date on sheet 2 and has to be the closest date to the date on sheet 1. So even though 2/22/2000 and 2/15/2000 is less than 3/6/2000 the closest date that is less than 3/6/2000 would be 3/1/2000. In this example the input I'm looking for in sheet1 row2 for columns C,D,E,F would be 4,72,3,59

    Sheet 1

    A B C D E F
    1 BuyDate Symbol CompRating GranularRating EarningsQualityRating GranularEarningRating
    2 3/6/2000 AA


    Sheet 2
    A B C D E F
    1 ValuationDate Symbol CompRating GranularRating EarningsQualityRating GranularEarningRating
    2 2/15/2000 AA 5 83 4 67
    3 2/22/2000 AA 4 63 3 55
    3 3/1/2000 AA 4 72 3 59
    4 3/8/2000 AA 5 98 5 89
    5 3/15/2000 AA 2 34 2 21


    My feeble attempt: My thought process was using an =if(and(statement with a vlookup or match but couldn't figure out how to get the date in column A in sheet 1 to say >= the date on sheet 2 column A as well as the closest date that is less than the date on sheet 1.

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Trying to input data from one sheet based on two criterias on another

    Please attached your workbook.
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    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.
    http://www.excelaris.co.uk

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Populate Output sheet based on input data and lookup condition
    By Cool\m/ in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-10-2013, 04:45 AM
  2. [SOLVED] Index / Match from another sheet based on 2 criterias (date & name)
    By chico.corrales in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-10-2013, 10:30 PM
  3. Input Data on Master Sheet based on Sheet Name
    By enna1949 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2013, 03:33 PM
  4. [SOLVED] Macro for copying data from one column in sheet 2 based on two criterias in sheet 1
    By baardings in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-13-2012, 01:50 PM
  5. Centralized Excel sheet and a way to find values based on 3 criterias
    By Tim Georgiev in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-05-2012, 08:17 AM

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