+ Reply to Thread
Results 1 to 8 of 8

Drag Formula to every other cell but refer to consecutive columns in another sheet

  1. #1
    Registered User
    Join Date
    08-01-2012
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2010
    Posts
    4

    Post Drag Formula to every other cell but refer to consecutive columns in another sheet

    Hello,

    I am working towards getting information from other sheets in a workbook all to one sheet for mass emailing Staffing for the week.

    Sheet 1 : Has the names of People that gets populated with the roles for the day. The labels are name vs date

    Name Mon Tues Wed Thurs
    Kristen A B C D
    Brett B D A
    Patty C A B
    Ken D D A B


    Sheet 2: Shows the Shift name vs Time of shift start

    Role Mon Tues Wed Thurs
    A 5:00 6:00 4:00 3:00
    B 2:00 4:00 3:00 8:00
    C 11:00 14:00 18:00 21:00
    D 12:00 13:00 19:00 20:00

    Sheet 3: I want to Combine all of the information together into one sheet for emailing. I have used an Index/Match Function to show the roles each person has on a certain day. In the next Column I use another index/match function to show the start time. When I try and fill the two column across the row it skips days of the week

    What I want
    Mon Mon Tues Tues Wed Wed Thurs Thurs
    Kristen A 5:00 B 4:00 C 18:00 D 20:00
    Brett
    Patty
    Ken

    What I see when I try and drag the two columns across
    Mon Mon Tues Tues Wed Wed Thurs Thurs
    Kristen A 5:00 C 18:00

    Since the formula is being dragged across rows it is skipping every other Column in sheet 1

    Is there a way to fix this problem or make the auto fill not skip rows?

  2. #2
    Registered User
    Join Date
    08-01-2012
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Drag Formula to every other cell but refer to consecutive columns in another sheet

    Here is the real spreadsheet example
    Attached Files Attached Files

  3. #3
    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
    52,917

    Re: Drag Formula to every other cell but refer to consecutive columns in another sheet

    use this formula in C3, and copy cown and across where needed...

    =INDEX('START TIME'!$A$1:$F$7,MATCH(EMAIL!$D3,'START TIME'!$A$1:$A$7,0),MATCH(EMAIL!C$1,'START TIME'!$A$1:$F$1,0))

    you could add some error trapping if you want to eliminate the N/A/s
    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

  4. #4
    Registered User
    Join Date
    08-01-2012
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Drag Formula to every other cell but refer to consecutive columns in another sheet

    Hello,
    Thanks!
    That formula worked to make the times match the role letter, but It didn't grab the correct role letter for each person.
    I need a formula that would work in A2 that can be dragged to retrieve the correct information from sheet 1.

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Drag Formula to every other cell but refer to consecutive columns in another sheet

    Try this in B3 dragged down - then copied to the other columns

    Please Login or Register  to view this content.
    Last edited by Cutter; 08-01-2012 at 08:37 PM. Reason: Amended cell ref for formula

  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
    52,917

    Re: Drag Formula to every other cell but refer to consecutive columns in another sheet

    in B3, use this...

    =INDEX(PEOPLE!$A$1:$F$7,MATCH(EMAIL!$A3,PEOPLE!$A$1:$A$7,0),MATCH(EMAIL!C$1,PEOPLE!$A$1:$F$1,0))

  7. #7
    Registered User
    Join Date
    08-01-2012
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Drag Formula to every other cell but refer to consecutive columns in another sheet

    It all works now!!
    Thank You both for all of your help!!!

    Have a day

  8. #8
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Drag Formula to every other cell but refer to consecutive columns in another sheet

    You're welcome. Thanks for the 'star tap'.

+ 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