Copy Text As Well As Cell Formatting

May 16, 2013

I'm basically trying to copy the text and formatting (colour fill) from a single cell into all cells I select. So far I managed to get the auto fill to work but the text only copys to the first cell I select of the selection.

Here's the macro I have:

Sub Macro7()
'
' Macro7 Macro
'
' Keyboard Shortcut: Ctrl+f
'
ActiveCell.FormulaR1C1 = "1 Completed"
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 5287936
.TintAndShade = 0
.PatternTintAndShade = 0
End With
End Sub

View 1 Replies


ADVERTISEMENT

If Text Of Cell In Range Matches Text Of Cell In Column - Match Formatting

Jul 5, 2012

Trying to create a button that, once clicked performs the following task:

Checks whether the text in a cell in the column X2:X40 matches the text in a cell in the Range A2:U14.

If it does, the formatting of the cell in X2:X40 (eg background) must change to match that of the corresponding cell in A2:U14.

Only 1 cell in the range will match 1 cell in the column

For example:
Before click:
Cell A9 has "John" written in it and a yellow background
Cell X4 has "John" written in it and a clear background

During click:
matches these cells
changes X4 so that it also has a yellow background

After click:
Cell A9 has "John" written in it and a yellow background
Cell X4 has "John" written in it and a yellow background

View 3 Replies View Related

Locking Conditional Formatting In 2000: Copy/paste Text From Other Cells Or Columns Even Other Workbooks

Jul 27, 2009

I have a column "g" with this conditional formatting:- =A2<>A3 Format Bottom Border.
However I will pass this workbook onto someone else who will fill in the text in column "g". They will use copy/paste text from other cells or columns even other workbooks that will not have the conditional formatting.

I have used Cells > Projection > Locked unchecked then used Tools > Protection > Protect Sheet and checked all. There does not seem to be a way to unlock the cell but protect Conditional formatting. Each time I copy and paste from other non formatted cells it wipes out my formatting.

View 4 Replies View Related

Cell Formatting - Red Text If Cell Matches Certain Condition Based On Another Cell

Sep 24, 2013

I have one column that contains a monetary amount (column AQ) , and another that contains text reading either "inflows" or "outflows" (column AC)

When AC says "inflows", AQ should be positive, and when AC says "Outflows", AQ should be negative.

I need the text in column AQ (the monetary amount) to become red when the the opposite is true.

i.e. When AQ is negative and AC says "Inflows", AQ should become red. And when AQ is positive and AC says "Outflows", AQ should become red.

View 2 Replies View Related

Copy Or Link Formatting From Conditionally Formatted Cell To Another Cell?

Aug 12, 2014

I have a column who's content is determined via about 6 nested if statements from data on that row. That cell is then conditionally formatted to a certain color based on the text that is ultimately printed from the nested ifs (simply an extra visual legend for the text). All of this contributing info and about 1000 lines items make a very large and difficult to print page. What I am trying to do is a make a summary sheet that simply takes the index number of these 1000 rows and copies or links the conditional formatting of the mentioned cell onto this number on another sheet. I have already linked this status cell and put it adjacent to the index number which works well in that with two columns I can show the index and status but if I could combine the color of the status cell onto the index cell, it would be even better. I am pretty sure another conditional format for this summary sheet would not be possible or be extremely complex since the contents of the index cell I am conditionally formatting have no bearing on the conditions for the format. Was hoping there is some VBA magic that could simply mimic the conditional formatting from one cell and put it on another.

View 1 Replies View Related

Copy Any Bold Text Within Cell Text String To Adjacent Cell?

Jul 31, 2014

Here's an interesting one:

