Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Automating transposition exercise

Hi there

I have a workbook with many worksheets - all set out in an identical manner.

I wish to combine the data in all the identical worksheets into one new
worksheet where the data from each original worksheet takes up one row only
in the new worksheet.

I am using the OFFSET function, an example is as follows:-

The new worksheet has headings in Row 1
The formulae in Row 2 are as follows...........

Cell A2: =OFFSET(Sheet1!$B$1,(ROW()-2)*4,0)
Cell B2: =OFFSET(Sheet1!$B$1,(ROW()-2)*4+1,0)
Cell C2: =OFFSET(Sheet1!$B$1,(ROW()-2)*4+2,0)

For Row 3 I would be requiring the following:-

Cell A3: =OFFSET(Sheet2!$B$1,(ROW()-3)*4,0)
Cell B3: =OFFSET(Sheet2!$B$1,(ROW()-3)*4+1,0)
Cell C3: =OFFSET(Sheet2!$B$1,(ROW()-3)*4+2,0)

Is there any way to automate copying these formulae downwards in the new
worksheet where the Sheet Name and offset numbers are updated?

Bob M


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default Automating transposition exercise

Hi

Here is an example of what row 3 or 2 might look like

=OFFSET(INDIRECT("Sheet"&ROW(A1)&"!$B$1"),(ROW()-2-ROW(A1))*(3+ROW(A1)),0)

--
Thanks,
Shane Devenshire


"Bob Matthews" wrote:

Hi there

I have a workbook with many worksheets - all set out in an identical manner.

I wish to combine the data in all the identical worksheets into one new
worksheet where the data from each original worksheet takes up one row only
in the new worksheet.

I am using the OFFSET function, an example is as follows:-

The new worksheet has headings in Row 1
The formulae in Row 2 are as follows...........

Cell A2: =OFFSET(Sheet1!$B$1,(ROW()-2)*4,0)
Cell B2: =OFFSET(Sheet1!$B$1,(ROW()-2)*4+1,0)
Cell C2: =OFFSET(Sheet1!$B$1,(ROW()-2)*4+2,0)

For Row 3 I would be requiring the following:-

Cell A3: =OFFSET(Sheet2!$B$1,(ROW()-3)*4,0)
Cell B3: =OFFSET(Sheet2!$B$1,(ROW()-3)*4+1,0)
Cell C3: =OFFSET(Sheet2!$B$1,(ROW()-3)*4+2,0)

Is there any way to automate copying these formulae downwards in the new
worksheet where the Sheet Name and offset numbers are updated?

Bob M



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Automating transposition exercise

Hi Shane

would you care to explain you previous suggestion a little please........

My main problem is how to automate the formulae so that they move from one
worksheet to the next - the worksheet names are names like A114_N, A257_N,
McDonald(1), SmithJ(2) etc. etc. all different


"ShaneDevenshire" wrote in
message ...
Hi

Here is an example of what row 3 or 2 might look like

=OFFSET(INDIRECT("Sheet"&ROW(A1)&"!$B$1"),(ROW()-2-ROW(A1))*(3+ROW(A1)),0)

--
Thanks,
Shane Devenshire


"Bob Matthews" wrote:

Hi there

I have a workbook with many worksheets - all set out in an identical
manner.

I wish to combine the data in all the identical worksheets into one new
worksheet where the data from each original worksheet takes up one row
only
in the new worksheet.

I am using the OFFSET function, an example is as follows:-

The new worksheet has headings in Row 1
The formulae in Row 2 are as follows...........

Cell A2: =OFFSET(Sheet1!$B$1,(ROW()-2)*4,0)
Cell B2: =OFFSET(Sheet1!$B$1,(ROW()-2)*4+1,0)
Cell C2: =OFFSET(Sheet1!$B$1,(ROW()-2)*4+2,0)

For Row 3 I would be requiring the following:-

Cell A3: =OFFSET(Sheet2!$B$1,(ROW()-3)*4,0)
Cell B3: =OFFSET(Sheet2!$B$1,(ROW()-3)*4+1,0)
Cell C3: =OFFSET(Sheet2!$B$1,(ROW()-3)*4+2,0)

Is there any way to automate copying these formulae downwards in the new
worksheet where the Sheet Name and offset numbers are updated?

Bob M





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
training exercise littlebit New Users to Excel 2 October 7th 06 06:17 PM
Transposition impossibility? Brisbane Rob Excel Discussion (Misc queries) 4 April 30th 06 09:03 PM
Lottery exercise Gary''s Student Excel Worksheet Functions 1 December 5th 05 07:20 PM
A 13 period exercise Steved Excel Worksheet Functions 1 August 9th 05 09:29 AM
Transposition Kuna&Zagiel Excel Worksheet Functions 2 January 7th 05 12:06 PM


All times are GMT +1. The time now is 06:25 AM.

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"