Solved

Excel 2010 - Formatting column values after paste

Posted on 2014-09-26
7
194 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
[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
  • 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
Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 
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

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
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.

636 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