Hi all,
I have a table like below that has in first column some values for current week. Then I want to make a track of each week and then I need to copy manually with "copy and paste values" the values of current week2, then do the same for week3 and so on and show empty the future weeks. This is a small version of actual table.
In row 5 of each week column I do a subtraction of "first value of week-N - first value of week-N-1". For example in B5=B2-A2, in C5 = C2-B2.
Well, what I'm trying to do is a way to copy the values of column A in column of corresponding week. If this week is week 4, then copy values of column A in column D. The problem
is that a simple formula like D2=A2 is that in next week D2 will have the values of "current week" in the future and all columns will have the same values.
My current attempt with this formula
=IF(ISOWEEKNUM(TODAY()) =4,$A2,"")
is to evaluate which is the current week. If is the 4th week, then would be equal to column A values, else empty. the problem with my formula is that will show empty the values for previous weeks.
I hope this makes sense and could be done with a formula or only with VBA?' Thanks for any help.
I have a table like below that has in first column some values for current week. Then I want to make a track of each week and then I need to copy manually with "copy and paste values" the values of current week2, then do the same for week3 and so on and show empty the future weeks. This is a small version of actual table.
In row 5 of each week column I do a subtraction of "first value of week-N - first value of week-N-1". For example in B5=B2-A2, in C5 = C2-B2.
Well, what I'm trying to do is a way to copy the values of column A in column of corresponding week. If this week is week 4, then copy values of column A in column D. The problem
is that a simple formula like D2=A2 is that in next week D2 will have the values of "current week" in the future and all columns will have the same values.
My current attempt with this formula
=IF(ISOWEEKNUM(TODAY()) =4,$A2,"")
is to evaluate which is the current week. If is the 4th week, then would be equal to column A values, else empty. the problem with my formula is that will show empty the values for previous weeks.
I hope this makes sense and could be done with a formula or only with VBA?' Thanks for any help.
Cell Formulas | ||
---|---|---|
Range | Formula | |
D2:D4 | D2 | =IF(ISOWEEKNUM(TODAY()) =4,$A2,"") |
E2:E4 | E2 | =IF(ISOWEEKNUM(TODAY()) =5,$A2,"") |
B5:C5 | B5 | =B2-A2 |
D5 | D5 | =IF(ISOWEEKNUM(TODAY()) =4,D2-C2,"") |