+ Reply to Thread
Results 1 to 6 of 6

Return an entire row of data from a Date

  1. #1
    Registered User
    Join Date
    09-12-2014
    Location
    Milyon Kerynes
    MS-Off Ver
    2013
    Posts
    3

    Return an entire row of data from a Date

    Hi Guys,

    Im looking at making a register for my kennel business.

    I will basically have a database of all the dogs that have been and are to be checking in, This is the first sheet.

    Sheet 2 ,I then basically am trying to add little drop down box that allows me to choose a date and return all the dogs that are currently here (according to date) and any that are booked in after the date.

    I have had a go using the vlookup and the index functions but i am a bit past with all the techno lingo and would greatly appreciate any help. If the drop down box or calendar selction method on sheet 2 isn't feasable, is it possible to have a =Today() function which automatically returns all the dogs in from todays date and onwards???

    I had a go at some formulas but thought best to take them out of the workbook so as not to confuse anything.

    Cheers guys
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    08-15-2014
    Location
    St.Petersburg, Russia
    MS-Off Ver
    MSO Excel 2010
    Posts
    20

    Re: Return an entire row of data from a Date

    It is much simplier to use Filter or Advanced Filter, why not? Or it is necessary to get data to Sheet2?

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

    Re: Return an entire row of data from a Date

    I'd have to agree with hohlick, a macroed advanced filter would probably be the best solution.

    I wish I had gone that route.

    I took the long way, and re-formated your dates into actual date (yours are all text and need to be multiple x 1)
    Then, I put a date in A1, inserted the Microsoft Date Calendar found in the Developer tab, linked it to A1, and made A2 = A1*1 (which converts the calendar's date output into a meaningful value)

    The Calendar dropdown is then expanded to cover up A1:A2 for aesthetic purposes.

    A7 is then a version of the INDEX(SMALL to return rows with date ranges around the date chosen in the drop down.

    A7: =IFERROR(INDEX(Sheet1!A$8:A$23,SMALL(IF(Sheet1!$A$8:$A$23<=Sheet2!$A$2,IF(Sheet1!$B$8:$B$23>=Sheet2!$A$2,ROW($A$1:$A$16))),ROW(A1))),"")

    This is an array formula confirmed with Ctrl+Shift+Enter, and then the formula is drug over as far as H and down 50 or so rows.
    Attached Files Attached Files
    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!

  4. #4
    Registered User
    Join Date
    09-12-2014
    Location
    Milyon Kerynes
    MS-Off Ver
    2013
    Posts
    3

    Re: Return an entire row of data from a Date

    Thanks guys,

    hohlick i did think that but i need multiple dates to show? from the date selected onwards

    Daffodil thank you for the quick response, thats great, just one thing; i wanted it to show from the date chosen onwards, not backwards. Not sure if this is a simple remedy.

    eg. 09/09/14 chosen

    09/09/14
    10/09/14
    11/09/14

    to appear not before 09.

    Thanks again

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

    Re: Return an entire row of data from a Date

    It's a simple fix, but you said you wanted to list any dogs currently in. Wouldn't dogs that check in prior to 9/9/14 be listed if their check out date was 9/9 or greater?

  6. #6
    Registered User
    Join Date
    09-12-2014
    Location
    Milyon Kerynes
    MS-Off Ver
    2013
    Posts
    3

    Re: Return an entire row of data from a Date

    Sorry yes, dogs that are currently in and all future bookings

+ 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. Search an entire column for a value, return entire row.
    By jdsmith1895 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-06-2012, 12:53 PM
  2. Replies: 4
    Last Post: 12-04-2012, 04:45 PM
  3. Search entire column, return entire row
    By Chris Gwynne in forum Excel General
    Replies: 0
    Last Post: 08-04-2011, 11:21 AM
  4. cannot get IF statment to return data on entire column
    By techspec in forum Excel General
    Replies: 4
    Last Post: 05-13-2010, 07:32 PM
  5. How do I return an entire row of data from a reference array?
    By tvmodica in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-07-2005, 05:06 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