#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default references

I have a list of dates (consecutive weekdays - some holidays) in Column D in
Sheet2. In sheet1, I have a reference to those days. For example in A3 I
have the formula =Sheet2!D3 which displays the correct date. I'd like to
copy the formula to every 7th cell in Column A in Sheet1. What's happening
now is that the copied formula increments by 7 The formula copied into the
cell A10 is "=Sheet2!D10". How can I force it to increment only by 1, so
that it references the dates in Sheet2 correctly?
Thanks
Bert


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default references

Put this in A3 of Sheet1:

=INDIRECT("Sheet2!D"&INT((ROW(A3)+4)/7)+2)

and then copy it to A10, A17, A24 etc.

Another way would be to enter your original formula and copy down
contiguous cells, then insert 6 new rows between each of the rows with
formulae in.

Hope this helps.

Pete

On Mar 15, 12:39*am, "Bert" wrote:
I have a list of dates (consecutive weekdays - some holidays) in Column D in
Sheet2. *In sheet1, I have a reference to those days. *For example in A3 I
have the formula =Sheet2!D3 which displays the correct date. *I'd like to
copy the formula to every 7th cell in Column A in Sheet1. *What's happening
now is that the copied formula increments by 7 *The formula copied into the
cell A10 is "=Sheet2!D10". *How can I force it to increment only by 1, so
that it references the dates in Sheet2 correctly?
Thanks
Bert


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 524
Default references

Fri, 14 Mar 2008 20:39:06 -0400 from Bert :
I have a list of dates (consecutive weekdays - some holidays) in Column D in
Sheet2. In sheet1, I have a reference to those days. For example in A3 I
have the formula =Sheet2!D3 which displays the correct date. I'd like to
copy the formula to every 7th cell in Column A in Sheet1. What's happening
now is that the copied formula increments by 7 The formula copied into the
cell A10 is "=Sheet2!D10". How can I force it to increment only by 1, so
that it references the dates in Sheet2 correctly?


I don't know if this is the best way, but INDIRECT will get the job
done.

=indirect("Sheet2!D" & int(3+(row()-3)/7))

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com
Shikata ga nai...
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel references within references? Mike Excel Discussion (Misc queries) 8 January 30th 08 12:58 AM
Help with converting a block of cells with Absolute and mixed references to relative references Vulcan Excel Worksheet Functions 3 December 13th 07 11:43 PM
References [email protected] Excel Discussion (Misc queries) 4 July 5th 07 02:03 PM
references Liz Excel Discussion (Misc queries) 1 August 24th 06 08:48 PM
How to rename references from range names to cell references Abbas Excel Discussion (Misc queries) 1 May 24th 06 06:18 PM


All times are GMT +1. The time now is 06:17 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"