I have a formula in a workbook that was made for me by someone a decade ago : =OFFSET($A$37,0,MIN(IF($K39:NC39>0,COLUMN($K$37:$NC$37)-1)))
Row 37 is a date range row...(i.e. 1-1-19 through 12-31-19)......rows 39 on down will contain values (man hours)
What it does is, if i plug in a value under a specific date, that date shows up in the cell the formula is in. For example the formula is in A39.....I plug in 18.5 in cell M39 under a column that has the date of 5-1-19 in cell M37. When I plug in the 18.5 then cell A39 populates with 5-1-19. So the formula works as it should.
I have two questions about it.
1- What i am not understanding is why is A37 in the formula???? There is nothing in cell A37. A37 is nothing the work sheet and no other formula references A37..its a useless cell in this workbook.
2 - I transferred this formula to a different work work book which utilizes the same formula but different rows and columns.....this is how the formula looks in the new work book (exactly the same formula..just different row and column references) =OFFSET($A$2,0,MIN(IF($T30:ZZ30>0,COLUMN($T$2:$ZZ$2)-1)))...(row 30 being my man hour row and row 2 being my date range row,
I put the A2 ref in there to match the A37.....the ONLY thing I can see the purpose of A37 is its the same row that the date range is on....so since row 37 is the date range row in the original formula I made A2 the reference in the new workbook formula since row 2 is the date range row.
Row 37 is a date range row...(i.e. 1-1-19 through 12-31-19)......rows 39 on down will contain values (man hours)
What it does is, if i plug in a value under a specific date, that date shows up in the cell the formula is in. For example the formula is in A39.....I plug in 18.5 in cell M39 under a column that has the date of 5-1-19 in cell M37. When I plug in the 18.5 then cell A39 populates with 5-1-19. So the formula works as it should.
I have two questions about it.
1- What i am not understanding is why is A37 in the formula???? There is nothing in cell A37. A37 is nothing the work sheet and no other formula references A37..its a useless cell in this workbook.
2 - I transferred this formula to a different work work book which utilizes the same formula but different rows and columns.....this is how the formula looks in the new work book (exactly the same formula..just different row and column references) =OFFSET($A$2,0,MIN(IF($T30:ZZ30>0,COLUMN($T$2:$ZZ$2)-1)))...(row 30 being my man hour row and row 2 being my date range row,
I put the A2 ref in there to match the A37.....the ONLY thing I can see the purpose of A37 is its the same row that the date range is on....so since row 37 is the date range row in the original formula I made A2 the reference in the new workbook formula since row 2 is the date range row.