Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Business Applications
Tag Cloud
access acer asus bios bsod crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop malware memory modem monitor motherboard mouse network not working printer problem ram registry repair router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Business Applications >
Solved: Merge Excel Spreadsheets

Reply  
Thread Tools
avisitor's Avatar
Computer Specs
Senior Member with 1,712 posts.
 
Join Date: Jul 2008
Location: Chicago, IL
Experience: Advanced
05-Sep-2010, 09:54 AM #1
Solved: Merge Excel Spreadsheets
I'm trying to do something really simple, but for some reason I'm having the hardest time figuring out how to do it. I need to select rows from one sheet based on another spreadsheet. This is the schema:

Sheet 1:

ID, Last, First, Username

Sheet 2:

Last, First


I need a way to get all the rows in Sheet 1 that match a row in Sheet 2. I imagine there's an easy way to do this, but I can't think of it.
__________________
Austin

Please refresh, I edit my posts often.
Ziggy1's Avatar
Computer Specs
Senior Member with 2,450 posts.
 
Join Date: Jun 2002
Location: Ontario,Canada
Experience: Advanced
05-Sep-2010, 11:46 AM #2
I think you want to use a Vlookup formula.


Look at what I attached, notice that I create a new field in each sheet to concatenate the First/last names into one field....you could do it with a longer formula separately, but I am lazy so I do it like this.


I just revised the formula slightly,

=VLOOKUP($E2,Sheet2!$A:$D,1,FALSE)

I made it so in sheet 2 it refers to columns A to D, then the number in Red ( above) is the column number from sheet 2, so you can copy this formula to right in sheet 1 and change the column number so you can pull in the next column from sheet 2.... hope it makes sense.

if this isn't what you need, then we'll have to give you some code I think.
__________________
Ziggy

ô¿ô

Last edited by Ziggy1; 05-Sep-2010 at 11:56 AM..
avisitor's Avatar
Computer Specs
Senior Member with 1,712 posts.
 
Join Date: Jul 2008
Location: Chicago, IL
Experience: Advanced
05-Sep-2010, 02:31 PM #3
That, with minor variations did exactly what I was looking for. Thanks a lot. You saved me from having to write a real headache of a program in VBA.

I ended up changing the schema as follows.

Sheet 1:

ID, Concat, Last, First, Username,

Sheet 2:

Last, First, Concat

Then, in the fourth column in Sheet 2, the following VLOOKUP: =VLOOKUP(C1,Sheet2!B:E,4)
__________________
Austin

Please refresh, I edit my posts often.

Last edited by avisitor; 05-Sep-2010 at 03:13 PM..
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools


Similar Threads
Title Thread Starter Forum Replies Last Post
Solved: Exporting Word Form Data to Excel Spreadsheet mchoi Business Applications 25 06-Jul-2009 04:58 PM
Number Formatting in Excel Paj90909 Business Applications 4 26-May-2009 11:32 AM
Excel Spreadsheet to XML Karin606 Business Applications 37 05-Mar-2009 06:44 PM
Mail merge Excel+Word 2007 saminal Business Applications 7 07-Jul-2008 06:21 PM
auto refresh on excel spreadsheets planningman40 Business Applications 3 05-Jun-2008 10:26 AM


Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 02:43 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.