LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Remove value after decimal point

for each cell in selection
if isnumeric(cell.Value) then
cell.Value = int(cell.Value)
end if
Next

--
Regards,
Tom Ogilvy

"Malcolm" wrote in message
...
Hi

I have a workbook with six worksheets. The worksheets contain client

information, including a column called Empl_ID. This is a unique field that
allows us to select information from each worksheet about specific
employees.

However, the six sheets which were sent to us have varying cell formats.

One sheet will show a client Empl_ID as being 11024 and another will show
the client Empl_ID as being 11024.23854562

Needless to say, this produces incorrect information. Can someone give me

a formula to remove the decimal point and any numbers that were to the right
of the decimal point. I will have to run this formula 6 times - once in
each worksheet.

The numbers must be completey removed so the value of the cell is the

number without any decimal value. This is the only way I will be able to
merge data from the six worksheets for specific clients without getting
incorrect data.

Thanks in advance

Malcolm



 
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
how to make value whole (remove decimal point) Roger Excel Worksheet Functions 1 July 18th 07 11:20 PM
remove decimal point for csv sheet Jerry Lee Excel Discussion (Misc queries) 3 May 27th 07 01:56 PM
in Excel 2007, how do you remove the decimal point in General Gildee New Users to Excel 2 November 20th 06 06:47 PM
Converting 2-place decimal value to floating point decimal number with leading zero Kermit Piper Excel Discussion (Misc queries) 3 March 18th 06 06:20 PM
FIXED 2 DECIMAL PLACES, MUST ENTER ALL ZEROES AFTER DECIMAL POINT. SUKYKITTY Excel Discussion (Misc queries) 3 July 6th 05 01:50 PM


All times are GMT +1. The time now is 07:22 AM.

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"