Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / June 2007

Tip: Looking for answers? Try searching our database.

Merge Sheets

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ajk - 18 Jun 2007 15:30 GMT
I want to merge two sheets and use the merged data in a new sheet.

Both my sheets contains similar info but there are fields that differ.

I need Column A from one sheet to look in Column D of the other one to see
if that one contains the same info. A simple return like False or True would
be enough for me.

One sheet contains 2500 entries and the other 4500.

I'll filter the results afterwards.

Any help would be appreciated

kubersluiper
Max - 18 Jun 2007 15:44 GMT
One way ..

Assume col A in Sheet1 is to be compared with col D in Sheet2

In Sheet1,

Put in say, E2:
=IF(A2="","",ISNUMBER(MATCH(A2,Sheet2!D:D,0)))
Copy down to the last row of data in col A. Now you can autofilter on col E.
Signature

Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

> I want to merge two sheets and use the merged data in a new sheet.
>
[quoted text clipped - 11 lines]
>
> kubersluiper
ajk - 18 Jun 2007 16:03 GMT
Max, Thank you for the prompt reply.

It gave me what I asked for! Brilliant

However, let me explain, I just realised this was not completely what I
needed.

Sheet1 contains all my up to date datum and sheet2 has "new datum".

Sheet1 contains 4500 entries and sheet2 only 2500.

Most of sheet2's info are also in sheet1 but obviously not everything.

I now need to put the new datum into sheet1. Sheet2 has got new columns
which I need to create in sheet1.

Let me give you an example,

Sheet1 has got name and number and address
Sheet2 only number(which corresponds with sheet1's number) but in sheet 2 I
have a field for attended a Meeting which there are no similar fields in
sheet1.
I now need to put that info into sheet1.

Thanks again and I hope this makes sense

> One way ..
>
[quoted text clipped - 20 lines]
> >
> > kubersluiper
Max - 18 Jun 2007 16:23 GMT
welcome, glad we got that out of the way <g>

On your new query, using an INDEX/MATCH should work for you ..

Assuming you want to bring over Sheet2's col G values into Sheet1 based on
matching col A in Sheet1 vs col D in Sheet2

In Sheet1,

Put in say, E2:
=IF(A2="","",IF(ISNA(MATCH(A2,Sheet2!D:D,0)),"",INDEX(Sheet2!G:G,MATCH(A2,Sheet2!D:D,0))))
Copy down to the last row of data in col A.

Adapt this part in the formula: INDEX(Sheet2!G:G,..
to suit the col that you want to bring over from Sheet2
Signature

Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

> Max, Thank you for the prompt reply.
>
[quoted text clipped - 46 lines]
> > >
> > > kubersluiper
ajk - 20 Jun 2007 11:39 GMT
Max! Thanks Mate!

Really helpfull and easy to use,

ajk

> welcome, glad we got that out of the way <g>
>
[quoted text clipped - 61 lines]
> > > >
> > > > kubersluiper
ajk - 20 Jun 2007 16:00 GMT
Max

After I have done this, I checked the two sheets manually and found that
about 200 entries are missing.

Can you please explain to me how this code work
=IF(A2="","",IF(ISNA(MATCH(A2,Sheet2!D:D,0)),"",INDEX(Sheet2!G:G,MATCH(A2,Sheet2!D:D,0))))

Let's say

In sheet1 with 4500 entries I have a number 10000 and that number is at A2,
but in Sheet2 number 10000 might be in D10, will this code still pick it up?

I tried to look for any missing entries but can't find any.

Any help will be appreciated

ajk

> welcome, glad we got that out of the way <g>
>
[quoted text clipped - 61 lines]
> > > >
> > > > kubersluiper
Max - 21 Jun 2007 05:23 GMT
> In sheet1 with 4500 entries I have a number 10000 and that number is at
> A2,
> but in Sheet2 number 10000 might be in D10, will this code still pick it
> up?

Yes, of course, it should. If it doesn't return correctly, then there's
probably some data inconsistencies present which is throwing the matching
off. Some numbers may be text numbers which won't match with real numbers. A
text number 10000 won't match with a real number 10000.

Would suggest that you try this to coerce all numbers in both** cols to real
numbers for proper matching. Copy an empty cell, then do a Paste special on
the entire col (for both cols) > check "Add" > OK.
**col A in Sheet1 & col D in Sheet2
Signature

Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

> Max
>
[quoted text clipped - 16 lines]
>
> ajk
ajk - 21 Jun 2007 08:37 GMT
Max,

Thanks again!

I had a suspicion it might be something like that.

I'll have a look and let you know!

Really appreciate your help

> > In sheet1 with 4500 entries I have a number 10000 and that number is at
> > A2,
[quoted text clipped - 30 lines]
> >
> > ajk
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.