Hello everyone. I have a formula which i copy down over roughly 500 cells. The formula is quite long and i was wondering if there was any alternative that would make it smaller and easier to use and also faster.
Basically i have the information spread across three workbooks. Each one called Earlies, Lates or Nights. (the above shows it as on different sheets, this was for testing purposes until i add the links to the other closed workbooks)
Cell A3 will show either Earlies, Lates, Nights depending on the time. cell A6 will contain a name which is where i copy the formula down over hundreds of cells. A2 Contains the lookup date.
B7:GE7 contains dates
$B$7:$B$500 contains names
$B$7:$GE$500 contains names with the matching data
Thankyou for any help you can provide
Code:
=IF($A$3="Earlies",IF(TODAY()>=DATE(2015,6,27),INDEX($B$7:$GE$500,MATCH(A6,'EARLIES WEEKS 27-52'!$B$7:$B$500,0),MATCH($A$2,'EARLIES WEEKS 27-52'!$B$7:$GE$7,0)),IF(TODAY()<=DATE(2015,6,26),INDEX($B$7:$GE$500,MATCH(A6,'EARLIES WEEKS 1-26'!$B$7:$B$500,0),MATCH($A$2,'EARLIES WEEKS 1-26'!$B$7:$GE$7,0)))),IF($A$3="Lates",IF(TODAY()>=DATE(2015,6,27),INDEX($B$7:$GE$500,MATCH(A6,'EARLIES WEEKS 27-52'!$B$7:$B$500,0),MATCH($A$2,'EARLIES WEEKS 27-52'!$B$7:$GE$7,0)),IF(TODAY()<=DATE(2015,6,26),INDEX($B$7:$GE$500,MATCH(A6,'EARLIES WEEKS 1-26'!$B$7:$B$500,0),MATCH($A$2,'EARLIES WEEKS 1-26'!$B$7:$GE$7,0)),
IF($A$3="Nights",IF(TODAY()>=DATE(2015,6,27),INDEX($B$7:$GE$500,MATCH(A6,'EARLIES WEEKS 27-52'!$B$7:$B$500,0),MATCH($A$2,'EARLIES WEEKS 27-52'!$B$7:$GE$7,0)),IF(TODAY()<=DATE(2015,6,26),INDEX($B$7:$GE$500,MATCH(A6,'EARLIES WEEKS 1-26'!$B$7:$B$500,0),MATCH($A$2,'EARLIES WEEKS 1-26'!$B$7:$GE$7,0)))))))))
Basically i have the information spread across three workbooks. Each one called Earlies, Lates or Nights. (the above shows it as on different sheets, this was for testing purposes until i add the links to the other closed workbooks)
Cell A3 will show either Earlies, Lates, Nights depending on the time. cell A6 will contain a name which is where i copy the formula down over hundreds of cells. A2 Contains the lookup date.
B7:GE7 contains dates
$B$7:$B$500 contains names
$B$7:$GE$500 contains names with the matching data
Thankyou for any help you can provide