#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
via135
 
Posts: n/a
Default pulling data!


hi!

in sheet1 i'm having the following data thru A1:C6

old_ac--------------new_ac----------name
08765001111------10455------------ AAA
07654002222------10613------------ BBB
0356700111100----10489------------AAA
0258900111101----10356------------AAA
0987500222200----10856------------BBB

in sheet2 thru A1:C3

old_cus----------- -new_cus--------------name
001111------------82055614-------------AAA
002222------------82056763-------------BBB

the point is the *six digits* starting from 6th digit in the "old_ac"
always represents the "old_cus",
and the "old_ac" can't have more than 13 digits.

what i want is to extract the five fields "old_cus", "new_cus",
"old_ac", "new_ac" & "name"
in sheet3 for all the records in sheet1.

the columns "old_ac" & "old_cus" has been formatted as text..!


any hlp pl..??

-via135


--
via135
------------------------------------------------------------------------
via135's Profile: http://www.excelforum.com/member.php...o&userid=26725
View this thread: http://www.excelforum.com/showthread...hreadid=546847

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Hudson
 
Posts: n/a
Default pulling data!

Hi,
Not certain that I fully understand your question, but....

In C1 of Sheet3 enter: =MID(Sheet1!A2,6,6)
In C2 of Sheet3 enter: =VLOOKUP(C1, Sheet2!$A$2:$C$3, 2, False)
In C3 of Sheet3 enter: =Sheet1!A2
In C4 of Sheet3 enter: =Sheet1!B2
In C5 of Sheet3 enter: =Sheet1!C2

Copy the formulas in Sheet3 down as many rows as are in Sheet1.

Is this what you wanted?


--
Ken Hudson


"via135" wrote:


hi!

in sheet1 i'm having the following data thru A1:C6

old_ac--------------new_ac----------name
08765001111------10455------------ AAA
07654002222------10613------------ BBB
0356700111100----10489------------AAA
0258900111101----10356------------AAA
0987500222200----10856------------BBB

in sheet2 thru A1:C3

old_cus----------- -new_cus--------------name
001111------------82055614-------------AAA
002222------------82056763-------------BBB

the point is the *six digits* starting from 6th digit in the "old_ac"
always represents the "old_cus",
and the "old_ac" can't have more than 13 digits.

what i want is to extract the five fields "old_cus", "new_cus",
"old_ac", "new_ac" & "name"
in sheet3 for all the records in sheet1.

the columns "old_ac" & "old_cus" has been formatted as text..!


any hlp pl..??

-via135


--
via135
------------------------------------------------------------------------
via135's Profile: http://www.excelforum.com/member.php...o&userid=26725
View this thread: http://www.excelforum.com/showthread...hreadid=546847


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
ranking query JaimeTimbrell Excel Discussion (Misc queries) 2 February 16th 06 08:09 AM
Macro pulling data from 2 worksheets billrl34 Excel Discussion (Misc queries) 2 December 12th 05 08:50 PM
From several workbooks onto one excel worksheet steve Excel Discussion (Misc queries) 6 December 1st 05 08:03 AM
Pulling data from another workbook pdberger Excel Worksheet Functions 0 September 12th 05 05:54 PM
Line Graph Data Recognition Nat Charts and Charting in Excel 2 April 30th 05 02:07 PM


All times are GMT +1. The time now is 07:29 AM.

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"