#1   Report Post  
Posted to microsoft.public.excel.misc
Paperback Writer
 
Posts: n/a
Default Vlookup & Trim

I have this dilemma. I have a number in column B of spreadsheet one. I need
to split that number and put the first 8 digits into column D of another
spreadsheet.

Here's what it looks like.

Spreadsheet one, Column B: 12345678_987654321

I need to put into spreadsheet two, Column D: 12345678 from spreadsheet one.

Spreadsheet one, Column D has number 987654321. I need to use this as an
anchor to put the right numbers from spreadsheet one, column B into
spreadsheet two, column D.

THANK YOU!!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
daddylonglegs
 
Posts: n/a
Default Vlookup & Trim


If I have understood correctly...

in sheet2 D2 use this formula copied down column

=LEFT(INDEX(Sheet1!B:B,MATCH("*"&Sheet1!D2,Sheet1! B:B,0)),8)


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=508284

  #3   Report Post  
Posted to microsoft.public.excel.misc
paul
 
Posts: n/a
Default Vlookup & Trim

are you familiar with vlookup?,=left(vlookup(customer
id,sheet1!table_array,2,false),8)
--
paul
remove nospam for email addy!



"Paperback Writer" wrote:

That won't anchor me, will it?

Let me explain better.


Sheet 1.

Column B Column C
NUM NAME
987654321 12345678 987654321


Sheet 2.

Column E Column D
ID SEC NUM
987654321 (I need this to say) 12345678

From S2, column E can hook into S1, column B. I need the first 8 characters
of S1, column C to go into S2, column D.



"paul" wrote:

say in d2 of sheet2 =LEFT(sheet1!B2,8)

--
paul
remove nospam for email addy!


"Paperback Writer" wrote:

I have this dilemma. I have a number in column B of spreadsheet one. I need
to split that number and put the first 8 digits into column D of another
spreadsheet.

Here's what it looks like.

Spreadsheet one, Column B: 12345678_987654321

I need to put into spreadsheet two, Column D: 12345678 from spreadsheet one.

Spreadsheet one, Column D has number 987654321. I need to use this as an
anchor to put the right numbers from spreadsheet one, column B into
spreadsheet two, column D.

THANK YOU!!!

  #4   Report Post  
Posted to microsoft.public.excel.misc
Paperback Writer
 
Posts: n/a
Default Vlookup & Trim

That won't anchor me, will it?

Let me explain better.


Sheet 1.

Column B Column C
NUM NAME
987654321 12345678 987654321


Sheet 2.

Column E Column D
ID SEC NUM
987654321 (I need this to say) 12345678

From S2, column E can hook into S1, column B. I need the first 8 characters
of S1, column C to go into S2, column D.



"paul" wrote:

say in d2 of sheet2 =LEFT(sheet1!B2,8)

--
paul
remove nospam for email addy!


"Paperback Writer" wrote:

I have this dilemma. I have a number in column B of spreadsheet one. I need
to split that number and put the first 8 digits into column D of another
spreadsheet.

Here's what it looks like.

Spreadsheet one, Column B: 12345678_987654321

I need to put into spreadsheet two, Column D: 12345678 from spreadsheet one.

Spreadsheet one, Column D has number 987654321. I need to use this as an
anchor to put the right numbers from spreadsheet one, column B into
spreadsheet two, column D.

THANK YOU!!!

  #5   Report Post  
Posted to microsoft.public.excel.misc
paul
 
Posts: n/a
Default Vlookup & Trim

say in d2 of sheet2 =LEFT(sheet1!B2,8)

--
paul
remove nospam for email addy!


"Paperback Writer" wrote:

I have this dilemma. I have a number in column B of spreadsheet one. I need
to split that number and put the first 8 digits into column D of another
spreadsheet.

Here's what it looks like.

Spreadsheet one, Column B: 12345678_987654321

I need to put into spreadsheet two, Column D: 12345678 from spreadsheet one.

Spreadsheet one, Column D has number 987654321. I need to use this as an
anchor to put the right numbers from spreadsheet one, column B into
spreadsheet two, column D.

THANK YOU!!!

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
Using single cell reference as table array argument in Vlookup CornNiblet Excel Worksheet Functions 3 September 22nd 05 09:15 AM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
Have Vlookup return a Value of 0 instead of #N/A Mr Mike Excel Worksheet Functions 4 May 25th 05 04:51 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


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