Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default How can I set up EXCEL to show number without 3 last digits?

We have a order No in every sell - 83HI256312001 or 83HI256312002.
How is it possible to set up EXCEL to show the number without 3 last digits?

Many thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How can I set up EXCEL to show number without 3 last digits?

You would put in a dummy column and hide this column. If your numbers are
in column A, insert a new B column and hide A. In B2 put in the formula

=Left(A2,len(A2)-3)

and drag fill down the column.

Or you could write a macro to actually remove the last 3 digits

sub Remove3()
Dim rng as Range, cell as Range
set rng = Range(Cells(2,1),Cells(2,1).End(xldown))
for each cell in rng
cell.Value = left(cell.Value,len(cell.value)-3)
Next
end sub



--
Regards,
Tom Ogilvy

"Helena" wrote in message
...
We have a order No in every sell - 83HI256312001 or 83HI256312002.
How is it possible to set up EXCEL to show the number without 3 last

digits?

Many thanks.



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
VBA write macro change column with 3 number digits to 4 digits the James C[_2_] Excel Discussion (Misc queries) 3 January 25th 10 03:12 PM
I cannot enter a number containing more than 15 digits in Excel Sourav Excel Discussion (Misc queries) 1 December 7th 09 11:53 AM
Can I have Excel Show the last 8 digits of a Number? Greg New Users to Excel 6 April 18th 09 05:20 PM
How to customize number to 10 digits including 2 digits after deci Carina Excel Worksheet Functions 3 September 20th 07 02:50 AM
how do i show only the last four digits of a credit card number ExcelB Excel Discussion (Misc queries) 5 June 16th 06 11:58 PM


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