You are here:

Excel/Check & Merge Multiple data

Advertisement


Question
Hi I am facing one problem, please help.

Having 3 sheet contain data in 2 sheet as follows:

Sheet#1:

Code Note
A1 P1
A1 P1
A2 P1
A3 P3
A2 P2

Sheet#2:

Activity
IPF1
IPF2

I want the result in 3rd Sheet like this:

Sheet#3:

Code Note Activity
A1 P1 IPF1
A1 P1 IPF1
A2 P1 IPF1
A3 P3 IPF1
A2 P2 IPF1
A1 P1 IPF2
A1 P1 IPF2
A2 P1 IPF2
A3 P3 IPF2
A2 P2 IPF2

Please help.

Regards // Shiven

Answer
Shiven,

Assume

Sheet#1:
Column A     B
row 1 Code Note
row 2 A1 P1
row 3 A1 P1
row 4 A2 P1
row 5 A3 P3
row 6 A2 P2

Sheet#2:
       Column A
row 1 Activity
row 2 IPF1
row 3IPF2


then

sheet3

A2:  =INDIRECT(ADDRESS(MOD(ROW(A1)-1,5)+2,1,,TRUE,"Sheet1"))
B2:  =INDIRECT(ADDRESS(MOD(ROW(A1)-1,5)+2,2,,TRUE,"Sheet1"))
C2:  =INDIRECT(ADDRESS(TRUNC((ROW(A1)-1)/5)+2,1,,TRUE,"Sheet2"))

drag fill down to row 11

that gave me what you asked for.

--
Regards,
Tom Ogilvy

About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here

Excel

All Answers


Answers by Expert:


Ask Experts

Volunteer


Tom Ogilvy

Expertise

Selected as an Excel MVP by Microsoft since 1999. Answering Excel questions in Allexperts since its inception in 2001. Able to answer questions on almost all aspects of Excel's internal capabilities. If seeking a VBA solution, please specify that in your question itself so I give you the answer you want. [Excel has weak protection - if you are distributing an application, I don't answer questions on how to protect your project from your users.]

Experience

Extensive experience.

Education/Credentials
Master of Science (MS) degree Operations Research (ORSA)

Awards and Honors
Microsoft MVP in Excel.

©2016 About.com. All rights reserved.