+ Reply to Thread
Results 1 to 9 of 9

Pulling multiple rows from seperate tab

  1. #1
    Registered User
    Join Date
    11-25-2013
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003 or Excel 2007
    Posts
    5

    Pulling multiple rows from seperate tab

    Hi,

    I am looking to create a planner for my team to use with regards to holiday and bank holidays, basically a calender in excel with the rota thrown in too. My actual spreadsheet has five tabs which the user will use buttons to navigate from one sheet to another.

    I have put together another spreadsheet (attached) and provided only the tab that I am having an issue with. Basically on the 'Home' tab it shows todays date, I want a formula that searches the 'Planner' tab for that date and returns the four rows below to the 'Home' page so that at a glance the person using the planner can see what is happening on that day. I have played around with it, but I'm a bit rusty on excel so can't find anything on google that will help.

    Any advice would be appreciated. :)
    Attached Files Attached Files
    Last edited by caroline_cb; 11-25-2013 at 11:25 AM. Reason: Updated document

  2. #2
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Pulling multiple rows from seperate tab

    Hi Caroline
    You can use this formula to return the four line values one under the other:

    =HLOOKUP(B3,Planner!5:14,2,FALSE)& CHAR(10) &HLOOKUP(B3,Planner!5:14,3,FALSE)& CHAR(10) &HLOOKUP(B3,Planner!5:14,4,FALSE)& CHAR(10) &HLOOKUP(B3,Planner!5:14,5,FALSE)

    Good luck.
    Tony

  3. #3
    Registered User
    Join Date
    11-25-2013
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003 or Excel 2007
    Posts
    5

    Re: Pulling multiple rows from seperate tab

    Tony,

    I have just tried this and it does work, but only if the date you are searching for appears on the top row of the range within the HLOOKUP. I hope this makes sense, so if you are searching for a date in December it doesn't work if November is still present on the sheet.
    Last edited by caroline_cb; 11-26-2013 at 06:35 AM. Reason: updating

  4. #4
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Pulling multiple rows from seperate tab

    Hi Caroline
    That will teach me not to try and provide solutions without testing them properly .
    I have done it with VBA code sitting behind the worksheet. To view the code right click on the sheet tab name and select View Code.
    Hope this works ok for you.
    Good luck.
    Tony

  5. #5
    Registered User
    Join Date
    11-25-2013
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003 or Excel 2007
    Posts
    5

    Re: Pulling multiple rows from seperate tab

    Tony,

    Thanks for this, it works fine

    Slight problem though, I'm not sure what the numbers in the reference mean so that I can copy it over to my spreadsheet. Any chance you can let me know......I promise to leave you along then

  6. #6
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Pulling multiple rows from seperate tab

    Hi Caroline
    In cell A3 of the Home sheet this formula simply picks out the month and year of the value in B3. It is used by the code to determine which month you are searching for. Is this what you are refe3rring to or is it the code you are looking at?
    Tony

  7. #7
    Registered User
    Join Date
    11-25-2013
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003 or Excel 2007
    Posts
    5

    Re: Pulling multiple rows from seperate tab

    Tony,

    Thanks for coming back to me

    Its the actual code, I have worked on spreadsheets before, but its been that long that I can't remember it really. The spreadsheet I sent you isn't the one I am actually using so I have to copy your code from there to my sheet.

    It is helpful and I really appreciate your help, but I'm not sure what the numbers in the code are so not sure if I will need to change them when copying the code over. Whenever I have worked on spreadsheet its not been using R and C only letters and numbers.

  8. #8
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Pulling multiple rows from seperate tab

    Hi Caroline
    The R and C numbers refer to the Row and Column numbers on the Planner sheet for each month you are searching for. Are you able to post an actual copy of your master workbook (hide the names) and I will change the code for you.
    Tony

  9. #9
    Registered User
    Join Date
    11-25-2013
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003 or Excel 2007
    Posts
    5

    Re: Pulling multiple rows from seperate tab

    Tony,

    Sorry it's been ages, I have been really busy at work and have not had chance to check for a reply. Please see attached the actual file that i will be using

    Thanks,

    Caroline
    Attached Files Attached Files

+ 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. Replies: 6
    Last Post: 01-26-2014, 07:49 PM
  2. Splitting rows with multiple columns into seperate rows for time points.
    By mbracha in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-16-2013, 10:06 AM
  3. pulling multiple date ranges from 1 cell into multiple rows?
    By 13lack13lade in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-01-2013, 11:50 PM
  4. Replies: 0
    Last Post: 03-21-2011, 05:40 PM
  5. [SOLVED] Seperate Merged Cells with multiple rows?
    By Gats in forum Excel General
    Replies: 1
    Last Post: 04-18-2006, 04:10 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