+ Reply to Thread
Results 1 to 6 of 6

Lookup start and end value based on date range

  1. #1
    Registered User
    Join Date
    04-24-2013
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2007
    Posts
    16

    Lookup start and end value based on date range

    Hello Friends

    I desperately need a solution to get handy summary details from a raw data based on provided date range. Appended is requirement.

    I have 2 sheets in a workbook namely Summary and Data. Data sheet contains the raw data pertaining to day to day business. I want a Summary sheet which should provide me with the details of my business within a period of date range. I have attached the sample sheet for your reference.

    In Summary sheet, if I key “From & To” date in Dispatch Date fields then the below cells should reflect the start & End Order number and also Start & End Invoice number from the Data sheet. I have just manually entered the values to show what I actually need when I key the dates. Please help me with this.

    Thanks in Advance
    Regards,
    Attached Files Attached Files

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Lookup start and end value based on date range

    No problem, we can use LOOKUP for both of these.

    A VLOOKUP in its standard form will find the first occurence, and it's output vector is the Starts of each column.

    A BigNum LOOKUP will find the last occurence, and its output vector is the Ends of each column.

    B10:

    =VLOOKUP($D$4,Data!$A$3:$D$33,2,0)

    C10:

    =LOOKUP(2,1/(Data!$A$3:$A$33<=Summary!$E$4),Data!C3:C33)

    D10:

    =VLOOKUP($D$4,Data!$A$3:$D$33,4,0)

    E10:

    =LOOKUP(2,1/(Data!$A$3:$A$33<=Summary!$E$4),Data!E3:E33)
    Last edited by daffodil11; 02-04-2014 at 06:26 PM. Reason: LOOKUP TO VLOOKUP
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    02-04-2014
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Lookup start and end value based on date range

    Please check the solved excel file.


    I had to remove the "-" in the order numbers to get the max and min values. Let me know if "-" is crucial so that we can think of an alternative

    Indirect is used to make the range dynamic so that even when your source range increase you are good to go. No need to change the range
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-24-2013
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Lookup start and end value based on date range

    Hello daffodil11

    I would like to thank you for the response. The formulaes you have provided to put in cells C10 & E10 works great. However formulaes for B10 & D10 does not fulfill my requirement. These cells should also have the similar formulaes like C10 & E10. I have just changed the data and able to get appropriate values in C10 & E10 however not in B10 & D10. Please re-view the attached data file with modified values.

    Thank you
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-24-2013
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Lookup start and end value based on date range

    Hello Guys

    Could you please look into my query and the latest attached file and suggest the solution for it.

    Thank you

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Lookup start and end value based on date range

    Try in B10:
    Please Login or Register  to view this content.
    D10:
    Please Login or Register  to view this content.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Quang PT

+ 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. [SOLVED] Formula to Lookup value based on date within a date range
    By MHamid in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-26-2013, 02:24 PM
  2. Fill Range based on Start/End Date
    By Regenbui in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-20-2013, 08:02 AM
  3. Function that will create a range based on a start date and end date
    By ckosman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-24-2013, 10:09 PM
  4. Replies: 12
    Last Post: 03-07-2013, 11:02 PM
  5. [SOLVED] Dynamic named range based on a start date and end date
    By Gary Lockton in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-06-2012, 07:26 PM

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