Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
David Smithz
 
Posts: n/a
Default Merging of Worksheets

Hi there,

I have two worksheets of data that are connected by a common field. I want
to merge these two worksheets (similar to how one might link up two DB
tables).

Is there a way I can do this in Excel.

Therefore the end result would be a single worksheet, and whenever the value
in the column that I choose from each worksheet matches, a single row in a
new worksheet is created.
(and where there is no match a new row is added, but does not have all the
columns populated).

Hope this makes sense.

Kind regards

Dave


  #2   Report Post  
Posted to microsoft.public.excel.misc
nastech
 
Posts: n/a
Default Merging of Worksheets

FIND DUPLICATE RECORDS (COUNT), COMPARE DUPS BETWEEN DOCS, MERGE DOCS;
(sample of formula's: suite to fit your needs)
WORKING: (count duplicates, get "dif" from new to old sheet & merge data
with VLOOKUP..)
=IF(OR(V9={"",".",".sym."},COUNTIF($V$90:$V$3162,V 9)=1),"",COUNTIF($V$90:$V$3162,V9)) gets count same sheet
=IF(OR(V1={"",".",".sym."}),"",IF(ISNA(VLOOKUP(V1,[file.xls]sheet!$A$1:$A$3355,1,0)),"dif",""))
gets dif from diff sheet (must sort whole sheet, to 1 sheet..)
=VLOOKUP(V455,[file.xls]sheet!$A$1:$B$3355,2,FALSE) MERGE: WORKS FINE,
AGAIN: MUST SORT SHEET FOR GOOD RECORDS ONLY, WITH ABOVE top 2 EQ's
(Note: May want to use Copy, Paste-Special, Valutes of data you want to
copy into new sheet)
alternate formulas
=IF(ISNA(VLOOKUP(V1,[file.xls]sheet!$A$1:$B$3355,2,FALSE)),"",VLOOKUP(V1,[nasymbols.xls]a!$A$1:$B$3355,2,FALSE))
will get rid of n/a's, but do not want to copy blanks over other data, etc.
or:
=IF(V124={"",".",".sym."},"",VLOOKUP(V124,[file.xls]sheet!$A$1:$B$3355,2,FALSE)
which is an array formula, it should be committed with Ctrl-Shift-Enter,
not just Enter.

"David Smithz" wrote:

Hi there,

I have two worksheets of data that are connected by a common field. I want
to merge these two worksheets (similar to how one might link up two DB
tables).

Is there a way I can do this in Excel.

Therefore the end result would be a single worksheet, and whenever the value
in the column that I choose from each worksheet matches, a single row in a
new worksheet is created.
(and where there is no match a new row is added, but does not have all the
columns populated).

Hope this makes sense.

Kind regards

Dave



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
Merging multiple worksheets into one, with ongoing data entry Bear Excel Discussion (Misc queries) 2 October 31st 05 05:16 PM
Keep Format After Merging Worksheets Using CopyFromWorksheet Macro Mark Jackson Excel Discussion (Misc queries) 0 September 25th 05 11:59 PM
Merging worksheets Ann Excel Discussion (Misc queries) 1 September 20th 05 08:22 PM
merging two worksheets into one pivot chart Kirstykop Charts and Charting in Excel 1 July 20th 05 02:13 PM
merging different worksheets in a workbook to one sheet a.pontes Excel Worksheet Functions 1 March 1st 05 07:02 AM


All times are GMT +1. The time now is 05:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"