A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

LEFT worksheet function



 
 
Thread Tools Display Modes
  #1  
Old September 8th, 2004, 02:27 PM
sw
external usenet poster
 
Posts: n/a
Default LEFT worksheet function

I have the following formula;

=(ROUND(A1,3-LEN(INT(A1)))) e.g. 123,456 would change to
123,000

I also want to be able to return only the 1st 3 numbers of
this e.g. changes to 123. I have tried adding in Left
(A1,3) but everywhere I place this in the formula it does
not seem to work e.g. I tried =ROUND(LEFT(A1,3),A1,3-LEN
(INT(A1))))

Any ideas?
  #2  
Old September 8th, 2004, 02:36 PM
JulieD
external usenet poster
 
Posts: n/a
Default

Hi sw

how about
=LEFT(ROUND(A1,3-LEN(INT(A1))),3)

or

=LEFT(ROUND(A1,-3),3) 'depending on the other numbers you are rounding

Cheers
JulieD

"sw" wrote in message
...
I have the following formula;

=(ROUND(A1,3-LEN(INT(A1)))) e.g. 123,456 would change to
123,000

I also want to be able to return only the 1st 3 numbers of
this e.g. changes to 123. I have tried adding in Left
(A1,3) but everywhere I place this in the formula it does
not seem to work e.g. I tried =ROUND(LEFT(A1,3),A1,3-LEN
(INT(A1))))

Any ideas?



  #3  
Old September 8th, 2004, 02:46 PM
Govind
external usenet poster
 
Posts: n/a
Default

Hi,

You can try

=ROUND(A1,3-LEN(INT(A1)))/10^(LEN(INT(A1))-LEN(RIGHT(INT(A1),3)))

Tho there can be better solutions.

Regards

Govind.

sw wrote:

I have the following formula;

=(ROUND(A1,3-LEN(INT(A1)))) e.g. 123,456 would change to
123,000

I also want to be able to return only the 1st 3 numbers of
this e.g. changes to 123. I have tried adding in Left
(A1,3) but everywhere I place this in the formula it does
not seem to work e.g. I tried =ROUND(LEFT(A1,3),A1,3-LEN
(INT(A1))))

Any ideas?


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
WorkSheet / ActiveSheet Question Brian Worksheet Functions 1 August 25th, 2004 08:51 PM
If worksheet function Dave Worksheet Functions 3 May 15th, 2004 04:54 PM
Difference between regression in VBA and a worksheet function Nick M Worksheet Functions 1 April 6th, 2004 06:08 PM
Help with a Worksheet Function please ptman Worksheet Functions 2 March 4th, 2004 08:16 AM
sumif worksheet function Gerrit Worksheet Functions 1 September 25th, 2003 03:53 AM


All times are GMT +1. The time now is 07:32 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.