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: 9657
Experience:  Bachelor of Science - Engineering Consultant
53785
Type Your Microsoft Office Question Here...
John D is online now
A new question is answered every 9 seconds

I need to figure out how these numbers would be if right justified

Resolved Question:

I need to figure out how these numbers would be if right justified or left justified. Please help me do it but also explain the logic. Also these numbers need to be at least three digits, max 5. If not, should they have leading or ending zeroes based on the justification.

The numbers, as an example, are:

12345
1234
123
12
1
Submitted: 1 year ago.
Category: Microsoft Office
Expert:  John D replied 1 year ago.

Hi again,

 

Is this related to the same issue that we were working on or is it something else?

 

 

Customer: replied 1 year ago.


actually, yes. I need the answer to this to post the question you asked. I am trying to figure out where the decimal goes with these other codes.

Expert:  John D replied 1 year ago.

Ok could you show me the desired result for each of these numbers so I can understand how you want them formatted and up the formula or macro to replicate the results

 

 

Customer: replied 1 year ago.


i am not sure about your question. you see my problem is: the data i have is just 2-5 numbers. they actually represent diagnostic ICD-9 codes. These codes have decimals, but the data I have does not have that. I know there is a logic based on whether the data has been right justified or left justified. But i can't get that information. So I am trying to figure it out.


 


Thus,


12345 could be either 123.45 or 12.345


1234 could be 12.34 or 123.40


123 could be 12.3 or 123.0


12 gets one leading zero first so 012 which could either be 01.2 or 012.0


 


however, to determine this, i need to know if they used left or right justification.


 


if i could figure that out, i will know where the decimal goes.

Expert:  John D replied 1 year ago.

Ok let's start with right and left justified numbers.

 

If the numbers are entered as 'text' excel automatically left justifies the number. If it is entered as numbers Excel right justifies the number

 

Now are they entered, as text or as numbers?

 

 

If you can send me the file I will be able to tell

 

 

Customer: replied 1 year ago.

ok, i went back to the code books and came up with some answers that should be of help.

 

It is left-justified.

 

So in the file that I linked in the other question you will see numbers that are left-justiifed so that:

 

if

 

12345---> it should be 123.45

1234--> ..........123.4

three and 2 digit numbers can be ignored because they are invalid

 

 

Also, letters are included in the justification so:

V0451 will be V04.51

V567 will be V56.7

Expert:  John D replied 1 year ago.

Ok so

 

1 --> ignore

12 --> ignore

123 --> ignore

more than 3 digits --> place decimal after 3rd digit

Correct?

 

 

What about the code that has a leading character, e.g.

 

V123 --> ???

V1234 --> ???

V12345 --> ???

 

 

Customer: replied 1 year ago.


please read my edit reply prior, but you are right....

Expert:  John D replied 1 year ago.

I see.

 

So the letter is counted as a digit, and the decimal will still be placed after the 3rd digit

 

Ok I will start on it shortly and get back to you as soon as I'm done

 

 

 

Expert:  John D replied 1 year ago.

Ok here you go

 

http://www.filesharesite.com/files/201209/1346961670DG_LD_FINAL_1.xlsx

 

I combined the two formula columns into a single column. Final formulas and results are in column B.

 

All results are left justified

 

Let me know if it needs any tweaking

 

Will now start on the other file as soon as I finish the job on hand

 

 

 

 

John D, Bachelor's Degree
Category: Microsoft Office
Satisfied Customers: 9657
Experience: Bachelor of Science - Engineering Consultant
John D and 3 other Microsoft Office Specialists are ready to help you
Customer: replied 1 year ago.


Sorry, just a slight tweak. Please incorporate three digits again (we previously ignored them).

Expert:  John D replied 1 year ago.

Thanks

 

So you first add enough 0's to make the code at least 4 digits long, then place the decimal after the 3rd, as such:

 

1 --> 0001 --> 000.1.

12 --> 0012 --> 001.2

123 --> 0123 --> 012.3

1234 --> 123.4

12345 --> 123.45

 

Please correct as necessary and send back

 

 

 

 

 

Customer: replied 1 year ago.


no. the zeroes have already been added...


 


so,


 


there are no 1s


there are no 12s


123 -->123.0


0123-->012.3


1234 --> 123.4


12345 --> 123.45

Expert:  John D replied 1 year ago.

Ok then please send me the file where the 0's have been added so I can set up the formulas on it (the file that I have does not have any added 0's)

 

 

 

 

Expert:  John D replied 1 year ago.

Ok here are the new formulas meeting the last requirement. Please check it and let me know

 

http://www.filesharesite.com/files/201209/1347031882DG_LD_FINAL_NEW1.xlsx

 

 

Customer: replied 1 year ago.


Can you respond to my previous question on the trailing/leading zeroes....I haven't gotten any responses yet....

Expert:  John D replied 1 year ago.

I have indeed responded at 10:30 AM (pacific). Here is the link

 

http://www.justanswer.com/microsoft-office/742v6-remove-trailing-zeroes-decimals-keep.html

 

 

 

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