Hi,
I am editing an excel sheet with plenty of dates and have found this line of code. Can someone please explain what it means?
=X9+VLOOKUP(WEEKDAY(X9,2),{2,4;6,3},2,0)
I know that it is looking up the adjacent cell (X9), and if that value is a TUE, it adds 4 on to the date to return a Saturday, if it is a SAT it adds 3 on to return a TUESDAY.
2,4 = if Weekday 2 (Tuesday), +4
6,3 = if Saturday 6 (Saturday), +3
but what does the 2,0 mean?
Thanks,
Andy
Bookmarks