+ Reply to Thread
Results 1 to 2 of 2

Unable to copy formula down but changing the lookup array every 8 lines

  1. #1
    Registered User
    Join Date
    08-25-2017
    Location
    London, England
    MS-Off Ver
    Office 2010
    Posts
    1

    Unable to copy formula down but changing the lookup array every 8 lines

    Hi All,

    I hope the below shows up ok as I had to add spaces to move it about...

    I need to find a way to summarise our Rota to show who is working each shift each day. This is only part of the Rota. There is 20+ people and it will be for the whole year...

    Date | . JD . | Declan | Stuart | Fernando | ...Chris... | Nathaniel | ... Jez... | Mazen | ...Ben...
    01/01 | EDIT | ....... | ... H ... | ...Early... | 10:00-20 | ... H ... | ...Eve... | Morning | ....
    02/01 | EDIT | Holiday | ...... | ...Mid ..... | ...Late... | ...Early... | ...Eve... | ............ | ........ |


    So need it to look like this for each day:

    01/01 EDIT 08:30-18:30 JD
    01/01 Early 06:00-14:00 Fernando
    01/01 Day 09:00-17:00
    01/01 Morn 10:00-22:00 Mazen
    01/01 DayL 13:00-23:00
    01/01 Mid 14:00-00:00
    01/01 Late 15:00-01:00
    01/01 Eve 16:00-02:00 Jez
    02/01 EDIT 08:30-18:30 JD
    02/01 Early 06:00-14:00 Nathaniel
    02/01 Day 09:00-17:00
    02/01 Morn 10:00-22:00
    02/01 DayL 13:00-23:00
    02/01 Mid 14:00-00:00 Fernando
    02/01 Late 15:00-01:00 Chris
    02/01 Eve 16:00-02:00

    I found that (=IFERROR(HLOOKUP(MATCH(Sheet3!F3,Jan!A5:AO5,0),Jan!$C$3:$AO$4,2,0),"")) works to get the first result.
    But the problem I then had, is when I copy it down the lookup array changes (Jan!A5:AO5) when I need it to stay the same for each day. So I need this to stay the same for 8 lines, then I need to change to Jan!A6:AO6 for the next 8 lines and so on for the rest of the year...

    Is there a way to get this to change every 8 lines?
    Or is there another way to find who does each shift for each day??

    I have tried attaching a copy of what I am working...

    Any help would be much appreciated!!
    Attached Files Attached Files

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Unable to copy formula down but changing the lookup array every 8 lines

    Try

    E3
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    drag down
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

+ 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. Copy list and add spaces between lines on a new tab and add formula on inserted lines
    By theglitch in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2016, 11:35 AM
  2. Unable to Lookup multiple criteria with primary match on cell array
    By KAMA01 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-16-2015, 11:37 AM
  3. Unable to set Formula Array property of the range class
    By Chippi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-10-2014, 03:41 PM
  4. [SOLVED] Unable to get result Using FormulaArray or Evaluate with Array Formula in VBA
    By :) Sixthsense :) in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 05-30-2013, 11:27 PM
  5. [SOLVED] Copy down changing Column Array
    By emesem5 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-24-2012, 09:13 PM
  6. Unable to lookup value from one sheet and copy rows from another (multiple)
    By Lassie1982 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2009, 08:47 AM
  7. Unable to get Array Formula Using Sum Function to work
    By kingjams in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-22-2007, 07:19 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