PC Review


Reply
Thread Tools Rate Thread

Convert Last 3 digits to zero

 
 
create_share
Guest
Posts: n/a
 
      21st Apr 2009
Hi!

I need excel to convert the last three digits of a number to zeroes. For
example:

224577 the 577 should automatically be converted to zeroes. Can anybody help?

Thanks!
 
Reply With Quote
 
 
 
 
Thipdar
Guest
Posts: n/a
 
      21st Apr 2009
I'm going to answer this in three parts - the first two are separate, then
combined in the last part.

Assuming you have 224577 as the value in the A2 cell, you could put this
formula into B2: =INT(A2/1000)

That would give the value 224 in the B2 cell.

In order to append the three zeros, you could put this formula into the C2
cell: =PRODUCT(B2,1000)

That would put the value 224,000 into the C2 cell.

If you embed one formula into the other, you could put this formula into the
D2 cell: =PRODUCT(INT(A2/1000),1000)

This would put the value 224,000 into the D2 cell.

You want to take the target number, divide it by 1,000, then integerize the
result and multiply your intermediate result by 1,000.

I don't understand why you posted this question on the Outlook board.

Good luck with your spreadsheet.



"create_share" wrote:

> Hi!
>
> I need excel to convert the last three digits of a number to zeroes. For
> example:
>
> 224577 the 577 should automatically be converted to zeroes. Can anybody help?
>
> Thanks!

 
Reply With Quote
 
Brian Tillman [MVP - Outlook]
Guest
Posts: n/a
 
      21st Apr 2009
"create_share" <(E-Mail Removed)> wrote in message
news:0943D5B7-B983-4755-AC46-(E-Mail Removed)...

> I need excel to convert the last three digits of a number to zeroes.


Why ask an Excel question in an Outlook newsgroup?
--
Brian Tillman [MVP-Outlook]

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
convert first 6 digits into date tracktraining Microsoft Excel Programming 22 7th Jul 2009 07:13 PM
convert digits in words moin Microsoft Excel Misc 2 11th Jun 2009 01:10 PM
Convert 8 digits to leading alpha plus 6 digits following? Lee Jeffery Microsoft Excel New Users 0 21st Sep 2004 08:33 AM
Convert 8 digits to leading alpha plus 6 digits following? Lee Jeffery Microsoft Excel New Users 1 21st Sep 2004 04:25 AM
convert string to digits =?Utf-8?B?U2FyYWg=?= Microsoft C# .NET 0 16th Sep 2004 09:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:45 PM.