Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default removing last 16 digits of the value of a cell


Hello,

I have a quick question that I think can be easily answered, I am just
struggling to get it to work correctly.

I have a list of names and account numbers. The cells like like the
below example:

Smith, John M. xxxxxx4023820886

The "X"s were not put in by me, they actually exist like that in the
spreadsheet.

I would like to remove the 16 digit account number. Each name
obviously contains a different number of characters which is making
this difficult for me.

Thanks for the help,

Brendan


--
destrolennox
------------------------------------------------------------------------
destrolennox's Profile: http://www.excelforum.com/member.php...o&userid=36503
View this thread: http://www.excelforum.com/showthread...hreadid=562652

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default removing last 16 digits of the value of a cell


Looks like you could use Text to columns

Data Text to Columns

Click delimter and use Other with the aposthophe sign ","

Otherwise you could try =right(A1,16)

VBA Noob


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=562652

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 79
Default removing last 16 digits of the value of a cell

Try:
=LEFT(A1,LEN(A1)-16)

-Simon

"destrolennox" wrote:


Hello,

I have a quick question that I think can be easily answered, I am just
struggling to get it to work correctly.

I have a list of names and account numbers. The cells like like the
below example:

Smith, John M. xxxxxx4023820886

The "X"s were not put in by me, they actually exist like that in the
spreadsheet.

I would like to remove the 16 digit account number. Each name
obviously contains a different number of characters which is making
this difficult for me.

Thanks for the help,

Brendan


--
destrolennox
------------------------------------------------------------------------
destrolennox's Profile: http://www.excelforum.com/member.php...o&userid=36503
View this thread: http://www.excelforum.com/showthread...hreadid=562652


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default removing last 16 digits of the value of a cell


SimonCC Wrote:
Try:
=LEFT(A1,LEN(A1)-16)



well take 17 to get rid of the space
=left(a1,len(a1)-17)
or
=trim(left(a1,len(a1)-16)


--
MDubbelboer
------------------------------------------------------------------------
MDubbelboer's Profile: http://www.excelforum.com/member.php...o&userid=36330
View this thread: http://www.excelforum.com/showthread...hreadid=562652

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default removing last 16 digits of the value of a cell


Thanks for the help, i used the TRIM function and it worked perfectly


--
destrolennox
------------------------------------------------------------------------
destrolennox's Profile: http://www.excelforum.com/member.php...o&userid=36503
View this thread: http://www.excelforum.com/showthread...hreadid=562652

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
Help with this conditional IF statement C-Dawg Excel Discussion (Misc queries) 3 May 15th 06 06:01 PM
Instead of a negative number, I'd like to show zero... Dr. Darrell Excel Worksheet Functions 6 December 7th 05 08:21 PM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM


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