Solved

EXCEL FORMULA

Posted on 2014-10-10
7
181 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
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

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
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‚Ķ

617 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