View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Amil Amil is offline
external usenet poster
 
Posts: 11
Default how to code variable reference?

Opps. I forgot, I actually need the reference to the next row based on the
offset, as such:

weekOffset = 4
week newweek
200449 200501
200450 ...
200451 ...
200452 ...
200501 ...


"Tom Ogilvy" wrote:

does 200401 mean the first week of 2004.

is 200401 stored as a string? If it is stored as a number

=A1+3

200401 + 2 = 200403

--
Regards,
Tom Ogilvy

"Amil" wrote in message
...
i have two columns: week, newweek and an integer variable: weekoffset.

this
is how the data looks like given a weekoffset value = 2

week newweek
200401 200403 ' < what is the formula for newweek?
200402 200405
200403 0
200405 0