A1 contains a text string which is both bold and unbold (
B1 is blank

I need a macro which scans the cells with text and copies the BOLD portions of the text string into the adjacent cell.

Example:

A1
The sky is blue

Macro is run

B1
sky blue

View 11 Replies View Related

Formatting Cell Text...

Jan 31, 2009

I am using Excel 2007. I want to put into a cell the symbol for the mean of a set of x values ie x-bar or x with a line over it. One way is to go to Word and use the equation builder, then copy it into Excel. However that restricts me to the default equation font, and I would prefer to be able to use my own choice of font. Is there a way to do this within Excel (perhaps by somehow combining two symbols, the x and a raised bar)? Alternatively can I do it within Word, without using the equation builder, and then copy it to Excel?

View 2 Replies View Related

Formatting A Cell To Text?

Jun 27, 2012

But the import tool I am using for one of our applications is requiring us to save using Excel 97-2003 Workbook. I have converted a couple coulumns to text, but inorder for the upload to take, I have to add an spostrophe infront of the number to make it "text" and upload cleanly. I want to do a find and replace to edit the columns with all the differing numbers. How do I do that? I tried to replace ?????? with '?????? and it doesn't work...

View 3 Replies View Related

Copy Cell Contents And All Formatting

Nov 23, 2008

I am trying to copy a column of cells from one sheet to another, but also want to keep all the formatting. The origin sheet has times, but when I copy these to the destination sheet they are displayed as decimal numbers (using the code snippet below). I can change these back to times by formatting the cells using the format painter after the macro completes but I would like the VBA to do this for me. (using 2002 SP3).

View 4 Replies View Related

Conditional Formatting Add Text In Different Cell

Jul 11, 2013

I have a table that has dates starting from A6 which is a whole month say 01/2/2013 to 28/02/2013 like a gantt template.

I need if the word "Ordered" is in B5 I need X (crosses) in the date cells starting from B6 to end of month until someone changes B5 to Delivered then I need the X to disappear.

test.xlsm

[URL] ....

View 2 Replies View Related

Display Text And Its Formatting In Other Cell

Oct 9, 2008

Without using a copy/paste macro, is there a way to display the text and its formatting from another cell? Obviously, the usual formula "= A2" only brings the text from that cell. Example:

A3: un-am-big-u-ous

G4: = A3 (but I want the font formatting used here as well)

View 4 Replies View Related

Formatting Formula And Text In Same Cell

Jun 29, 2006

Is it possible to apply formatting to a formula in a cell when you are combining that formula with text? As an example, I want to format the following as a percentage: ="The result is"&" "&(a2/a1)

Currently, it is returning [e.g.] ...result is 0.5, instead of ...result is 50%

View 7 Replies View Related

How To Copy Cell Value And Formatting From Sheet1 To Sheet2s

Jan 18, 2013

Is there any way to make one cell on a separate sheet appear EXACTLY the same, including formatting and values? As in this for example: Copy this value and formatting

I would like to keep the formatting, (color and bold), but I have not figured out how to do this. I read a couple other posts but could only copy the values but not get the formatting to also copy over.

[URL] .....

[Code] .....

View 5 Replies View Related

How To Copy Cell Formatting Accross Sheets

May 14, 2009

If I wanted to copy a cells formatting and content (Text) to another cell on a separate sheet, what code would I have to embed? I am a fresh neuling, so give it to me straight.

I have attached an example to this post.

I want to transfer the red and bold attributes of the words within the ( ) in sheet 1 to the cells in sheet 2 that I have linked to the cells in sheet 1 with =.

View 9 Replies View Related

Excel 2003 :: Take Specific Text From Cell And Copy It In New One (Text And / Or Words Position Varies)

Jan 17, 2013

I'm having a 6000+ records, (contacts DB) exported in Excel 2003 format from MS Outlook.

Except the "First" and "LastName", all other contact elements are in the field "Notes" (which is the BZ column according to the exported outlook layout) multiplied by 6469 (records in total)

Useful information are included !!!

I'll give an example of a record...

Column: BZ, Row: 543 says --> "2110000000-6989000000, 1TOK_TER:17-11-010(25 DAYS LESS),
KATERINA 25 (MANTAS KALNNNNN_HYPERTENSION)1000-150, W:95_105, , HR THE 16wks_US NEFRON OK,
NT OK_B EPIP OK(GOLF BALL)_KAMPILI ORIAKI(DIAITA)_DOPPLER OK, O+,TEST OK(TOX_), , , , , , "

Now, I want every time to take the part of the text says "TER:something..." (part of which is date, but not every time with the known format dd-mm-yyyy, as you see here is yyy, followed by something else, with parenthesis here and maybe more data) and copy it in a new cell..., e.g:CO Column, same Row...

Above and every field which by the way is formatted as General (and it is text mainly) are made by merging older excel fields where data laid here and there, that's why you see the commas...with the method of a module with the following code:

Function MyMerge(Rng As Range)
For Each Cell In Rng
Temp = Temp & Cell.Value & ", "
Next Cell
Temp = Mid(Temp, 1, Len(Temp) - 2)
MyMerge = Temp
End Function

Note1:Records with the above string (TER:dd-mm-yyy) are 771 from 6469.
Note2: As an alternative solution I can see an extraction of the TER:dd-mm-yyy string and the copy in a new place, like the:CO Column, same Row...

View 9 Replies View Related

If Cell Contains Text - Copy Text From Another Cell Over A Range Of Cells

May 22, 2014

I have a list of text quotes in column A. I then have column B which will have a Y entered if the quote is used in a presentation. I currently have around 100 quotes.

On a separate sheet, I want to be able to effectively say in one cell - If column B has text in it, copy the quote from column A. But the difficult part is how do I make this happen so that I can have multiple quotes being pulled into one cell?

View 11 Replies View Related

Insert Text And A Cell Value In Conditional Formatting?

Aug 8, 2014

Is it possible to insert text an a cell value in conditional formating, i,e Ive got the conditional formatting:

=AND(H$4>=$B5;H$4<=$C5)

I want to insert this text whenever this condition is true once and not to repeay it:

="Load " &TEXT(G$5;"dd-mmmm") -- where G$5 is a vallue cell_

View 1 Replies View Related

Custom Formatting Of Text & Number Cell

Mar 4, 2007

I have a cell that contains numbers and text.

example: 1-2-3-4-5-6 or 1-22-3-44-5-6.

If the the number between the dash '-' is a single digit (less than 9), I want to insert a leading zero so all 6 numbers are 2 digits.

Is this possible with custom formatting? I tried a custom for of:
00"-"00"-"00"-"00"-"00"-"00
and it is not working.

I also tried using a MID formula but it gets quite complex identifying the location of the dash - is there an easier way than the MID or LEN?

View 9 Replies View Related

Formatting Cell Color To Specific Text

Mar 24, 2009

I need to be able to assign colors to cells depending on what text is inputted.
If a name start with letters between:
A - Cald (I want the cell to be Yellow)
Call - Eg (I want the cell to be Black)
Ek - Hall (I want the cell to be Red)
Etc.....

View 9 Replies View Related

Conditional Formatting Based On Text Of Another Cell

Jul 30, 2009

I would like to have cells in a certain column turn green if the word in column J of the corresponding row = Not Changed".

View 4 Replies View Related

Conditional Formatting If Cell Does Not Contain Specific Text

Jun 11, 2013

How can I get cells in a column to be highlighted if the cell contains anything other than the word "approved"?

View 5 Replies View Related

Copy Table Retaining All Formatting And Cell Sizes

Aug 27, 2013

I have a workbook that has multiple tabs with data already entered. I have also built a series of tables/forumlas to display summaries of the data. My desire is to be able to copy this table with all formulas/formatting/cell sizes to the various existing tabs.

View 3 Replies View Related

Copy/Paste Not Copying Cell Formatting (row Height)

Jun 29, 2007

I am having a problem with a excel spreadsheet. There are no formulas or anything, just text that I used excel to get everything lined up. I haven't had any issues before, I was copying and pasting within a document. It was all text with different row heights set. I ran into a problem now where the text copies and pastes fine but the row heights aren't coping into the cells I am pasting into, just the text. What do I have to do so they will copy? I don't want to have to go an individually adjust each cell.

View 2 Replies View Related

Formatting A Cell Based On Text In Another Cell

Feb 3, 2012

this formula =H5*I5*J5/144*G5 in "M5" gives me board feet. I have another cell, "K5", with the species of wood in it using data validation and a species list. How can I format the color of "M5" based the value of "K5"?

View 9 Replies View Related

Conditional Formatting Based On Text In Adjacent Cell?

Feb 16, 2014

A2:A5 contains different dollar amounts, a6 is the sum of those amounts

In column B (B2:B5), i place a "p" beside the amount in column A once it has been paid.

I want to:

a. conditionally format the amounts in column a to turn green once I put the 'p' in the adjacent column

b. conditionally format the sum in A6 to exclude amounts that have been paid, and only display the total amount of the unpaid lines.

View 2 Replies View Related

Linking And Formatting Cells With Numbers And Text In One Cell?

May 16, 2013

I have one cell with $20,000 hard coded (cell A1). In another cell I want the cell to say "20,000 Capital Raise" (cell B1). And i want B1 to link to A1 so that if i change the number in A1 it will also change in B1.

Here's what i have in B1 so far: ="$"&J6&" Capital Raise"

This produces "$20000 Capital Raise" in cell B1.

So the only thing i'm trying to figure out is how to get the comma in the $20,000 so it will read "$20,000" instead of "$20000".

View 2 Replies View Related

Conditional Formatting Based On Color Or Text Of Another Cell

Jun 14, 2013

1 2 3 4 5 6
1
2 x x x x
3 x x
4 x x
5 x x
6 x x

Assume that is the table i have. In row 1 i need conditional formatting such that if any of the columns contain an x the first row should be color coded. In my above example every column in row 1 will be color coded expect for row 1 column 6 since there are no x's for any any row in column 6.

How can i do this in excel.Also instead of x's if i have manually entered color can we do the same ?

View 1 Replies View Related

Copy Non Absolute Cell References In Conditional Formatting Formula?

Dec 3, 2012

I have this fairly simple formula which decides whether to shade a cell or not

=AND($X$1<>"TBD",R3<>"None",AC3="Y")

This is set in cell R3 and I want to copy it all the way down the cells in the R column. However, when I copy & paste (and copy and paste using paste special, formatting) the R3 and AC3 cell references do not update to match their relevant rows. eg If I highlight cell R26 the conditonal formatting formula still refers to cell R3 and AC3, not R26 & AC26. I'm using Excel 2010 but I don't recall this happening in 2003.

View 12 Replies View Related

Conditional Formatting - Highlight Color Of Text In Particular Cell Depending On Value

Dec 22, 2013

I would like to know the formula to highlight the color of text in particular cell if the value of the particular cell ( value is text ) is so and so.

For Ex: If the J6 is "Vacation" then the J1 text should be in red color.

View 5 Replies View Related

Conditional Formatting - Highlight Cell Containing Specific Character Within Text

Jul 26, 2013

I have an excel spread sheet & I wish to highlight any cell that contains any of the following characters with in a string of text.

/ : * " < > ? |

E.g. a cell in the spread sheet containing the text "Is this a Question?" would be highlighted.

I have tried to use - 'Format only cells that contain' > Specific Text > Containing > for each of the characters and this does not work.

When I do this any cell containing any text is highlighted.

In addition there is formatting on any cell > 60 characters which turns the cell red and this works fine.

What would happen if (when I get the problem above resolved), a cell is > than 60 characters & contains a character listed above?

Does 1 formatting take precedent over another?

(Not critical to know the answer to the additional question, just curious - as long as it is highlighted one colour or another then no problem.)

View 3 Replies View Related







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