Solved

EXCEL FORMULA

Posted on 2014-10-10
7
171 Views
Last Modified: 2014-10-10
Hello

I am look for a way in Excel to convert a String column-A (fix lenght of 8 characters) to number column-B as follow

COLUMN-A (fix lenght of 8 char)      COLUMN-B (number)

12345678   will give           123456,78
00000006 will give                         0,06
00034434 will give                    344,34
00000011 will give                        0,11

Thank you for your help
Rgds
0
Comment
Question by:gadsad
  • 3
  • 2
  • 2
7 Comments
 
LVL 6

Accepted Solution

by:
johnb25 earned 500 total points
ID: 40372750
If text in Col A
=ROUND(VALUE(A1)/100,2)

John
0
 
LVL 19

Expert Comment

by:helpfinder
ID: 40372759
try this one
=LEFT(A1,6)&","&RIGHT(A1,2)
0
 

Author Comment

by:gadsad
ID: 40372771
Very nice, but for 0,06 it displays 000000,06 (it keeps the 8 characters even for numbers)
Any way to change it afterwards  to 0,06 maybe?
Thanks
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 6

Expert Comment

by:johnb25
ID: 40372774
@ helpfinder, I think the ask was for a number, your formula is Text.
I am taking the , to be a European decimal format.

John
0
 

Author Comment

by:gadsad
ID: 40372788
Sorry I do not understand your answer... what is @helpfinder?

Yes the , is indeed the European decimal format

Thanks
0
 
LVL 19

Expert Comment

by:helpfinder
ID: 40372796
then try to remove leading zeros from my result by multiple it with 1 in next cell - see attachment
you can have additional columns then, or just to hide helping columns
sample.xlsx
0
 

Author Closing Comment

by:gadsad
ID: 40372813
perfect
Thank you
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Leon
Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question