Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Function with offset

I am trying to get values from sheet1 and place them on sheet2. Each
cell on sheet1 is exactly 48 rows down from the previous cell. The
Offset function seems to work but I need an easy way to get the correct
formula in each cell in sheet2. This is what I have come up with so
far:

Sheet2 cell B3 contains this function: =sheet1!G11
Sheet2 cell B4 contains this function: =Offset(sheet1!G11,48,0)
Sheet2 cell B5 contains this function: =Offset(sheet1!G11,96,0)

Is there some formula that I can use to keep adding 48 to the previous
cell number until I reach Sheet2 cell B55? I would like to be able to
click and drag the formula to all of the cells on Sheet2. There may be
a completely different approach that I should take. Any help would be
appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 415
Default Function with offset

Does this work ;
=Offset(sheet1!G11,(ROW()-3)*48,0)

NickHK


groups.com...
I am trying to get values from sheet1 and place them on sheet2. Each
cell on sheet1 is exactly 48 rows down from the previous cell. The
Offset function seems to work but I need an easy way to get the correct
formula in each cell in sheet2. This is what I have come up with so
far:

Sheet2 cell B3 contains this function: =sheet1!G11
Sheet2 cell B4 contains this function: =Offset(sheet1!G11,48,0)
Sheet2 cell B5 contains this function: =Offset(sheet1!G11,96,0)

Is there some formula that I can use to keep adding 48 to the previous
cell number until I reach Sheet2 cell B55? I would like to be able to
click and drag the formula to all of the cells on Sheet2. There may be
a completely different approach that I should take. Any help would be
appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default Function with offset

Dim cnt as Long
Sheets("Sheet2").Range("B3").Formula = "=Sheet1!G11"
For cnt = 4 to 55
Sheets("Sheet2").Range("B" & cnt).Formula = "=Offset(Sheet1!G11," &
_
(cnt - 3) * 48 & ",0)"
Next

Charles Chickering
wrote:
I am trying to get values from sheet1 and place them on sheet2. Each
cell on sheet1 is exactly 48 rows down from the previous cell. The
Offset function seems to work but I need an easy way to get the correct
formula in each cell in sheet2. This is what I have come up with so
far:

Sheet2 cell B3 contains this function: =sheet1!G11
Sheet2 cell B4 contains this function: =Offset(sheet1!G11,48,0)
Sheet2 cell B5 contains this function: =Offset(sheet1!G11,96,0)

Is there some formula that I can use to keep adding 48 to the previous
cell number until I reach Sheet2 cell B55? I would like to be able to
click and drag the formula to all of the cells on Sheet2. There may be
a completely different approach that I should take. Any help would be
appreciated.


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
large function result as reference for offset function Z Excel Discussion (Misc queries) 1 May 5th 09 12:55 AM
XL2002 - OFFSET function and LARGE function Trevor Williams Excel Worksheet Functions 3 March 3rd 08 01:40 PM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
OFFSET FUNCTION Tam Huynh Excel Programming 1 December 20th 05 11:39 AM
offset function LA Excel Worksheet Functions 10 April 19th 05 09:11 AM


All times are GMT +1. The time now is 08:37 AM.

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

About Us

"It's about Microsoft Excel"