Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
kestrel
 
Posts: n/a
Default Removing the last two digits of a cell


Hi guys,

I've got a list of 16 digit numbers and I want to remove the last two
digits from each one.

I am totally stuck as to how I can do this. Can't use find and replace
as the numbers are totally random.

Is there a function or option that can do this?

Thanks

Kestrel


--
kestrel
------------------------------------------------------------------------
kestrel's Profile: http://www.excelforum.com/member.php...o&userid=19082
View this thread: http://www.excelforum.com/showthread...hreadid=542957

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Removing the last two digits of a cell

in an adjacent column

=left(a1,14)

and copy down


--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"kestrel" wrote in
message ...

Hi guys,

I've got a list of 16 digit numbers and I want to remove the last two
digits from each one.

I am totally stuck as to how I can do this. Can't use find and replace
as the numbers are totally random.

Is there a function or option that can do this?

Thanks

Kestrel


--
kestrel
------------------------------------------------------------------------
kestrel's Profile:

http://www.excelforum.com/member.php...o&userid=19082
View this thread: http://www.excelforum.com/showthread...hreadid=542957



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Umlas, Excel MVP
 
Posts: n/a
Default Removing the last two digits of a cell

=INT(A1/100)
where A1 is the number
Note: 16-digit #s are stored as 15-digits with the last one being a 0.


"kestrel" wrote:


Hi guys,

I've got a list of 16 digit numbers and I want to remove the last two
digits from each one.

I am totally stuck as to how I can do this. Can't use find and replace
as the numbers are totally random.

Is there a function or option that can do this?

Thanks

Kestrel


--
kestrel
------------------------------------------------------------------------
kestrel's Profile: http://www.excelforum.com/member.php...o&userid=19082
View this thread: http://www.excelforum.com/showthread...hreadid=542957


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kevin Vaughn
 
Posts: n/a
Default Removing the last two digits of a cell

If you want to remove the last 2 digits (avoiding rounding issues) and want
to keep it a number, you might want to try:
=--LEFT(B1,14)

--
Kevin Vaughn


"Bob Umlas, Excel MVP" wrote:

=INT(A1/100)
where A1 is the number
Note: 16-digit #s are stored as 15-digits with the last one being a 0.


"kestrel" wrote:


Hi guys,

I've got a list of 16 digit numbers and I want to remove the last two
digits from each one.

I am totally stuck as to how I can do this. Can't use find and replace
as the numbers are totally random.

Is there a function or option that can do this?

Thanks

Kestrel


--
kestrel
------------------------------------------------------------------------
kestrel's Profile: http://www.excelforum.com/member.php...o&userid=19082
View this thread: http://www.excelforum.com/showthread...hreadid=542957


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 04:12 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"