• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Retrieve data from several worksheet into one

Pierre

Member
Hello,

I have files with data in several worksheet. Each worksheet is a day of a month (so up to 31 worksheet to retrieve data from). Data in the worksheets are in the same columns, but numbers of rows from one sheet to another can be different. I would like to be able to retrieve all the data from the different worksheet into a unique worksheet.

Is there any way to do that with formula?

I enclosed a small example

Thanks in advance!
 

Attachments

  • multiple_worksheet.xlsx
    11.2 KB · Views: 1
Try,

In C2, copied right to D2, and all copied down :

=IF(ROWS($1:1)<=COUNT('1'!$A$1:$A$30),INDEX('1'!A$2:A$30,ROW(A1)),IF(ROWS($1:1)<=COUNT('1'!$A$1:$A$30)+COUNT('2'!$A$1:$A$30),INDEX('2'!A$2:A$30,ROWS($1:1)-COUNT('1'!$A$1:$A$30)),IF(ROWS($1:1)<=COUNT('1'!$A$1:$A$30)+COUNT('2'!$A$1:$A$30)+COUNT('3'!$A$1:$A$30),INDEX('3'!A$2:A$30,ROWS($1:1)-COUNT('1'!$A$1:$A$30)-COUNT('2'!$A$1:$A$30)),"")))

Regards
Bosco
 

Attachments

  • multiple_worksheet(1).xlsx
    14.3 KB · Views: 3
Back
Top