Keep Format In Cells?
Jul 31, 2012
I have file 1 and file 2.
In file 1 I have clicked:
Format cells > Text and
Data Validation > Text lenght = 5
Problem is when I copy from file 2 to file 1 i lose this above mentioned format.
I have file 1 and file 2.
In file 1 I have clicked:
Format cells > Text and
Data Validation > Text lenght = 5
Problem is when I copy from file 2 to file 1 i lose this above mentioned format.
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.
View 7 Replies View RelatedHow can I format cells to contain Minutes, Seconds and Hundredths of seconds to be used in calculations eg 1.24.99 means 1 minute and 24.99 seconds. Example calculation is: 1.24.99 - 1.24.90 =0.0.09
View 2 Replies View RelatedIs it possible to change the contents of a cell (A1) displaying a name as:
John Smith
to Smith, John (in cell B1)
I am trying to conditionally format the top middle and bottom thirds of a range of data. Problem is, that the range needs to be flexible as sometimes there may be a maximum of 36 cells with data, but sometimes there may be less (so there are blank cells in the range that need not be counted). The methods I have tried always include the blank cells, and so it is not equally formatting the thirds (as it includes the blanks cells as part of the bottom data)....
Here are the 2 methods Ive tried so far using excel 2003)
Top 34%:
=IF(INT(COUNT($D$3:$D$38)*34%)>0,LARGE($D$3:$D$38,INT(COUNT($D$3:$D
$38)*34%)),MAX( $D$3:$D$38))0,LARGE($D$3:$D$38,INT(COUNT($D$3:$D
$38)*67%)),MAX( $D$3:$D$38))0,LARGE($D$3:$D$38,INT(COUNT($D$3:$D
$38)*100%)),MAX( $D$3:$D$38))
I have a column of numbers and want to make sure everything has been entered correctly from our scanning software. Basically, I want to automatically highlight any cell that has any letter in it (e.g. z12o2 instead of 21202 or R705 instead of 5705), ignoring any cells that contain only numbers. I haven't had any luck using conditions based on formulas like =ISTEXT.
View 2 Replies View RelatedI am comparing a set of common variables across 2 sets of independent financial data. When comparing a variable across the 2 sets e.g. profit I want to colour a neighbouring cell based on the size of the difference. For example if the difference between the two values is within plus or minus 1 make it green, plus or minus 5 red etc.
View 5 Replies View Relatedmy excel setting... I'm not able to see some of the numbers (in currency/accounting) in excel file, it shows as many "#" sign, and it's not due to the column width. The same file can be seen in other computer.
The format setting is the same in all the cells but only certain rows/cells' numbers appear like "normal".
I have a spreadsheet that contains data with the following format:
5 EA/BX
12 EA/PK
Unfortunately, sometimes the data is input without a space:
5EA/BX
12EA/BX
I am looking for a way to insert a space between the data when one does not exist. (I cannot have more than 1 space between the alpha numerical character and the numerical character.)
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.
View 4 Replies View RelatedI concatenate value of the several cells at one. (A1&"/"B1&"/"&C1 and etc. The length of characters may be different and I want it be looking neat by adding spaces. Something like that:
400/ 25/ 30
40/250/300
-I have an excel export from a database.
-The export has multiple columns of data.
-The column I am interested consists of numbers and some text.
-The numbers are preceeded by "zeros", e.g. "00054" or "0021"
-The text is usually "N/A"
Problem:
-The column cells are formatted as "General".
-I need to get the "00054" to just "54"
-I am looking for a solution other than re-writing the column by hand (hundreds of column entries)
I've Tried:
-Changing column format to "Number", but the "00054" format remains.
-Played around with other cell format types
-If I double click the cell, the entry then goes to the format I need!!! e.g. "00054" -- double click-- "54". Wallaaaaa... I will get carpal tunnel if I have to double click all these columns entries!!
How do I go about formatting selected cells for different colors for each different number in the selected cells? If I have numbers scattered about I want the cell to show a different color depending on the number that is inserted. EG: 115=red, 365=blue.
View 2 Replies View RelatedHow to proper set the Format cells for this?
Time returns always
2:01:23 PM2:01:26 PM
I would like to have
14:01:23 14:01:26
I have some imported data that Excel does not recognize as date or time so I have to edit each cell pressing F2 and the enter to "convert" the value.
I have about 120.000 records and the macro takes long time to do the job.
I have a spreadsheet that uses a macro to format it. It’s quite simple and the code is shown below:
Code:
Range("A1:D2").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
[Code] ...........
The spreadsheet will have info constantly added on (downloaded from a CSV).
What I would like the spreadsheet to do is look at the cells and only format those that have data in them but are not already formatted – otherwise I’ll just end up re-formatting everything every time and as the spreadsheet gets bigger it'll take longer and longer.
I have a couple Excel files that exhibit a very odd and annoying behavior. When I save the files, everything is fine and all cells are formatted as they should be (e.g., general, text, numbers, etc). However, when I open the file again, all cells are formatted as date. This is quite annoying since some underlying data will be destroyed.
I already checked if the format style "normal" is damaged, and indeed it was (the standard format was set to date). However, I changed this back to general before saving, yet still see all cells formatted as date after reopening the file (this does not happen consistently... most of the time everything is fine but occasionally I get the date mess-up).
I have a group of cells in E2:E4 that are 144.00 in, 240.00 in, and 72.00 in and are formatted as general.
I get these values when I export data from an AutoCAD program to Excel and I want to sum these values to get the total length.
I want to sum the three values and have the result be the same (i.e., ###.## in). The number of values can go to 30, so I need a simple line of code, =SUM(???)
data is stored in the rota sheet, rota number in coloum B and the name in coloum C the code compares the contents of colum b in rota sheet to coloum B in the other sheets then the name from coloum c in rota sheet is inserted next to the corisponding rota number for the next 7 days. i want the cells in sheet monday tuesday ect to format themselves to yellow if the name is omited in the rota sheet i cant seem to get the code to jump to col when the cell is empty i've highlited in red the parts giving me a problem unfortunatly i cant upload the sheet as its over the size limit
Sub FIND()
START:
WORK = 0
DA = 0
Line = 0
Sheets("ROTA").Activate
RO = RO + 1
RA = ("B") & RO
Range(RA).Activate
ROTA = ActiveCell
ActiveCell.Offset(0, 1).Activate
Name = ActiveCell
If RO = 200 Then Goto Quit
GH:
LIN:
Line = Line + 1
TREE = ("b") & Line
Range(TREE).Activate
If ActiveCell = ROTA Then Goto NAMED
If Line >= 200 Then GoSub LIST
If DA = 8 Then Goto START
Goto LIN
NAMED:
ActiveCell.Offset(0, 1).Activate
ActiveCell = Name
If Name = ("") Then GoSub COL
ER:
Goto GH
Exit Sub
LIST:
Line = 0
DA = DA + 1
If DA = 1 Then Sheets("SUNDAY").Activate
If DA = 2 Then Sheets("MONDAY").Activate
If DA = 3 Then Sheets("TUESDAY").Activate
If DA = 4 Then Sheets("WEDNESDAY").Activate
If DA = 5 Then Sheets("THURSDAY").Activate
If DA = 6 Then Sheets("FRIDAY").Activate
If DA = 7 Then Sheets("SATURDAY").Activate
Return
COL:..................
I need to a macro to find any cells with the value 0.00e+00 (which is in scientific format - because thats the format i get from the software download) and change those cells to 00E010 and text format.
View 8 Replies View RelatedI'm using the code below to copy data from 1 sheet & paste it onto another sheet. The code is working fine. I want to ensure that the data is pasted(in the new sheet) as Text & not General. How do I write the code for this & where do I insert this code?
Sub copy_paste_special_transpose()
Dim wsData As Worksheet
Dim wsNew As Worksheet
Dim rng As Range
Dim I As Long
Set wsData = Worksheets("Sheet1")
Set wsNew = Worksheets.Add
Set rng = wsData.Range("A1")
While rng.Value <> ""
I = I + 1
rng.Resize(25).Copy
wsNew.Range("A" & I).PasteSpecial xlPasteValues, Transpose:=True
Set rng = rng.Offset(25)
Wend
End Sub
I know how to protect a sheet and unlock some cells, but how can I lock the format of ALL cells while still allowing users to enter information? Ifve been instructing people to Paste Special  Values, but of course itfs more difficult. For example, Ifd like to protect a sheet but allow cells B2:C2 to be editable in value only – NOT in format. I tried searching the forum for a solution but was unable to find anything.
View 2 Replies View RelatedIn the publishing industry we have what we call ISBN numbers you will see that every book has a unique number. For thee company that I work for the number always starts as follows -
978-0-7153-
This is followed by five numbers sometimes 4 with a letter i.e.
978-0-7153-12345
978-0-7153-1234X
Is it possible to pre format the cells in a column so that the 978-0-7153- part of the code would be there hiding in the background and all you have to do is type the 12345 to get 978-0-7153-12345 displayed?
I have a Macro that when run checks for the lowest value in a line & highlights that line. It works just as it should, infact it works better than I had planded. When I update a cell value and move to the next cell it changes the highlight.
Option Explicit
Sub SELECT_LOW_PRICE()
Range("a4:i126").Select
Selection.FormatConditions.Delete
Selection.FormatConditions.Add Type:=xlExpression, _
Formula1:="=and(a4=min($a4:$i4),not(isblank(a4)))"
Selection.FormatConditions(1).Interior.ColorIndex = 6
Cells(1, 1) = "Updated " & Now
Cells(1, 1).Select
End Sub
how I can get black cells if for example A3 contain the string PM.
IF A3 contain exactly the string PM I want that cell A7 to A11 get black automaticly.
I have a cell with the number: 4902.21 and i need to format it so that it shows, 4,902. Easily said then done! I right clicked, format cell, Number to 2 decimal places and ticked the box for a comma. The problem I am having is that in order for that to work, I have to press enter on the cell which then changes the cell to the desired text.
View 2 Replies View RelatedI was wondering if anyone knows how to create a formula that is dependent on the colors of a range of cells subject to conditional formatting. For example, I would like something that could answer =if(A1 is red,"Phillies",if(A1 is blue,"Mets","Marlins)). However, the text color will be generated from conditional formatting, so most of the VBA code I have found thus far isn't working properly. Does anyone know of a solution?
View 4 Replies View RelatedI have a lot of data with the wrong number format. I want to find all cells with this particular number format and change it to another.
I know I can do this by looping through all the cells on the sheet or by using the find method, but both ways require looping. I am hoping there is a quicker way. I originally thought there was a SpecialCells type that was format conditional (not conditional formatting), but there doesn't seem to be one.
I have an application that generate an excel sheet for me. In this sheet I have multiple rows with duplicated dates and text. With VBA I need to clear the content of all the cells that contain duplicated date and keep just the first row.
View 3 Replies View RelatedI am attempting to create a staffing calendar that will use conditional formatting to alert the coordinator by highlighting the cell when certain thresholds are reached.
The spreadsheet has three tabs, with 'Master' being the final copy.
In the 'Magic' tab, I was able to get it work with a rolling count but I am having trouble recreating it when the count is stationary and not updating itself line by line aside the person's name.
What I'm preferably looking to have happen is for the 'Name' to light up when it appears more than 3 times in a week in the Day fields, more than 1 time a week in the O/C field and more than 7 times a month in the Night field.