• 100% Satisfaction Guarantee

John D, Bachelor's Degree
Category: Microsoft Office
Satisfied Customers: 9659
Experience:  Bachelor of Science - Engineering Consultant
53785
Type Your Microsoft Office Question Here...
John D is online now

how can i remove trailing zeroes after a decimals but keep

Customer Question

how can i remove trailing zeroes after a decimals but keep other numbers after a decimal. Excel 2010.

e.g
10.0 --> 10
12.6---> 12.6
Submitted: 2 years ago.
Category: Microsoft Office
Expert:  John D replied 2 years ago.

Ok here is the formula for that

=IF(RIGHT(A2,2)=".0",LEFT(A2,LEN(A2)-2),A2)

Place the formula in cell B2 to convert the code in A2

Hope this helps. Let me know if you have any questions

John D, Bachelor's Degree
Category: Microsoft Office
Satisfied Customers: 9659
Experience: Bachelor of Science - Engineering Consultant
Customer: replied 2 years ago.

great. how about trailing zeroes as well. So I don' t want 010.3. I just want 10.3. Furthermore, if there are both trailing and leading zeroes remove, e.g. 010.0 will be 10.

Thanks.

Expert:  John D replied 2 years ago.

As you know these different requirements which will take some time. Will see what I can do when I have some time

John D, Bachelor's Degree
Category: Microsoft Office
Satisfied Customers: 9659
Experience: Bachelor of Science - Engineering Consultant
Customer: replied 2 years ago.

if you can't help within the next hour, I might have to ask another expert and click 'not satisfied.' i won't ofcourse leave a bad review.... if you do it though soon, i will rate again.........

Expert:  John D replied 2 years ago.

Yes I can start on it as soon as I finish what I am on now. Should have it ready in 30 to 45 mins

Do you want all three conditions combined in one formula, or three separate formulas

Customer: replied 2 years ago.

probably all in one formula, though for each file I won't need each condition, but at least might require all three. is it okay to use it on a file even of all three conditions would be utilized?

Expert:  John D replied 2 years ago.

Yes you can use the combined formula in files where there is only or two or three conditions

Here is the combined formula for B2 which converts the code in A2

=IF(RIGHT(IF(LEFT(A2,1)="0",RIGHT(A2,LEN(A2)-1),A2),2)=".0",LEFT(IF(LEFT(A2,1)="0",RIGHT(A2,LEN(A2)-1),A2),LEN(IF(LEFT(A2,1)="0",RIGHT(A2,LEN(A2)-1),A2))-2),IF(LEFT(A2,1)="0",RIGHT(A2,LEN(A2)-1),A2))

John D, Bachelor's Degree
Category: Microsoft Office
Satisfied Customers: 9659
Experience: Bachelor of Science - Engineering Consultant
Customer: replied 2 years ago.

that didn't work.........here is the file.............the item is in column D. I changed your formula to C.

Expert:  John D replied 2 years ago.

Ok I can only look at the file and see what's going on later this afternoon as I really have some deadlines to meet. So I will opt out in order not to cause any delay in your project. I have no problem if you want other experts to use my formula.

If you don't get any response after a while let me know and I will try to help

Expert:  Rachel-Mod replied 2 years ago.

Hi, I’m a moderator for this topic. It seems the professional has left this conversation. This happens occasionally, and it's usually because the professional thinks that someone else might be a better match for your question. I've been working hard to find a new professional to assist you right away, but sometimes finding the right professional can take a little longer than expected.

I wonder whether you're OK with continuing to wait for an answer. If you are, please let me know and I will continue my search. If not, feel free to let me know and I will cancel this question for you. Thank you!

Customer: replied 2 years ago.

sorry, please DON't CANCEL. I will try to get a response from the same expert...

Expert:  John D replied 2 years ago.

Ok I just had a chance to check your last file. The reason the formula in D was not working is because you have not copied the formula in D correctly. Here, I fixed the formulas and extended it down to the last row

http://www.filesharesite.com/files/201209/1347073203DG_LD_FINAL_NEW2.xlsx

Please remember to rate the solution as the last additional modification that you have requested lately has not been rated yet

Thanks

John D, Bachelor's Degree
Category: Microsoft Office
Satisfied Customers: 9659
Experience: Bachelor of Science - Engineering Consultant
Customer: replied 2 years ago.

i'll be glad to rate you positively. can you just correct the first row? There is a leading zero. Probably because this is the only two digit value.

Expert:  John D replied 2 years ago.

Thanks

Allowing for the extra 0 in the same formula will require a totally different and rather complex formula. Instead I will add an extra column with a separate step to remove the extra leading 0

On it now..

.

Ok done. Took over half an hour to do that change mainly because the file was bloated and kept hanging. Then I decided to fix the file before applying the new formulas.

http://www.filesharesite.com/files/201209/1347117961DG_LD_FINAL_NEW2a.xlsx

Customer: replied 2 years ago.

For some reason, the formula you placed in this file is skipping and looking at the row above, but this only starts after row 11. Please see file and help!

Expert:  John D replied 2 years ago.

I am a bit confused as I have created about 10 different formulas and I can't remember what these particular formulas are supposed to do. And also the file does not look familiar at all

Did these number formats exist in the file when the formulas were created?

If so, could you send me back the same file which I created these formulas on

If not then the formulas that I created should work fully on the original file, in which case a new formula needs to be created to cover the number formats that were not there before. In that case I suggest that you post this in a new question as I am going to be really busy in the coming few days

Thank you

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

• My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
< Last | Next >
• My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
• Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
• This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
• Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
• I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
• Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
• Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland

• jstinehelfer

Satisfied Customers:

36
A+ Comptia Certified computer repair
< Last | Next >

jstinehelfer

Satisfied Customers:

36
A+ Comptia Certified computer repair

JasonJames122

Satisfied Customers:

0
I manage all information systems (network of Windows PC's and servers with Microsoft Office products) for a small business

Jess M.

Satisfied Customers:

301
Computer Software Specialist for more than 10 years

The-PC-Guy

Satisfied Customers:

274
20 years experience providing remote computer support

125

Chris L.

Satisfied Customers:

124
Certified Expert with over 10 years experience.

IT Miro

Satisfied Customers:

97
Bachelor's Degree in Information Technology, Microsoft Certified Professional

Related Microsoft Office Questions

Chat Now With A Microsoft Office Technician
John D
385 Satisfied Customers
Bachelor of Science - Engineering Consultant