• 100% Satisfaction Guarantee

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

# 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: 3 years ago.
Category: Microsoft Office
Expert:  John D replied 3 years ago.

Hi again,

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

Customer: replied 3 years 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 3 years 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 3 years 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 3 years ago.

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 3 years 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 3 years ago.

Ok so

1 --> ignore

12 --> ignore

123 --> ignore

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

Correct?

V123 --> ???

V1234 --> ???

V12345 --> ???

Customer: replied 3 years ago.

Expert:  John D replied 3 years 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 3 years 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: 9666
Experience: Bachelor of Science - Engineering Consultant
Customer: replied 3 years ago.

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

Expert:  John D replied 3 years 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 3 years ago.

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 3 years 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)

Customer: replied 3 years ago.
Expert:  John D replied 3 years 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 3 years ago.

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

Expert:  John D replied 3 years ago.

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

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
< Previous | 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:

481
Computer Software Specialist for more than 10 years

### The-PC-Guy

#### Satisfied Customers:

450
20 years experience providing remote computer support

### James K.

#### Satisfied Customers:

260
Technical Director of IT Company

### IT Miro

#### Satisfied Customers:

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

### Chris L.

#### Satisfied Customers:

137
Certified Expert with over 10 years experience.