+ Reply to Thread
Results 1 to 2 of 2

Changing offset function to index; first cell working but the rest is not

Hybrid View

  1. #1
    Registered User
    Join Date
    03-03-2021
    Location
    Albuquerque, NM
    MS-Off Ver
    2019
    Posts
    1

    Changing offset function to index; first cell working but the rest is not

    Hi guys,

    I am working on a fairly basic labor tracking sheet that is linked to two separate workbooks. I have attached one of the source workbooks here along with the labor worksheet. The labor worksheet is the destination workbook and the FOH Schedule worksheet is the source workbook. I used the OFFSET function for the cell references but once I realized that the destination workbook would not update unless the source workbooks were open I knew I had to change from the OFFSET function. I changed the formula in A6 on the labor worksheet from OFFSET TO INDEX and it worked just fine, although when I tried to drag the equation down the column the other cells were not functioning and are now displaying #REF!. Can someone help me to adjust the equation so that it works for all of the cells?

    This was the previous formula:

    =IF(OFFSET('[FOH SCHEDULE.xlsx]WEEK 1'!$A$5,(ROW(A1)-1)*2,0)=0,"",(OFFSET('[FOH SCHEDULE.xlsx]WEEK 1'!$A$5,(ROW(A1)-1)*2,0)))

    This is the current formula that is working for the first cell but not the rest:

    =IF(INDEX('[FOH SCHEDULE.xlsx]WEEK 1'!$A$5,(ROW(A1)-1)*2,0)=0,"",(INDEX('[FOH SCHEDULE.xlsx]WEEK 1'!$A$5,(ROW(A1)-1)*2,0)))
    Last edited by ASalazar; 03-04-2021 at 03:08 PM. Reason: Post Example Workbook

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,811

    Re: Changing offset function to index; first cell working but the rest is not

    INDEX expects a range e.g $a$5:$a$100 rather than one cll ($A$5) plus (ROW(A1)-1)*2 will return an index of 0 for the first line.

    post a workbook - HOW TO ATTACH YOUR SAMPLE WORKBOOK: yellow banner at top of threads.

+ 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: 2
    Last Post: 08-28-2019, 07:44 AM
  2. Replies: 1
    Last Post: 06-10-2015, 12:56 PM
  3. Replies: 1
    Last Post: 06-02-2015, 01:38 AM
  4. [SOLVED] changing formula in one cell and auto adjust the rest in col
    By Learning ExL in forum Excel General
    Replies: 10
    Last Post: 04-24-2015, 04:49 PM
  5. [SOLVED] Offset, Index, Match formula with dates inconsistently working
    By David Brown in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-31-2013, 04:12 PM
  6. Replies: 5
    Last Post: 12-19-2012, 11:05 AM
  7. Macro : To find word and Select rest after this cell and delete rest
    By Zortabello in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2010, 08:06 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