Remove Spaces From Imported Dates

Apr 15, 2008

I use a program that can export data into Excel. For the most part, it works fine. except it doesn't correctly handle dates. For some reason, when it pastes a date into excel it includes 8 or 9 (depending if the month is 1 or 2 digits) spaces in front of the date which makes calculations with these dates impossible unless you go into each cell and delete the spaces (or do Find / Replace).

Is there a way I can create a non-VBA formula that will reference any one of these cells and some how identify what the date is & then that cell can be the date I can calc on? I.e., A1 is the date with the spaces in front, B2 is the cell that will reference A1 and produce, as the contents of B2, the date in A1. I can then use B2 in calculations.

Note: the month formats possible are: M/DD/YY (Jan. - Sept.) & MM/DD/YY (Oct. - Dec.). There are no other variations.

View 8 Replies


ADVERTISEMENT

Convert Imported Text Dates To True Dates

May 18, 2007

I have a very large spreadsheet that comes out of SAP and it brings out the majority of cell entries as text ie putting a ' at the begining of any number. the problem that i have is with the cells that have a date in them ie '19/04/07. I have tried varioous methods to remove this and turn the cells into date format but to no avail.

Also i do not get the option to convert text to number

View 6 Replies View Related

How To Remove Space From Imported Data

Nov 20, 2011

I have exported a aging report from SAL to excel. Now the problem is each figures in the report is not in number format. when i checked each cell contains a space after the numbers so excel does not treat them as a number format.

how i can remove all the spaces in those cells. find and replace doeasnt work.

View 5 Replies View Related

Remove Numbers From Imported Text File

Mar 24, 2007

I need to clean out unnecessary data from a file, (see attached text file), I'm not sure how to go about this in excel. basically every file starts with 9 cells that needs to be deleted, two cells of real data then one with garbage that needs to be deleted, it goes like that for 40 cells, then again 10 cells of garbage that needs to be deleted, then 40 of real data and goes like that up to 3000 lines, I know it sounds confusing but if you take a look at attached file, at the end I need to have
all cells full of data

View 5 Replies View Related

Imported Dates Being Seen As Text

Jan 17, 2008

The problem i'm having is that these data downloads come off the server like this:

01/14/08

so i'm getting the green triangle error "text date with 2 digit year"

with the option to covert it to 19xx or 20xx.

I have to manually select this text and select 20xx before it is recognized by excel for what it is. only after this is the conditional format rule processed, and my 5 day old dates turn their appropriate colors.

When i set up a macro record while i do this date conversion, it does not record any command for this conversion.

Is there any code i can enter that will automatically do this conversion process for me without having to do it by hand?

View 5 Replies View Related

HTML Text Imported As Dates

Mar 27, 2008

