Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2
Default Merging 2 spreadsheets

Can I merge 2 spreadsheets based on the two left most columns and insert two
new columns in the merge? Spreadsheet 1 has surname, forename, addresses.
Spreadsheet 2 has surname, forename, username and password. I want to insert
the username and password from Sheet 2 into Sheet 1?
If anyone can help it would be great!
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Merging 2 spreadsheets

You could use a multi-criteria index/match
Something along these lines ..

Sheet2's data in cols A to D
where cols A, B are the match cols (surname-forename),
cols C & D contain the info to be extracted into Sheet1

In Sheet1,
In A2:B2 down are the coincident match data (surname-forename)
Put in D2, normal ENTER:
=INDEX(Sheet2!C$2:C$10,MATCH(1,INDEX((Sheet2!$A$2: $A$10=$A2)*(Sheet2!$B$2:$B$10=$B2),),0))
Copy D2 to E2, fill down as far as required to return cols C and D from
Sheet2 (username, password). Adapt the ranges to suit the actual extents of
data in Sheet2.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,500 Files:365 Subscribers:65
xdemechanik
---
"Gasbag" wrote:
Can I merge 2 spreadsheets based on the two left most columns and insert two
new columns in the merge? Spreadsheet 1 has surname, forename, addresses.
Spreadsheet 2 has surname, forename, username and password. I want to insert
the username and password from Sheet 2 into Sheet 1?
If anyone can help it would be great!

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 two spreadsheets Briggs Excel Worksheet Functions 11 December 3rd 09 09:44 AM
Merging two spreadsheets together. John New Users to Excel 3 July 23rd 08 11:24 PM
Merging two spreadsheets motSwE Excel Discussion (Misc queries) 1 September 1st 06 08:18 PM
merging spreadsheets orthomedus Excel Discussion (Misc queries) 3 March 21st 06 01:30 AM
Really appreciate some help on merging two spreadsheets... 1st time PC builder... Excel Discussion (Misc queries) 5 November 15th 05 04:31 PM


All times are GMT +1. The time now is 03:27 PM.

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

About Us

"It's about Microsoft Excel"