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

I'm not good with macros, so if we could do this simply, I would
appreciate it.

Spreadsheet 1
I have a list of all my accounts
The headings I need from that spreadsheet a

Column A id
Column B name
Column C billing_address_street
Column D billing_address_city
Column E billing_address_state
Column F billing_address_postalcode
Column G billing_address_country

Spreadsheet #2
This is a list of registration numbers

Column A R/N
Column B Product
Column C Account
Column D ID

The ID Heading on Spreadsheet 2 is the same as 1 entry in the ID
heading on Spreadsheet 1

What I want to do is add information from SS1 to SS2

Like this

I want to start on SS2. Cell D2 contains information
"1008e000-000e-0000-0000"

If I were to go to SS1 and do Edit Find and entered this information
in the lookup blank, it returns A692

B692 contains the name of the business
C692 contains the street address
D692 contains the city
e692 state
f692 zip
g692 country

I want to take the information containted on SS2 cell 2d
find the corresponding information on SS1
copy the information on cells b-c-d-e-f-g of that row and paste it
into SS2

Copy SS1 cell b692 and past into SS2 cell 2e
Copy SS1 cell c692 and past into SS2 cell 2f
Copy SS1 cell d692 and past into SS2 cell 2g
Copy SS1 cell e692 and past into SS2 cell 2h
Copy SS1 cell f692 and past into SS2 cell 2i
Copy SS1 cell g692 and past into SS2 cell 2j

Damn, I know this is difficult to understand, please ask questions.

I want the final product to be this
Column A R/N
Column B Product
Column C Account
Column D ID
Column E name
Column F billing_address_street
Column G billing_address_city
Column H billing_address_state
Column I billing_address_postalcode
Column J billing_address_country

Please help. I know there must be a function somewhere that will do
it


In case there are limits to Excel.

SS1 has 32,291 rows

SS2 only has 2520

Thanks in advance

Lisa Barr

  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 79
Default I need to combine data from 2 spreadsheets

You don't need a macro. You can use VLOOKUP function. Do you know how to use
VLOOKUP function?

Try something like this
Sort Sheet1 by Id (Column D)

On Cell E3:
= VLOOKUP( D3, Sheet1!$A$1:$G$32291, 2, false )
F3:
= VLOOKUP( D3, Sheet1!$A$1:$G$32291, 3, false )
G3:
= VLOOKUP( D3, Sheet1!$A$1:$G$32291, 4, false )
H3:
= VLOOKUP( D3, Sheet1!$A$1:$G$32291, 5, false )
I3:
= VLOOKUP( D3, Sheet1!$A$1:$G$32291, 6, false )
J3:
= VLOOKUP( D3, Sheet1!$A$1:$G$32291, 7, false )

Copy this functions to others rows


--

Rodrigo Ferreira
Regards from Brazil


"Lisa Barr" escreveu na mensagem
ps.com...
I'm not good with macros, so if we could do this simply, I would
appreciate it.

Spreadsheet 1
I have a list of all my accounts
The headings I need from that spreadsheet a

Column A id
Column B name
Column C billing_address_street
Column D billing_address_city
Column E billing_address_state
Column F billing_address_postalcode
Column G billing_address_country

Spreadsheet #2
This is a list of registration numbers

Column A R/N
Column B Product
Column C Account
Column D ID

The ID Heading on Spreadsheet 2 is the same as 1 entry in the ID
heading on Spreadsheet 1

What I want to do is add information from SS1 to SS2

Like this

I want to start on SS2. Cell D2 contains information
"1008e000-000e-0000-0000"

If I were to go to SS1 and do Edit Find and entered this information
in the lookup blank, it returns A692

B692 contains the name of the business
C692 contains the street address
D692 contains the city
e692 state
f692 zip
g692 country

I want to take the information containted on SS2 cell 2d
find the corresponding information on SS1
copy the information on cells b-c-d-e-f-g of that row and paste it
into SS2

Copy SS1 cell b692 and past into SS2 cell 2e
Copy SS1 cell c692 and past into SS2 cell 2f
Copy SS1 cell d692 and past into SS2 cell 2g
Copy SS1 cell e692 and past into SS2 cell 2h
Copy SS1 cell f692 and past into SS2 cell 2i
Copy SS1 cell g692 and past into SS2 cell 2j

