I am trying to accomplish the following, when i enter a word in column C but in the odd row i want a macro to automatically convert that word to uppercase.
I am using the code below to convert all input on the spreadsheet to UPPERCASE. This was working fine until I added a Column that contains dates (Column D is formatted like 03/Mar/2009). So when I type in 03-03 in column D I get: 03/Mar/2009 instead of 03/MAR/2009
Can the code be tweaked to accommodate the dates?
Private Sub Worksheet_Change(ByVal Target As Range)
'Converts ALL input to UPPERCASE
Dim cel As Range Application.EnableEvents = False
On Error Resume Next For Each cel In Intersect(Target, Target.SpecialCells(xlCellTypeConstants, xlTextValues)) cel.Value2 = UCase(cel.Value2) Next cel
Is there a way to format some particular colums so that when i enter my data into the cells i do not have to keep changing the caps lock to uppercase or pressing shift key which slow down my typing as i am not very fast typer.
I am trying to make a column of names appear in upper case (the first letter). I know about Upper(). I cant put that formula in this column because the names are typed there, (it would erase formula). How can I do this as well as have them alphabetically ordered?
I have a column of cells with values - 0.2%, 0.32%, 0.22, 0.5 etc. The cells with % symbol are in ' Percentage, 2 decimal' format while the plain numbers are in 'General' format i.e. column contains cells in either of these formats. I need a macro where I can specify the column and it will select the cells with the % format, convert it to 'General' and multiply the result by 100 eg. 0.2% converted to 'General' becomes 0.002. When multiplied by 100, result is 0.2 i.e. is displayed without the % symbol.
In D2 I have: =B2 In D3 I have manually input: (space)3-08
As you can see the CONCATENATE puts the "39569" date in A2 But the second line puts the text date as I prefer. What I would like to do is put in a formula or macro in D2 and down that will change the "Mar-08" to "3-08" so it CONCATENATEs correctly to column A. Simply: I'm trying to avoid manually inputing the text version "3-08" (or whatever M-Y) into D2 down a hundred or so rows!
I have thousands of track titles into my music library that requires some organization. In this case below, I need to add a "" character to split the track number from its title. So, the problem remains at the lack of pattern in the text and the only reference it the beginning of the song title (but it also can begin with a text or a number).Text.jpg
From: 01 - It's A Long Way To The Top.mp3 >>>>>>>>>> To: 01It's A Long Way To The Top.mp3 From: 02-Crazy.mp3 >>>>>>>>>> To: 02Crazy.mp3 From: 3-01 Need Your Love.m4a >>>>>>>>>> To: 3-01Need Your Love.m4a From: 10-13 Angels.mp3 >>>>>>>>>> To: 10-13Angels.mp3 From: 01 10_15 Saturday Night.m4a >>>>>>>>>> To: 0110:15 Saturday Night.m4a From: 3 - Guitar Mafia.mp3 >>>>>>>>>> To: 3Guitar Mafia.mp3 From: 1-01 Losing all.m4a >>>>>>>>>> To: 1-01Losing All My Friends.m4a
The idea is try to search the words from Column C in Column A and if some key is found, show value from Column C (As a simple Vlookup but column A contains sentences):
A B C D
This is a test test 1 This is a tst excel 2 test case 3 tst 3 case for excel test 4 tst nº 5
Excel1.JPG
And expected result should be: (column B, contains the formula):
A B C D
This is a test 1 test 1 This is a tst 3 excel 2 test case 3 1 tst 3 case for excel 2 test 4 1 tst nº 5 3
Excel2.JPG
The idea is not to use. Column C could have more of 1000 entries.
I'm trying to write a macro that will take 5 articles that I have written and separate the sentences out....
So what I need to happen is I take the articles and pop them into excel, then the macro will pick the first sentence of the first article, then the first sentence of the second article, then the first sentence of the third article....and basically repeat this for all the sentences in all the articles also while adding a "|" in between the sentences and adding a starting "{" and an ending "}" for each of the first sentences, second sentences and so on.....
I don't know that I'm making any sence here so here is a very small example of what I need to happen....
Article 1 Paragraph 1: I like blue. I like Green. I like Purple. Article 1 Paragraph 2: I like flowers. I like dasies. I like tulips.
Article 2 Paragraph 1: I like football. I like basketball. I like soccer. Article 2 Paragraph 2: I like food. I like wine. I like beer.
Article 3 Paragraph 1: The sky is blue. The sky is dark. The sky is night. Article 3 Paragraph 2: I love stars. The moon is big. The moon is full.
So each of articles would need to be placed in separate sheets I'm guessing?
Below is what I need the text to look like when the macro has finished.....
Spun Article Paragraph 1:
{I like blue.|I like football.|The sky is blue.}{I like Green.|I like basketball.|The sky is dark.}{I like Purple.|I like soccer.|The sky is night.}
Spun Article Paragraph 2:
{I like flowers.|I like food.|I love stars.}{I like dasies.|I like wine.|The moon is big.}{I like tulips.|I like beer.|The moon is full.}
I hope this all makes sense.....
I already set this up using the record macro feature of excel and it works ok but I end up having to do a lot of editing because it will put to many brackets in or not enough so I was hoping for some advise or possibly some code example that could get me headed in the right direction....
i need some macro code to split a sentences become 2 string/text, like this below :
assuming start data in col.a
sample raw (col.a) after macro (splitting 2 text) The Internet and media are closely controlled in China The Internet and media are closely controlled in China
The crackdown hit Chinese Internet stocks The crackdown hit Chinese Internet stocks
You can feel the pressure in Doha You can feel the pressure in Doha
It exploits data left in memory after an operation It exploits data left in memory after an operation
etc..
it's possible splitting a sentence become 2 string/text in 2 column (col.b & col.c as desired result). in col.c result based on last word a sentences..
How do I change a date "10/01/2004" into a format like 20041001? I used concatenate(right(A1,4),left(A1,2),mid(A1,4,2)) but the function takes the serial value of the date as an argument and concatenates that . So I get a different value.How can I get away with it?
I have a spreadsheet that in various cells have numbers that have been been formated as text and have a leading zero and therefore displays the green flag in the corner of the cell. I want to change them to number format and clear the green flag.
using something like Cells.ClearFormats Cells.NumberFormat = "0.00"
doesn't seem to work. whist it shows the format as number it still leaves the green flag and the leading zero.
I have imported date field values from ClearQuest(IBM Product) into Excel worksheet. after import the data display format in the excel looks like
Thursday, February 19, 2009 9:11:42 AM
Now I need to calculate the age of the defect in number of days by using the formula
=NOW()-J26 where the cell J26 contains the above data . However I always get the display as #VALUE in the cell.
I changed the field format for cell J26 to custom dddd, mmmm dd, yyyy h:mm:ss AM/PM but still does not work.
My question now is- how do I convert dddd, mmmm dd, yyyy h:mm:ss AM/PM to mm/dd/yyyy h:mm:ss AM/PM so that I would be able to find the age of the defects?
Or is the a way to change the format for NOW() to something dddd, mmmm dd, yyyy h:mm:ss AM/PM?
I am having some issues converting the dates in column A on the attached spreadsheet to the mmmm format. I cannot get the dates to change format at all so I was hoping someone might have some ideas why. I have tried everything I can think of. The only thing that has worked so far has been to retype the date in the cells. I have 32000 rows of data I have to convert.
here the decimal separator is " ,". I have some 8000 data values with decimal separator ".". This is the format of the exsiting cell " +1.0000000000000000E+00 ". I need to have this converted to "1,00". I would like to have a macro which u cud do this perform!
See the attached file. In the RawData tab, I have the Type, The Date, and total for that date and type. Using a macro, i would like to redesign the output(onto another sheet) so it can be updated to a database table(i already have the code to export to database). The output should look like what is in the "OutputExample" tab. Figures in the OutputExample tab are only for the first three dates. So currently, I have the output as:
I have to download files from a database and save them in .xls format (the only format permitted to export from the database)
Given an open excel wb saved to my hard drive (or network drive) in non .xlsx format. (most likely .xls)
Switch the file to .xlsx format without loosing the open file. (re-open ok).
Caveats: -Don't want two files -Dnn't want to have the file name changed (except for the extension). -Don't want to remain in compatibility mode. -Don't want to wait a long time. -Don't want to have possibility of file corruption.
I just want to take my non .xlsx file and then, turn into a .xlsx file. (if I save the file as .xlsx I am still in compatibility mode until I re-open the file. I also will have two files---very annoying).