+ Reply to Thread
Results 1 to 7 of 7

Index - results in the last week/following week from 2 tabs

Hybrid View

  1. #1
    Registered User
    Join Date
    10-12-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    4

    Index - results in the last week/following week from 2 tabs

    I'm brand new at working with the INDEX and MATCH functions, but I think they are the key to what I'm trying to do.

    I'm tracking meetings for a number of sales people. I'm using 2 tabs for different types of sales, each tab listing the date of a sales meeting and adjacent, the name of the company. With hundreds of entries now, I wanted to add an INDEX to a summary page that will return results for meetings that happened in the last week and another for those set for the following week.

    I've uploaded a sample spreadsheet. I played around with a few things before posting but couldn't find a close enough match in other threads to really get a handle on this. Thanks in advance for any help!

    example worksheet.xlsx
    Last edited by FDibbins; 11-03-2012 at 02:13 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Index - results in the last week/following week from 2 tabs

    to make this easy, i added a helpe column in sheet2, column A and used =WEEKNUM(B2) to find the week number

    then use this to find what you need. change the +1 to -1 for last week
    =VLOOKUP(WEEKNUM(TODAY())+1,Sheet2!$A$2:$C$6,3,FALSE)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-12-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Index - results in the last week/following week from 2 tabs

    Thanks FDibbins, just got a chance to try this and it looks like this is working to give me the first matching result. In my working sheet, there are multiple matches per week, which was why I was looking at the Index function to be able to return multiple matching results.

    Also, there are some old records from 2011 here, so I set up my helper column with =IF(B34>TODAY()-8,WEEKNUM(B34),) so I will only have true recent results.

    Any ideas on setting this up to return more than just the first match?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Index - results in the last week/following week from 2 tabs

    not sure if this is somethng you could work with (or modify), but i created a pivot table for you. it is based on the week number. take a look and let me know what you think?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-12-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Index - results in the last week/following week from 2 tabs

    FDibbins, that's great; quite helpful! Thank you very much for your help.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Index - results in the last week/following week from 2 tabs

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  7. #7
    Registered User
    Join Date
    10-12-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Index - results in the last week/following week from 2 tabs

    Thanks, will definitely keep both things in mind. I most gladly added to your reputation already. I made sure the thread is solved (still gave me the option in thread tools so I clicked "mark as solved").

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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