Solved

Excel 2010 - Formatting column values after paste

Posted on 2014-09-26
7
189 Views
Last Modified: 2014-09-26
Dear Experts,

Can you please have a short look on the attached file, it contains a pasted column in the past in A, which somehow differently formatted by Excel. (it understands some of them as day and month)

The pasted column
Could you advise how that could be formatted equally for the whole column data, as expected in column B so showing them as number with one decimal value

Thanks,
ExcelFormat.xlsx
0
Comment
Question by:csehz
  • 4
  • 2
7 Comments
 
LVL 24

Expert Comment

by:Phillip Burton
ID: 40346224
I don't know what format your original data is in before pasting.

Before pasting, I would highlight column A, and go to Home - Number, and format it as Text.

Then paste it. If your original had one decimal place, your text will have as well.
0
 
LVL 24

Expert Comment

by:Phillip Burton
ID: 40346231
If you then want it as a number, highlight column A, and go to Home - Number, and format it as Number.

Then do a find and replace, and replace the decimal point or period character (the ".") with another one (".").

That forces it to re-evaluate it as a number.
0
 
LVL 1

Author Comment

by:csehz
ID: 40346261
Thanks but the issue unfortunately that the data is pasted and the source is not known to paste it again
0
Independent Software Vendors: 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!

 
LVL 24

Accepted Solution

by:
Phillip Burton earned 500 total points
ID: 40346273
OK - in which case you need this code in B2, and copy it down:

=IF(A2=0,"",IF(VALUE(A2)<30000,VALUE(A2),MONTH(A2)+DAY(A2)/10))

Open in new window

0
 
LVL 1

Author Closing Comment

by:csehz
ID: 40346295
Thanks very much, that works great
0
 
LVL 27

Expert Comment

by:Glenn Ray
ID: 40346354
You could also create a custom date format of m.d which would display the date with the month and date separated by a decimal (period).
custom date format
However, the "6.0" and "5.0" values - and the results you ask for (6 and 5) don't work since no date value is shown.  They would remain unless the cell is converted to an actual date like the others.

Regards,
-Glenn
0
 
LVL 24

Expert Comment

by:Phillip Burton
ID: 40346361
nice :-)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

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