+ Reply to Thread
Results 1 to 15 of 15

Need to get a sheet to Lookup values corresponding to names from sheets sorted by date.

  1. #1
    Registered User
    Join Date
    10-19-2013
    Location
    United Kingdom
    MS-Off Ver
    MS office 2003
    Posts
    25

    Need to get a sheet to Lookup values corresponding to names from sheets sorted by date.

    Hi,

    I Have a spreadsheet separated by days (i.e. one sheet = one day). Each sheet contains a lot of names in column A, a value in column B corresponding to the name, and another value in column C.

    I now need to create a single sheet that shows all of these values across 30 days for just 15 of the names, and was thinking there must be a way of using a LOOKUP function : By which I can tie a whole column on my output sheet, to look in the sheet that corresponds to that date, and then it will find the values for that name if it is on that sheet.

    I have attached an example of how I'd need the data to look, along with some example sheets to show how the data would be formatted (very basic example of course).


    This download should work : Excel example.xls

    If not, I uploaded it here : http://speedy.sh/3rH6z/Excel-example.xls


    Any help would be extremely appreciated
    Last edited by ostego; 06-23-2014 at 09:11 AM.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Need to get a sheet to Lookup values corresponding to names from sheets sorted by date

    link is not working
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Need to get a sheet to Lookup values corresponding to names from sheets sorted by date

    I could not open the attachment... I am planning to use the indirect function to retrieve from each tab the info. which of the 2 values b or c, do you want to summarize?

  4. #4
    Registered User
    Join Date
    10-19-2013
    Location
    United Kingdom
    MS-Off Ver
    MS office 2003
    Posts
    25

    Re: Need to get a sheet to Lookup values corresponding to names from sheets sorted by date

    http://speedy.sh/3rH6z/Excel-example.xls

    Does that links work?

    I want both data values A and B for each. The main thing I need though is for it to Look up and filter out the info using the names

    The data I want to look like this (i have added in the dots so it formats correctly)

    ..........01/06....02/06.....03/06
    Orange....1.........8..........2
    ..............2.........9..........1

    Apple .....2.....................4
    .............3.....................5

    Pear.......3........9
    .............4........8


    ----------------

    The sheets for those days would be like :

    Sheet1 : 01/06

    Fruit A B
    Orange 1 2
    Lemon 3 4
    Apple 2 3
    G.Fruit 5 5
    Cherry 3 3
    Pear 3 4


    Sheet 2: 02/06

    Fruit A B
    Orange 8 9
    Cherry 7 8
    Banana 4 8
    G.fruit 3 5
    Pear 9 8


    Sheet 3 : 03/06

    Fruit A B
    Orange 2 1
    S.berry 5 3
    Tomato 3 4
    R.berry 5 5
    Apple 4 5
    Kiwi 2 1
    Last edited by ostego; 06-23-2014 at 09:16 AM.

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need to get a sheet to Lookup values corresponding to names from sheets sorted by date

    I downloaded the xls file.

    Why not add all data on 1 sheet (e.g. with an macro).

    After that you can use a filter or pivot table to analyze the data.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  6. #6
    Registered User
    Join Date
    10-19-2013
    Location
    United Kingdom
    MS-Off Ver
    MS office 2003
    Posts
    25

    Re: Need to get a sheet to Lookup values corresponding to names from sheets sorted by date

    Quote Originally Posted by oeldere View Post
    I downloaded the xls file.

    Why not add all data on 1 sheet (e.g. with an macro).

    After that you can use a filter or pivot table to analyze the data.
    That is what I was originally thinking. However, the issue I came across was getting a Macro that would recognise the date each time, and if the name wasn't found under that date, as some days there will be no value for the person under a certain date as they will not have been working.

    I am pretty bad with macros though to be honest as well as pivot tables, so if someone could help me out there I would be equally overjoyed!

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need to get a sheet to Lookup values corresponding to names from sheets sorted by date

    To get you started:

    The macro below will add all data in sheet summary.

    After that you can use another macro to get all info in rows instead of columns.

    See the attached file.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need to get a sheet to Lookup values corresponding to names from sheets sorted by date

    This code will re-arange the data, so you could easy use a pivot table.

    See the attached file.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Need to get a sheet to Lookup values corresponding to names from sheets sorted by date

    I didn't download your worksheet as it was not uploaded here itself in the forum. So just considered your sample data in post#4.
    I have used a formula in B2 on Summary sheet.

    In B2
    Please Login or Register  to view this content.
    and then copy across and down.
    You can increase the sheets with dates but also you need to list the sheet names in row1 and you can copy the same formula across to get the desired values.
    You can adjust the range used in the formula as per your requirement.
    See if this helps.
    Attached Files Attached Files
    Last edited by sktneer; 06-23-2014 at 10:15 AM.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  10. #10
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Need to get a sheet to Lookup values corresponding to names from sheets sorted by date

    Please Login or Register  to view this content.
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need to get a sheet to Lookup values corresponding to names from sheets sorted by date

    and an example of the pivot table.

    See the attached file.
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Need to get a sheet to Lookup values corresponding to names from sheets sorted by date

    this code mimics the color pasted on the days as per your sample
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    10-19-2013
    Location
    United Kingdom
    MS-Off Ver
    MS office 2003
    Posts
    25

    Re: Need to get a sheet to Lookup values corresponding to names from sheets sorted by date

    Quote Originally Posted by sktneer View Post
    I didn't download your worksheet as it was not uploaded here itself in the forum. So just considered your sample data in post#4.
    I have used a formula in B2 on Summary sheet.

    In B2
    Please Login or Register  to view this content.
    and then copy across and down.
    You can increase the sheets with dates but also you need to list the sheet names in row1 and you can copy the same formula across to get the desired values.
    You can adjust the range used in the formula as per your requirement.
    See if this helps.
    Quote Originally Posted by rcm View Post
    Please Login or Register  to view this content.
    Both of your methods work fantastically for what I am trying to do!

    Thanks a lot This forum is such a life/time-saver!!

    Cheers guys!

  14. #14
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Need to get a sheet to Lookup values corresponding to names from sheets sorted by date

    You're welcome. Thanks for the feedback and rep.

  15. #15
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Need to get a sheet to Lookup values corresponding to names from sheets sorted by date

    You're welcome from my side too. Glad I could be of help...

+ 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: 3
    Last Post: 09-08-2012, 09:23 AM
  2. [SOLVED] Macro copying values and sheet names of all activated sheets
    By Rosixks in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-07-2011, 06:16 PM
  3. [SOLVED] Lookup values in multipul sheets and show value in another sheet
    By Bernie Deitrick in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 04:05 AM
  4. Lookup values in multipul sheets and show value in another sheet
    By Kim in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  5. Lookup values in multipul sheets and show value in another sheet
    By Kim in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-17-2005, 09:05 AM

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