Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
charlene
 
Posts: n/a
Default how to delete the 4 rightmost digits from a cell

is it possible to delete the 4 rightmost digit of a cell ?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
macropod
 
Posts: n/a
Default how to delete the 4 rightmost digits from a cell

Hi charlene,

For a value in A1,
=INT(A1/10000)
deletes the 4 right digits.

Cheers

--
macropod
[MVP - Microsoft Word]


"charlene" wrote in message
...
is it possible to delete the 4 rightmost digit of a cell ?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gearoid
 
Posts: n/a
Default how to delete the 4 rightmost digits from a cell

Or if you think it will ever contain letters and digits then you could
try -

=LEFT(A1,LEN(A1)-4)

Ger

macropod wrote:
Hi charlene,

For a value in A1,
=INT(A1/10000)
deletes the 4 right digits.

Cheers

--
macropod
[MVP - Microsoft Word]


"charlene" wrote in message
...
is it possible to delete the 4 rightmost digit of a cell ?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Toppers
 
Posts: n/a
Default how to delete the 4 rightmost digits from a cell


=LEFT(A1,LEN(A1)-4)

HTH

"charlene" wrote:

is it possible to delete the 4 rightmost digit of a cell ?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR
 
Posts: n/a
Default how to delete the 4 rightmost digits from a cell

Charlene........It depends on exactly what sort of data you're trying to
convert.

Of the offerings so far,

=INT(A1/10000) only works on numbers.

=LEFT(A1,LEN(A1)-4) only works if there are more than four characters in the
cell.

This one should work in all cases, returning the cell value if there are
four characters or fewer.

=IF(LEN(A1)4,LEFT(A1,LEN(A1)-4),A1)

Vaya con Dios,
Chuck, CABGx3



"charlene" wrote:

is it possible to delete the 4 rightmost digit of a cell ?



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
Delete 4 to 5 digits from left in a cell Bob Phillips Excel Discussion (Misc queries) 2 April 27th 06 08:19 PM
Delete 4 to 5 digits from left in a cell Peo Sjoblom Excel Discussion (Misc queries) 3 April 27th 06 08:10 PM
Delete 4 to 5 digits from left in a cell Toppers Excel Discussion (Misc queries) 0 April 27th 06 07:33 PM
resetting last cell jagdish.eashwar Excel Discussion (Misc queries) 11 March 31st 06 02:06 AM
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM


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