Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ExcelWolfie
 
Posts: n/a
Default concatenating rows from different sheets

I have 2 worksheets each with an unknown number of rows which I want to move
to the third worksheet as follows

Sheet 1 data in rows 1 to 15
Sheet 2 data in rows 1 to 23
Sheet 3 to contain Sheet 1 rows 1-15 in rows 1 - 15 with
sheet 2 rows 1 - 23 in sheet 3 rows 16 to 38
Automatically if possible but I don't know how many rows will be in each of
sheets 1 and 2
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
vezerid
 
Posts: n/a
Default concatenating rows from different sheets

You can use this formula, which is assuming that the data will be in
column A:A in both sheets 1 and 2 (assuming sheets are called Sheet1
and Sheet2)

=IF(ROW()COUNTA(Sheet1!A:A)+COUNTA(Sheet2!A;A),"" ,
IF(ROW()<=COUNTA(Sheet1!A:A),
OFFSET(Sheet1!$A$1,ROW()-1,0),OFFSET(Sheet2!$A$1,ROW()-COUNTA(Sheet1!A:A)-1,0)))

Start this formula in A1 of Sheet3 and copy down until you get empty
cells.

Does this help?
Kostis Vezerides

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
Insert rows based on specific value bob Excel Worksheet Functions 6 February 29th 08 07:11 PM
auto expand rows [email protected] Excel Worksheet Functions 3 December 14th 05 07:45 AM
Rows & Columns in Excel seadragon69 Excel Worksheet Functions 2 December 7th 05 05:54 PM
Updating, Deleting and inserting rows over two Excel Sheets Dilip Mistry Excel Worksheet Functions 0 July 25th 05 07:09 PM
REALLY miussing rows in Excel2000 Geoff Lambert Excel Discussion (Misc queries) 2 July 21st 05 03:20 PM


All times are GMT +1. The time now is 02:59 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"