How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask John D Your Own Question

John D
John D, Bachelor's Degree
Category: Microsoft Office
Satisfied Customers: 9655
Experience:  Bachelor of Science - Engineering Consultant
Type Your Microsoft Office Question Here...
John D is online now
A new question is answered every 9 seconds

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: 1 year ago.
Category: Microsoft Office
Expert:  John D replied 1 year 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: 9655
Experience: Bachelor of Science - Engineering Consultant
John D and other Microsoft Office Specialists are ready to help you
Customer: replied 1 year 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 1 year 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: 9655
Experience: Bachelor of Science - Engineering Consultant
John D and other Microsoft Office Specialists are ready to help you
Customer: replied 1 year 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 1 year 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 1 year 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 1 year 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: 9655
Experience: Bachelor of Science - Engineering Consultant
John D and other Microsoft Office Specialists are ready to help you
Customer: replied 1 year ago.


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


 


 


http://wikisend.com/download/309262/DG_LD_FINAL.xlsx

Expert:  John D replied 1 year 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 1 year 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 1 year ago.

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

Expert:  John D replied 1 year 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: 9655
Experience: Bachelor of Science - Engineering Consultant
John D and other Microsoft Office Specialists are ready to help you
Customer: replied 1 year 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 1 year 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 1 year 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!


 


http://www.filesharesite.com/files/201209/1347393425DG_LD_final_9-11_after_dx.xlsx

Expert:  John D replied 1 year 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

 

 

 

 

 

JustAnswer in the News:

 
 
 
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.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...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
 
 
 

Meet The Experts:

 
 
 
  • jstinehelfer

    Information Systems Manager

    Satisfied Customers:

    36
    A+ Comptia Certified computer repair
< Last | Next >
  • http://ww2.justanswer.com/uploads/JS/jstinehelfer/2012-6-6_215146_Pictureofme1.64x64.png jstinehelfer's Avatar

    jstinehelfer

    Information Systems Manager

    Satisfied Customers:

    36
    A+ Comptia Certified computer repair
  • http://ww2.justanswer.com/uploads/JA/JasonJames122/2011-12-16_135647_jasonjamesheadshotweb.64x64.jpg JasonJames122's Avatar

    JasonJames122

    Computer Enthusiast

    Satisfied Customers:

    0
    I manage all information systems (network of Windows PC's and servers with Microsoft Office products) for a small business
  • http://ww2.justanswer.com/uploads/JE/jessmagz/2012-6-6_18129_jm.64x64.jpg Jess M.'s Avatar

    Jess M.

    Computer Support Specialist

    Satisfied Customers:

    301
    Computer Software Specialist for more than 10 years
  • http://ww2.justanswer.com/uploads/CH/chutz747/2011-11-6_14231_me.64x64.jpg The-PC-Guy's Avatar

    The-PC-Guy

    Computer Manager

    Satisfied Customers:

    274
    20 years experience providing remote computer support
  • http://ww2.justanswer.com/uploads/SP/spherrod/2012-6-6_174244_1000852.64x64.JPG Steve Herrod's Avatar

    Steve Herrod

    Computer Support Specialist

    Satisfied Customers:

    125
    Trained in Microsoft Office from 2000 through to latest version 2010.
  • http://ww2.justanswer.com/uploads/SE/Seashore2011/2011-12-6_33418_111205223015.64x64.jpg Chris L.'s Avatar

    Chris L.

    Support Specialist

    Satisfied Customers:

    124
    Certified Expert with over 10 years experience.
  • http://ww2.justanswer.com/uploads/KR/krkljatorm/2012-6-24_153417_ITMiro.64x64.jpg IT Miro's Avatar

    IT Miro

    Computer Scientist

    Satisfied Customers:

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