Damn, I know this is difficult to understand, please ask questions.

I want the final product to be this
Column A R/N
Column B Product
Column C Account
Column D ID
Column E name
Column F billing_address_street
Column G billing_address_city
Column H billing_address_state
Column I billing_address_postalcode
Column J billing_address_country

Please help. I know there must be a function somewhere that will do
it


In case there are limits to Excel.

SS1 has 32,291 rows

SS2 only has 2520

Thanks in advance

Lisa Barr



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2
Default I need to combine data from 2 spreadsheets

On Sep 5, 12:29 pm, "Rodrigo Ferreira" wrote:
You don't need a macro. You can use VLOOKUP function. Do you know how to use
VLOOKUP function?

Try something like this
Sort Sheet1 by Id (Column D)

On Cell E3:
= VLOOKUP( D3, Sheet1!$A$1:$G$32291, 2, false )
F3:
= VLOOKUP( D3, Sheet1!$A$1:$G$32291, 3, false )
G3:
= VLOOKUP( D3, Sheet1!$A$1:$G$32291, 4, false )
H3:
= VLOOKUP( D3, Sheet1!$A$1:$G$32291, 5, false )
I3:
= VLOOKUP( D3, Sheet1!$A$1:$G$32291, 6, false )
J3:
= VLOOKUP( D3, Sheet1!$A$1:$G$32291, 7, false )

Copy this functions to others rows

--

Rodrigo Ferreira
Regards from Brazil

"Lisa Barr" escreveu na oglegroups.com...

I'm not good with macros, so if we could do this simply, I would
appreciate it.


Spreadsheet 1
I have a list of all my accounts
The headings I need from that spreadsheet a


Column A id
Column B name
Column C billing_address_street
Column D billing_address_city
Column E billing_address_state
Column F billing_address_postalcode
Column G billing_address_country


Spreadsheet #2
This is a list of registration numbers


Column A R/N
Column B Product
Column C Account
Column D ID


The ID Heading on Spreadsheet 2 is the same as 1 entry in the ID
heading on Spreadsheet 1


What I want to do is add information from SS1 to SS2


Like this


I want to start on SS2. Cell D2 contains information
"1008e000-000e-0000-0000"


If I were to go to SS1 and do Edit Find and entered this information
in the lookup blank, it returns A692


B692 contains the name of the business
C692 contains the street address
D692 contains the city
e692 state
f692 zip
g692 country


I want to take the information containted on SS2 cell 2d
find the corresponding information on SS1
copy the information on cells b-c-d-e-f-g of that row and paste it
into SS2


Copy SS1 cell b692 and past into SS2 cell 2e
Copy SS1 cell c692 and past into SS2 cell 2f
Copy SS1 cell d692 and past into SS2 cell 2g
Copy SS1 cell e692 and past into SS2 cell 2h
Copy SS1 cell f692 and past into SS2 cell 2i
Copy SS1 cell g692 and past into SS2 cell 2j


Damn, I know this is difficult to understand, please ask questions.


I want the final product to be this
Column A R/N
Column B Product
Column C Account
Column D ID
Column E name
Column F billing_address_street
Column G billing_address_city
Column H billing_address_state
Column I billing_address_postalcode
Column J billing_address_country


Please help. I know there must be a function somewhere that will do
it


In case there are limits to Excel.


SS1 has 32,291 rows


SS2 only has 2520


Thanks in advance


Lisa Barr


Damn. That was slick!

Thanks

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
how to combine workbooks or spreadsheets in to one???? musiclover Excel Worksheet Functions 1 April 3rd 07 07:56 PM
How do I combine spreadsheets? Jennifer Excel Discussion (Misc queries) 2 August 31st 06 09:33 AM
Combine 2 spreadsheets w/1 common column of data, text and number Ginger Excel Worksheet Functions 0 March 26th 06 11:45 PM
how do i combine two separate spreadsheets? Merging Spreadsheets Excel Discussion (Misc queries) 1 March 2nd 06 04:42 PM
Combine two spreadsheets using Macro jlogsdon Excel Worksheet Functions 0 May 23rd 05 11:14 PM


All times are GMT +1. The time now is 09:21 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"