I have 85 Html files that I open in excel. The files have a bunch of columns with numbers. Excel handles most of them properly, but if the number looks like a date, it is imported as a date (which it shouldn't be). For example if the number is 13-1, excel handles it fine, but if the number is 12-1, excel thinks it is a date and imports Dec-01. How do I get excel to import it as 12-1?

View 6 Replies View Related

Date Formatting In VBA :: Dates That Are Imported As Text

Sep 12, 2007

to change the format of some dates that are imported as text.

In a previous request ...

[url]

I was shown a way to convert dates correctly.

This solution works perfectly when carried out manually, but doesn't work if a record a macro and then replay it - only some of the dates are converted.

Here is a small sample of the dates I'm working with...

04/09/2008
05/10/2007
08/10/2007
14/09/2007
15/09/2007
17/09/2007
17/09/2007
17/09/2007
19/03/2008
20/09/2007
21/09/2007
21/09/2007
25/09/2008
27/09/2007
28/09/2007
28/09/2007

And here's the recorded macro, deliberately left exactly as is

View 14 Replies View Related

Dates Imported From An External Application In The Format

Aug 9, 2007

I have dates imported from an external application in the format:

71205

for december 5th 2007, for example

View 9 Replies View Related

Convert Imported Dates & Add Periods Based On Conditions

Dec 7, 2007

I import date information in text format and need to add to the date. My date info in in column "J" and in Column "K" I would desire to write a formula that allows me to to the following. My data looks like this in text: yyyymmdd

I desire to look in column "E" and I have 3 different variables. "J", "K", "L".
If column "E" has a j add 30 to the years; K add 35 years and L add 38 years.
for Example: 19630923 j = 19930923 k = 19980923 L = 20010923

View 5 Replies View Related

Remove The Spaces...

Feb 26, 2009

I have a cel that has about 100,000 phone numbers and at the end of some and before sum, there are spaces added to end. is there a formula, or a way to take everything away except for the 10 digit number?

View 5 Replies View Related

Remove The Spaces

Dec 11, 2007

I am trying to remove spaces in front of a number (currently formatted as text)

I have tried "Text to Columns", "Trim", and other suggestions in previously threads.

I have copied bank statement amounts from an e-mail and the $ amounts have one Space in front of them. When I use the Trim function, and then a paste special, I still cannot get rid of the space, and so cannot add up the amounts in this column.

Ex:

*7 Dec 2007*DEPOSIT*3,917.63
*7 Dec 2007*DEPOSIT*1,890.58

View 9 Replies View Related

Remove Trailing Spaces?

Sep 18, 2013

I have a column of data in which each cell contains a line of text. Each line of text has spaces after the letters end and there doesn't seem to be a consistent number of trailing spaces.

I can clean up the data using the TRIM function but is it possible to use the TEXT TO COLUMNS functionality?

View 2 Replies View Related

Remove Spaces And Stack

Aug 28, 2009

See attached. I want to use column A to create column B (the expected result) by way of a formula. Index?

View 6 Replies View Related

VBA To Remove Punctuation And Spaces

Jan 23, 2008

I need VBA to remove all punctuation and spaces from cells. What I want is to do this from the same columns every spreadhseet that I open and when it gets to row 700 to stop. So I guess a range for this example could be A1:B700.

View 9 Replies View Related

Cannot Remove Trailing Spaces

Sep 24, 2006

I have an excel file with two sheets . One containing the updated prices with its code ( Sheet1) and the other containing the old prices with the same codes (sheet2). Now after several trials to copy the new prices from sheet 1 to sheet 2 with check if the code is same . ( I couldn't )

So how to get rid of the 20 spaces from Sheet1 column A.

View 9 Replies View Related

Remove Trailing Spaces

Oct 29, 2006

I have written a function which works in the same way as the concatenate formula but where required it uses an underscore to make up the length (14 Characters) of the result. I seem however to have hit a minor snag when users input trailing spaces. I thought I could use trim to eliminate them but it doesnt seem to be working

Function HypCon(CorpAcct, Subdiv)

Dim n, i, iLen, iLen2 As Integer
Dim sCorpAcct, sSubdiv As String
Dim iLen3, iLen4 As Integer
iLen = Len(Trim(CorpAcct))
iLen2 = 7
iLen3 = Len(Trim(Subdiv))
iLen4 = 5..............

View 9 Replies View Related

Remove Spaces From Numbers

Jul 8, 2007

I wrote numbers in column b cells in disordered way :

1
.. 1
1
.... 1
.. 1
1

I would like to make them to be aligned in the left side by a code.

View 9 Replies View Related

Remove Superfluous Spaces

Jul 20, 2007

I convert a .pdf report to excel using Able2Extract. The output is leaving some xtra spaces inside the word. For example,

Clean in g Co st

I tried running Dave McRitchie's Trimall on the text, Sample workbook attached

View 6 Replies View Related

Remove Spaces From Text

Aug 17, 2007

I'm trying to use the SUBSTITUTE function to remove spaces from my cells in column A. The trouble is My formula is removing all the spaces from the cell. My formula is: SUBSTITUTE(A1," ","")

I do however have many cells that contain a space between characters 5 and 7 and spaces at the end of the cell which have been padded out to 15 characters long.Its only the spaces at the end of the cells I need to remove.

View 3 Replies View Related

Remove Spaces From Selection

Jan 25, 2008

I have a macro that I run after selecting a column which removes spaces. However, it processes all 65536 rows and I only want it to process the cells with values. I need to enter into an input a column and then it just removes spaces from the cells with values

Sub NoSpaces()
Dim c As Range
For Each c In Selection.Cells
c = Replace(c, " ", "")
Next
End Sub

View 3 Replies View Related

Formula To Remove Spaces Between Words

Mar 31, 2009

If I have ABC DEF in a1, is there a formula I can put in a2 to remove the space and display ABCDEF

View 2 Replies View Related

How To Remove Unwanted Spaces In Columns

Jun 8, 2013

In Column A, I have several rows of data. Some cells contain numbers and some contain text and some are blank. In Column C, I only want the numbers in Column A. I do not want the text and I cannot have any gaps in the column.

So for example:

Column A: row 1: 456 row 2: 789 row 3: text row 4: text row 5: 398 row 6: text row 7: blank row 8: 124

in Column C I need:

row 1: 456 row 2: 789 row 3: 398 row 4: 124

View 10 Replies View Related

VBA Remove Extra Spaces And Points

May 18, 2011

I have in a range several numbers that contain extra spaces and therefore these are recognized as text.

This is how the numbers would look : " 123.234.567"

How to remove the extra spaces and the points (as otherwise this will also be recognized as text)?

View 9 Replies View Related

Remove Spaces From Chinese Characters

Jan 9, 2012

I am trying to do a vlookup. I receive a report that gives the data as hyperlinks. I run a macro to remove the hyperlinks. I'm then left with a name that i want to match using a vlookup to get other data. The names are Chinese characters. I have tried using trim and clean function but its still leaving a space after the name. If i fo in manually and delete the space at the end the vlookup works fine. How to remove the spaces? i have about 5000 rows.

学员名字EliteNumber刘传佳=TRIM(A2)=VLOOKUP(B2,Sheet3!B:D,3,FALSE)刘传佳=VLOOKUP(D2,Sheet3!B1:D3550,3,FALSE)刘传佳 =TRIM(A3)刘传佳=VLOOKUP(D3,Sheet3!B2:D3551,3,FALSE)钟才富 =TRIM(A4)钟才富=VLOOKUP(D4,Sheet3!B3:D3552,3,FALSE)张杰 =TRIM(A5)张杰=VLOOKUP(D5,Sheet3!B4:D3553,3,FALSE)
刘传佳刘传佳刘传佳2001425刘传佳 刘传佳 刘传佳2001425钟才富 钟才富 钟才富800857张杰 张杰 张杰#N/A

View 8 Replies View Related

Remove Trailing Spaces Not Working

Mar 28, 2009

The below code removes trailing spaces, but for some reason it does not remove space from this, i clicked F2 and the space is still there, why does it work on some but not others?

98956P102

Sub test()
With ActiveSheet.UsedRange
.Value = Evaluate("if(" & .address & """"",trim(" & .address & "),"""")")
End With
End Sub

View 9 Replies View Related

Remove Trailing Spaces Vlookup

Jan 5, 2007

I am doing a vlookup on fields such as 02-0223. In one table, there is a space at the end of 02-0223 and in the other table, there is no space. How can I delete the space so the numbers match in vlookup?

View 7 Replies View Related

Use Trim Function To Remove Unwanted Spaces?

Jun 23, 2014

I am trying to use the trim function to remove unwanted spaces at the beginning of cells that contain an address. The entire column contains spaces prior to the street number/name.

View 14 Replies View Related

Remove Leading And Trailing Spaces In A Cell?

Dec 5, 2013

Any easy way to remove all spaces from a cell, both leading and trailing? I find it hard to believe that Excel doesn't have this functionality. I don't particulary want to write a VBA script since I have never done it but if that's the only way, I'd love to know how to write it. I have looked everywhere but obviously not in the right places.

View 4 Replies View Related

Remove Spaces And Utilize Alt+Enter Command?

Jan 29, 2013

I would like to remove spaces and utilize the alt+enter command - - I am more worried about removing the spaces than anything else at the moment.

Example:
D-1173-G-00002 D-1173-G-00065
D-1173-G-00002 D-1173-G-00065
D-1173-G-00045 D-1173-G-00064

Note: The spacing between these are not common throughout my entire column.

What I am looking for:
Example:
D-1173-G-00002
D-1173-G-00065

Example:
D-1173-G-00045
D-1173-G-00064

View 4 Replies View Related

Remove Multiple And Trailing Spaces In Cells?

Oct 16, 2013

how to remove multiple leading and trailing spaces while leave spaces in the middle of the string in place? I have tried text to columns but this does not remove the multiple spaces.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved