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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |