Consolidate Cells Containing Text From Multiple Worksheets

andyporter1975

New Member
Joined
Feb 3, 2014
Messages
27
Hi,

I need a solution to the following scenario please.

I have 2 worksheets which contains different data around a consistent template. I need to be able to automatically combine these worksheets so that they create a Summary sheet. Examples of what I want to try and achieve is below:

Worksheet 1

ABCD
1RegistrationsQ1Q2Q3Q4
2AB65 123YesNoNoYes
3AB65 124NoYesYesNo
4AB65 125
5AB65 126

<tbody>
</tbody>












Worksheet 2


ABCD
1RegistrationsQ1Q2Q3Q4
2AB65 123
3AB65 124
4AB65 125NoNoNoNo
5AB65 126YesYesYesYes

<tbody>
</tbody>












Summary (a combination of worksheets 1 and 2)

ABCDE
1RegistrationsQ1Q2Q3Q4
2AB65 123YesNoNoYes
3AB65 124NoYesYesNo
4AB65 125NoNoNoNo
5AB65 126YesYesYesYes

<tbody>
</tbody>











Any help will be greatly appreciated.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

SQUIDD

Well-known Member
Joined
Jan 2, 2009
Messages
2,090
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi

On your 3rd sheet could you not enter formula?

=Sheet1!E7&Sheet2!E7 for example or if data is in both, then a different formula.

or do you want to do it with code



Dave
 
Upvote 0

andyporter1975

New Member
Joined
Feb 3, 2014
Messages
27
That works perfectly, thank you.

As there are likely to be in excess of 20 worksheets, is there a way of amending the formula so that it doesn't refer to specific worksheets? For example, if I bookended the worksheets containing the data with Worksheet A and Worksheet Z could the formula reference all worksheets inbetween A and Z???
 
Upvote 0

SQUIDD

Well-known Member
Joined
Jan 2, 2009
Messages
2,090
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Andy

Regarding what i posted above, does this mean that there is only ever data in that particular cell on 1 sheet.

Dave
 
Upvote 0

SQUIDD

Well-known Member
Joined
Jan 2, 2009
Messages
2,090
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
i think we maybe better doing this with a UDF.

i will be back in a second

Dave
 
Upvote 0

SQUIDD

Well-known Member
Joined
Jan 2, 2009
Messages
2,090
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
how many sheets do you have
 
Upvote 0

SQUIDD

Well-known Member
Joined
Jan 2, 2009
Messages
2,090
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
oh right, gotcha

Makes it a bit more confusing for me.
but if you drop me your sheet names and the 1st cell you want formula in, i can write your formula quickly, then you can copy it down and over.

Im really not sure if a UDF would work, i see Rick Rothstein is on tonight and he is fantastic, he has helped me loads.

Dave
[h=1][/h]
Dave
 
Upvote 0

Forum statistics

Threads
1,190,789
Messages
5,982,926
Members
439,807
Latest member
WXM86

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top