Replace Dots In Dates With Valid Date Separator
Feb 19, 2009
I have a SAP application that outputs a field of data from a specific query. One column, the date, is produced in the format 18.02.2009. Is there any excel 'trickery' that can convert this into a standard british date format i.e. 18/02/2009 & then allow me to sort the entire data field by ascending date order?
View 6 Replies
ADVERTISEMENT
Apr 7, 2014
I got VBA line that will replace Dots(.) for Comma's (,)
[Code] .........
The problem is its only take collum I and i want it so that it will take I and J.
am I doing something wrong here that it only take I and not Both ? I and J?
View 4 Replies
View Related
Sep 14, 2006
I've searched the forum prior to posting, but have not found exactly what I need and am not familiar enough with macro code to modify based on an existing post.
Here's what I'd like to do: I have a worksheet with columns "A" through "J" which contain production scheduling information. Column "H" contains an estimated completion date - I need a macro to sort the rows base on the completion dates (in ascending order) when I request the macro to run - I'm attaching the macro to a button control. One concern is, the column contains some excel default dates of 1/0/1900 that I don't want to include in the sort because they should stay at the bottom of the sheet, rather than at the top. Any rows with the 1/0/1900 don't yet contain information, only the default date based on the calculations.
View 6 Replies
View Related
Dec 28, 2011
I have a column of over 20,000 rows, showing employee hire dates. For the purposes of a specific calculation, I want to replace all the hire dates that are prior to 1/1/2011 with 1/1/2011. Is there a simple way to do this all at once with a Replace statement in my code without having to look at each record individually?
I know how to replace one specific date with another all at once, but I don't know to do it when I'm looking for more than one specific date.
View 6 Replies
View Related
Apr 5, 2013
I import some text from a web page. The data is separated in rows and columns so it easily slip into cells in a nice row and column manner.
Now, I want to parse some names in one column (column A:A). The names do not reside in any other column. I want to change the content for those cells that is "Alpha Beta" into just "Beta", and I only want the replacing to be carried out on a specific sheet (named "Import").
I've recorded a VBA script and it look like this:
Cells.Replace What:="Alpha Beta", Replacement:="Beta", LookAt:=xlPart,
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False
But, when I try different setting for the range I get the same script, I mean, for when I try the search & replace with settings for both the whole workbook and for the current sheet.
How can I control the search & replace with VBA to only be valid for a defined sheet?
View 5 Replies
View Related
Jan 22, 2007
Attached is the spreadsheet where I was trying in to accomplish the following.
1. I have two date columns (From date and To date) eg. 1-Jan-07 to 31-Dec-07.
2. I also have other columns having month-yyyy. eg. March-07, Aug-08 etc.
3. I need to compare Mar-07, Aug-08 etc. with From and To date. If monh-yy falls within these dates, I should populate "1" in that cell.
View 3 Replies
View Related
Oct 12, 2007
I did a search in google and found this formula that's supposed to work:
(Please see the following)
To count dates within a range (inclusive):
B1 = start date = 1/1/2006
C1 = end date = 7/1/2006
=COUNTIF(A1:A10,">="&B1)-COUNTIF(A1:A10,">"&C1)
Then it should be:
=COUNTIF(A1:A10,">="&1/1/2006)-COUNTIF(A1:A10,">"&7/1/2006)
But this only counts the number of cells that has the date, but not based on the range, why it doesn't work?
View 12 Replies
View Related
Aug 9, 2008
I have a macro that searches and replaces dates (both text and date formats) in all files in a folder. It works if I initiate it from the VBA Editor, but not if I initiate it from the file.
It seems that the worksheet is not activating. Please take a look and let me know what I can try.
Things I have already tried: Window methods, such as minimizing the workbook that contains the macro, activate next, etc. Also putting the macro in Personal.xls and retrieving the values from the other file.
Where it hangs is right after the first workbook in the folder is opened. I tried to get it to select A1 in the active sheet but that cell is not selected in either the macro workbook or the newly opened workbook.
Also, if there is an easy way to exclude my macro file (name contains ZZZZ) from the FileSearch............
View 9 Replies
View Related
Apr 28, 2014
The question is plain and simple. I have this date:
Oct 25th 2011 11:28
I want to convert it to a valid date format so I can use it for further processing.
View 2 Replies
View Related
Jan 9, 2008
When a user inputs a month and then a day, I want to be able to check to make sure that the day entered is possible in that given month. Is there a way to do that which is not too complicated?
View 9 Replies
View Related
Aug 19, 2012
Any way to check if data entered is a valid date using a VBA function/routine?
For example, cdate() and isdate() functions accept dates like 31-Feb-12 and 29-Feb-11 when they are not valid.
If the cell is formatted as date format, then Excel replaces hyphens with forward slashes for dates, except invalid ones like 31-Feb-12 and 29-Feb-11, so in these cases I can test for existence of forward slashes in the following way
Len(Mid(pCell, InStr(pCell, "/") + 1, Len(pCell) - InStr(pCell, "/"))) 7
However this approach fails for Input boxes. Obviously I can't convert the Input box response using cdate function as it will incorrectly accept 31-Feb-12 as a valid date.
Any routines that will work for both cell entered and Input box entered dates?
View 5 Replies
View Related
Aug 31, 2007
want to do something simple, and it just wont paste. not sure why. anyone care to look it over and tell me what i'm doing wrong here?
'Insert Date Information
Dim vDate As Date
Range("D2").Select
ActiveCell.FormulaR1C1 = Date
vDate = Date
'Get date from user
Dim dDate As Date
vDate2 = Application.InputBox(Prompt:="Type in the due date for the location." _
& Chr(13) & Chr(13) & "*If you want the date to default to " & Date + 5 & " then leave the field blank.", _
Title:="Due Date", Type:=1 + 2).............
View 3 Replies
View Related
Jan 23, 2010
Please refer to attached spreadsheet
I receive data from an external source and it displays what appears to be dates in column B.
In column G I apply a formula to display month/year info.
It turns out that some of the data in column B is valid date data, but other data imports as plain text and therefore I can't get the month/year info that I require.
I have attached just a small example.
I get this data monthly and it usually covers thousands of rows and therefore impractical to change manually.
View 6 Replies
View Related
May 22, 2013
I'm wanting to use Excel's built in replace function to replace ANY date with "Call:"
I'm not going to go into details about why, but I cannot use a code, as I only want to change them at specific times.
The dates are currently formatted as 12/09/2009. So I need to change the 12/09/2009 and any other date there may be to "call:" without having to go through every possible date.
View 9 Replies
View Related
May 2, 2007
I have 1 row of user entry cells (A1:Z1). To keep it simple, let’s say A1 is always 0 and Z1 is always 100.
The user can enter any positive number in any of the cells. For Case 1, let’s say ‘20’ in M1.
I want a set of formulas in A2:Z2 that fills in the values with straightlined values from 0 to 20 from A2:L2 and 20 to 100 in N2:Z2.
For Case 2, the user enters ‘10’ in M1 and ‘60’ in T1 and the formulas in A2:Z2 fill in the appropriate values that connect the empty cells (i.e., 0 to 10, then 10 to 60, then 60 to 100).
Basically, a user enters 1 or more numbers in 1 row, and the second row fills in all the non-entered cells with #s that are straightlined, thus ‘connecting the dots’.
I think a bunch of nested IF statements might work, but it’ll be hairy and nested IF statements are a resource hog. Any better ideas? I’m think maybe some INDEX and MATCH functions.
View 9 Replies
View Related
Mar 30, 2014
I am planning on creating a map of a badminton court. I am hoping to record each hit of the shuttlecock with a dot on the map. Of course I want this to be inputted by data rather than manually inserting a circle shape and placing it in the correct location each time.
is there any way to do this in excel?
View 14 Replies
View Related
Dec 18, 2008
I use a black dot (Unicode hex 25cf ) and I would like
to count those dots.
I am using the formula below but it doesn't seem to work.
=COUNTIF(A9:A14,CHAR(25CF))
View 11 Replies
View Related
Dec 16, 2009
Cells E39:E53 are conditionally formatted to fill red if cell $AB$13=the cell 3 to its left .. eg: cell E39 would fill red if cell B39 (the cell 3 to the left of E39) is equal to cell $AB$13
Only one cell in the range will meet the condition at any time.
I also have the same range conditionally formatted to fill black if cell $AF$13=the cell 3 to its left .. eg: cell E39 would fill black if cell B39 (the cell 3 to the left of E39) is equal to cell $AF$13
Ranges F39:F53, and G39:G53, H39:H53 etc etc etc (all the way up to X39:X53) are all conditionally formatted the same way.
What I would like is for the cell that fills red in the first range to have a line connecting it to the cell that fills red in the second range, etc etc etc.
And the same for the cells that fill black.
Creating a chart from my data is not an option for other reasons, so I'd like to explore this possibility.
View 9 Replies
View Related
Aug 13, 2009
I would like to try and achive a conditional format that will require a lookup function. when the condition is met it places Yes or No into a cell and changes that row colour to red for the NO condition. and after 10 days from now the rowcolour is removed.
View 6 Replies
View Related
Apr 15, 2008
I have about 90+ lists of data which looks like this: (the dots are blank cells)
Set 1
D0 Jimmy
...
D1 Keith
D2 Dave
...
...
D3 Sandra
Set 2
...
D0 Andy
D1 Ryan
...
...
...
...
...
D2 Lee
Each list was originally a set of names and i have populated the "D1, D2" cells (where D1 = the first name, D2 = the second, etc).
Is there any way, on a seperate sheet i can get a list which shows the following (ie. no spaces between lines of data):
Set 1 Set 2
Jimmy Andy
Keith Ryan
Dave Lee
Sandra
Is this possible through a VLOOKUP?
View 11 Replies
View Related
Aug 16, 2008
I have several hundred rows of date/times which I need to modify just the date (for example 08/23/2007 11:00 to 08/15/2008 11:00). Each row may have a different time so it is just the date I'm targeting for change.
If I manually use the replace dialog, replacing 08/23/2007 with 08/15/2008 works just fine. However, if in code I attempt to use the Cells.Replace function, it does not locate any data to change.
I have found that if I search for the string 8/23/2007, the dates are located and changed. Only when I attempt to find the fully formatted date 08/23/2007 does the function fail.
View 6 Replies
View Related
May 3, 2009
look at the attached file - it was a CSV file. i want to convert the column of dates to say Mar 14 2009 type date. but it only converts some of them.
note some are on the left and some on the right.
View 5 Replies
View Related
Oct 22, 2012
black.blue.red.yellow.green.white
I'd like to extract just "blue.red.yellow.green" to the following spreadsheet column, keeping the intermediate dots, but getting rid of the first/last words and their succeeding or preceding dots.
I've tried using RIGHT, LEFT, MID formulas unsuccessfully
View 3 Replies
View Related
May 1, 2008
On my indows XP box, when I type a number into an Excel spreadsheet and it is in "General" format, the numbers appears like this (examples):
1234567
or this:
7.125
or this:
8.1
I want them to look just like that except for the first one, which I want to have the thousands separator:
1,234,567
I don't want to use a number format because
Excel makes you set a specific number of decimal places...I want the decimal places to float depending on how many decimal places there are in the entered number (just like the "General" format does). So basically, I want a "General" format, but with thousands separators (commas).
I tried using something like ###,###.### but that leaves a decimal place at the end of each integer (i.e. "123,456.") which is also not acceptable.
View 11 Replies
View Related
May 14, 2008
The attached workbook has dates in column C, although some of these dates are just strings.
I'm trying to write some vba that will tell me how many of the cells in column C contain a date (or looks like a date) that is greater than (after) the real date in cell G1.
At the moment I loop through the cells in column C and can ascertain, which dates can be counted, then copy one row over at a time, but I'm looking for a slicker (perhaps one-liner) answer, perhaps by copying a block of rows in one go. The aim is to copy those rows to another sheet. There are many more rows than in the attached, and many sheets to process, and I have no control over the format of the dates/strings in column C. Currently it takes about 20 seconds to copy over the necessary rows, but I'm looking for it to happen much more quickly; current thoughts are to sort on column C (sorting on column C anything that looks like a number as a number - which has it's own problems!), have a count of dates satisfying the criterion (say using a worksheet formula such as COUNTIF or SUMPRODUCT, perhaps also using EVALUATE) then copy a block of rows in one go.
not very relevant, but the existing code is something like this which highlights rather than copyies the rows(included in the attached): ...
View 4 Replies
View Related
Mar 19, 2009
I have following data in one coloumn & in each cell it contains both txt & number. i want to separate these text & number in separate cell.
01533FHGB06533FFHHHGJJ15445W153GJGJ0656HJHJ01533DFDFGB06554FFHHHGJJ15445W153GJGJ0656HJHJFLKFSH54646FGG56464DSHJDJD54346
View 9 Replies
View Related
Oct 17, 2008
I have a column with a number of strings looking like below examples
View 3 Replies
View Related
Jun 27, 2005
we in india to any number put comma as stated below
ie 15,13,10,565.00
fifteen crores thirteen lacs ten thousand five hundred sixty five only.
00,00,00,000.00
but excel we have only thousand separator.it separates the number after every thousand.
can it possible in excel to formate number as per our style.
00,00,00,000.00
View 5 Replies
View Related
Jul 1, 2011
I have made some macros for importing data from a txt fileand to sort the data into a sheet ready to be exported into another txt file. I have made VBA to work with "." as decimal separtor within the spreadsheet.
But, when I run the macro to export the data into a txt file (I have used the macros from this site [URL] .....) it automatically changes all "." into ","
But why?!?
I need the txt file to load data into another program, and this program need the use of "." as decimal separator - and not ",".
I'm using an European windows system.
View 5 Replies
View Related
Jan 20, 2012
I have data which needs to be formatted with a thousand separator as below.
400.00
1,000.00
250,000.00
How can I do this without it displaying as below
,400.00
I do not want it reflected in the case of hundreds.
View 3 Replies
View Related