Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default append worksheet with data from another

I have 2 worksheets that I need to bring together into a single worksheet.
The first column of each worksheet is the "persons" ID number.

I want to append the data in worksheet 1 with the data in worksheet 2, based
upon
the ID number. The data in worksheet 2 is a mix of text, number, phone
number, etc.

Is there a single formula I can use to bring it all in based upon the ID
numbers in column A?

example...

WS1 WS2
123,Mark 157,trans,(201)646,2008 Event,Yes
124,Harry 123,mortg,(732)995,2008 Event,No
129,Dave 762,rund,(676)423,2007 Event,Maybe
129,mortg,(212)123,2008 - Trip,Yes
124,party,(919)222,2006 - Trip,No

DESIRED RESULT IN WS1
123,Mark,mortg,(732)995,2008 Event,No
124,Harry,party,(919)222,2006 - Trip,No
129,Dave ,mortg,(212)123,2008 - Trip,Yes

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 127
Default append worksheet with data from another

See VLOOKUP in Help.


"Mark B" wrote in message
...
I have 2 worksheets that I need to bring together into a single worksheet.
The first column of each worksheet is the "persons" ID number.

I want to append the data in worksheet 1 with the data in worksheet 2,
based
upon
the ID number. The data in worksheet 2 is a mix of text, number, phone
number, etc.

Is there a single formula I can use to bring it all in based upon the ID
numbers in column A?

example...

WS1 WS2
123,Mark 157,trans,(201)646,2008 Event,Yes
124,Harry 123,mortg,(732)995,2008 Event,No
129,Dave 762,rund,(676)423,2007 Event,Maybe
129,mortg,(212)123,2008 -
Trip,Yes
124,party,(919)222,2006 - Trip,No

DESIRED RESULT IN WS1
123,Mark,mortg,(732)995,2008 Event,No
124,Harry,party,(919)222,2006 - Trip,No
129,Dave ,mortg,(212)123,2008 - Trip,Yes



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default append worksheet with data from another

Here is what I came up with... assuming your data on WS1 is in Column A and
your data in WS2 is in Column B (I chose different columns so you could see
what belong to which worksheet), this formula (assumed to be placed on WS1)
should return what you are looking for...

=A1&SUBSTITUTE(INDEX(WS2!B$1:B$5,SUMPRODUCT(--(LEFT(A1,FIND(",",A1))=LEFT(WS2!B$1:B$5,FIND(",",W S2!B$1:B$5)))*ROW(B$1:B$5))),LEFT(A1,FIND(",",A1)-1),"")

Rick


"Mark B" wrote in message
...
I have 2 worksheets that I need to bring together into a single worksheet.
The first column of each worksheet is the "persons" ID number.

I want to append the data in worksheet 1 with the data in worksheet 2,
based
upon
the ID number. The data in worksheet 2 is a mix of text, number, phone
number, etc.

Is there a single formula I can use to bring it all in based upon the ID
numbers in column A?

example...

WS1 WS2
123,Mark 157,trans,(201)646,2008 Event,Yes
124,Harry 123,mortg,(732)995,2008 Event,No
129,Dave 762,rund,(676)423,2007 Event,Maybe
129,mortg,(212)123,2008 -
Trip,Yes
124,party,(919)222,2006 - Trip,No

DESIRED RESULT IN WS1
123,Mark,mortg,(732)995,2008 Event,No
124,Harry,party,(919)222,2006 - Trip,No
129,Dave ,mortg,(212)123,2008 - Trip,Yes


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default append worksheet with data from another

Using the same data column assumptions, this formula is shorter and should
be more efficient...

=A1&MID(VLOOKUP(LEFT(A1,FIND(",",A1))&"*",WS2!B:B, 1,FALSE),FIND(",",A1),255)

Rick


"Rick Rothstein (MVP - VB)" wrote in
message ...
Here is what I came up with... assuming your data on WS1 is in Column A
and your data in WS2 is in Column B (I chose different columns so you
could see what belong to which worksheet), this formula (assumed to be
placed on WS1) should return what you are looking for...

=A1&SUBSTITUTE(INDEX(WS2!B$1:B$5,SUMPRODUCT(--(LEFT(A1,FIND(",",A1))=LEFT(WS2!B$1:B$5,FIND(",",W S2!B$1:B$5)))*ROW(B$1:B$5))),LEFT(A1,FIND(",",A1)-1),"")

Rick


"Mark B" wrote in message
...
I have 2 worksheets that I need to bring together into a single worksheet.
The first column of each worksheet is the "persons" ID number.

I want to append the data in worksheet 1 with the data in worksheet 2,
based
upon
the ID number. The data in worksheet 2 is a mix of text, number, phone
number, etc.

Is there a single formula I can use to bring it all in based upon the ID
numbers in column A?

example...

WS1 WS2
123,Mark 157,trans,(201)646,2008 Event,Yes
124,Harry 123,mortg,(732)995,2008 Event,No
129,Dave 762,rund,(676)423,2007 Event,Maybe
129,mortg,(212)123,2008 -
Trip,Yes
124,party,(919)222,2006 -
Trip,No

DESIRED RESULT IN WS1
123,Mark,mortg,(732)995,2008 Event,No
124,Harry,party,(919)222,2006 - Trip,No
129,Dave ,mortg,(212)123,2008 - Trip,Yes



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 do i append old and new data in excel pauloz Excel Worksheet Functions 1 November 10th 07 05:47 PM
Auto append data Dan S. Excel Discussion (Misc queries) 1 March 23rd 07 06:23 AM
How do I append data in several cells in one column Tim Excel Discussion (Misc queries) 4 November 16th 05 10:04 PM
How to Append the Data to the Master Table Shiva Excel Worksheet Functions 7 November 8th 05 05:00 AM
How to append/combine (not add) data in several sheets into one? ParkCrescent Excel Discussion (Misc queries) 2 August 15th 05 01:28 PM


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