Sum Up A Column Of Cells Which Have Both Text With And Without Strikethrough Formatting

Feb 23, 2010

I'm trying to sum up a column of cells which have both text with and without strikethrough formatting. I've looked around and got some VB codes but it doesn't work for me.

I still get the annoying #NAME? error. It did work initially but after moving the file to another computer it just became #NAME? again.

View 6 Replies


ADVERTISEMENT

Counting Text Cells With Strikethrough Font!

Sep 18, 2007

I have a column of names, some of which are manually formatted with the strikethrough font.

I need to know how to count the cells that contain text formatted in this way. This total will then be used within a longer formula to produce a net result.

I have found tips on counting coloured cells but none that seem to apply to this form of font format.

View 9 Replies View Related

Remove Cells With Strikethrough?

May 22, 2014

I'm looking to create a procedure to look at a specific range of cells, then remove the cell contents for those that contain strikethrough formatting. How do I go about that? Can this be done without looping?

View 5 Replies View Related

How To Delete Rows With Strikethrough On Column A Among Multiple Sheets

Nov 24, 2013

I have a workbook with multiple sheets. I want to use VBA macro to delete the row where the first column is strikethrough. I try to the follow VBA code but it doesn't work.

Sub Macro1()
Dim cell As Range
Dim delRange As Range

[Code]....

View 3 Replies View Related

Conditional Formatting: Cells Filled By Red Until The User Enters Text In Those Cells

Jul 18, 2006

Is there a way to set up a conditional format for several cells so that the cells are filled in with red until the user enters text in those cells??

View 5 Replies View Related

Conditional Or IF - Formatting Another Cells Font Based On Different Cells Text

May 3, 2013

What I am looking to do is;

If cell A2 = "Closed"

then I want cells B2 and C2 to strike through its own text.

I.E.
A2= anything other than "Closed"
then B2 and C2 = Blah blah blah

but if

A2 = Closed
then B2 and C2 = Blah blah blah

View 5 Replies View Related

Highlight Repeat Cells In One Column If Cells In The Adjacent Column Contain Specific Text?

Apr 14, 2014

I am trying to find a solution for highlighting cells in a column that are repeats, ie. >3. I also need these cells to only be highlighted if the adjacent cell in the next column contains specific text. I have tried using conditional formatting with a countifs formula to no avail.

View 2 Replies View Related

Converting Date Column To Text Formatting

Mar 9, 2009

I have column A set up to display dates in the following format: 03/04/2009. While the "look" is fine for the values in the column, I cannot get it to stay in that format when it is moved to a text file. It simply converts the display back to 39876.

I would like a macro that 1) looks at all values in column A and 2) converts each cell in the column to text format but leaves the contents so they are dates 03/04/2009 (mm,dd,yyyy).

View 2 Replies View Related

Formatting Numbers In Cells That Have Text Using VBA?

Apr 11, 2013

I have a table of data in which a lot of data appears as " "999" Then 'fix this, not working, formats numbers with decimals as whole numbers

c.NumberFormat = "#,##0 "
End If
' now format to line up right justified

[Code].....

View 3 Replies View Related

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

Excel 2010 :: Condition Formatting On Column Of Text?

Jul 22, 2014

I have a column of numbers that are already formatted as text. Some of the data is duplicate which is fine. It's like a list of 6000 numbers. I want to conditionally format the column so that I can fill the cell with a color as long as it stays the same number, but if it changes to a new number make it a different color. I don't need a lot of colors. Two is fine. TI have Excel 2010.

View 4 Replies View Related

Formatting Text Based On Numeric Values In The Next Column

Feb 12, 2009

I am wondering if it is possible to format a cell that contains text - based on a number in the cell next to it. Here is what I have:

Category......Mean
Results.........3.3
Morale..........3.8
Buy-In..........4.0

I would like the word 'Results' to display in BLACK text because the mean score is in the range 3.0-3.9 (same goes for the word 'Morale'). I would like the word 'Buy-In' to disply in GREEN text because the mean score is in the range 4.0-5.0. Basically, the mean scores are calculated using formulas and I would like the color of the category to change based on the mean score number. Is there a way to use conditional formatting to do this? Or another way to automatically make this work? File is attached.

View 2 Replies View Related

Conditional Formatting If Multiple Cells Contain Same Text

Dec 30, 2012

I want to conditional format based on all of the following cells contain the same text as AT19 or not.

A19 H19 O19 V19 AC19 AJ19

What is my formula?

View 1 Replies View Related

Conditional Formatting For Cells That Do Not Contain Text Range?

Mar 24, 2014

I'm trying to create a conditional format that formats only cells that do not contain one of the names from a range of cells.

For example:
Cell O2 contains Florida
Cell O3 contains Texas
Cell range W1:W2
W1 = Florida
W2 = Arizona

In this example I want Texas to have a strikethrough, but Florida to be unchanged since Texas is not included in the list.

I keep getting an error when I try to do a format of text that does not contain =W1:W2.

View 2 Replies View Related

Conditional Formatting Formula Based On Text In Two Cells?

Jan 8, 2014

I need a formula for conditional formatting which highlights a row if A has the text "Ex" and B has "Paid".

View 2 Replies View Related

Possible To Use Conditional Formatting To Recognize Or Ignore Certain Text In Cells?

Mar 2, 2014

I am working on the monthly duty roster that is attached. I have the cells at the bottom configured to total how many early shifts, late shifts and off days each Trooper has. My problem is that I often need to add text to show what type of leave is being taken, or numbers to correspond to the special notes section numbered 1-24, and so on.

Is there any way to use conditional formatting to do this so that the totals at the bottom still sum correctly? Badge numbers are used to identify each Trooper. I have included them at the top for reference. The reason that I referenced them to total by cell instead of individual badge numbers is that I am attempting to format this so that any badge numbers can be entered at the top. This form will be used by other groups of Troopers if I can get it to work.

View 6 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

Preserve Cells Word Formatting Concatenating Text

Jun 7, 2008

I have a cell with some text in it that has formatting applied (bold in this case). I want to append some text on the end using VBA, but preserve the existing font formatting information. So say I have "one bold one" in my cell, I'm executing the following: ActiveCell.Value = ActiveCell.Value & "two"

But this wipes out the bold information. Is there any way of preserving the bold that's already in the cell. Either perhaps by copying the Characters object and reapplying it, or by some other method?

View 4 Replies View Related

Conditional Formatting For Entire Row Based On Presence Of Any Text / Values In Column

Oct 19, 2013

I am trying to apply a conditional format to an entire row based on the presence of any value in the first cell of that row to format to a certain color. If there isn't something present in the first cell, I don't want it to change.

Everything I keep trying ends up highlighting the entire workbook.

I would like to apply the rule to the entire sheet but only have it highlight the rows which have a value/text in the first cell of each row.

I am assuming I should use the formulas selection for conditional formatting but I'm unsure of what formula would apply to this type of request.

View 3 Replies View Related

Count That Ignores Strikethrough Font

Jun 29, 2012

I need a count that will ignore font that is strikethrough. Is that possible?

View 8 Replies View Related

Move Strikethrough Rows To Sheet

Nov 3, 2006

It is supposed to take the rows with striketrhoughs and transfer them to the other sheet.

Private Sub Worksheet_Activate()

If Cells.Font.Strikethrough = True Then
Rows.Select
Selection.Cut
Sheets("Completed Deployments").Select
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
End If

End Sub

View 8 Replies View Related

Conditional Formatting For Blank Cells To Display Custom Text

Feb 17, 2012

I have a range of cells with numeric values or blanks. I set up a Conditional Formatting rule with this range selected: New Rule > Format only cells that contain > Format only cells with: Blanks; then I set the formatting to a light green fill and on the Number tab > Category = Custom > Type: "blank"

The blank fields get the light green fill, but no text; that is, the value displayed is still blank.

I go back to edit the CF rule and change Blanks to No Blanks. The results are what I expect: the cells with numbers display the text blank and have a green fill; the blank cells have no fill (white).

This is my testing criteria. I eventually want the empty cells to display 0 (zero). I tried setting Custom > Type: 0 (the number placeholder zero) and Type: "0" (literally the number zero), and neither works.

I have tried this with Format only cells with Cell Value equal to [the address of a blank cell].

I tried to set the value as "" but kept getting =""""; and ="" became ="=""" ???

I have tried this with Use a Formula... using the len()=0, isblank(), and other approaches, all with the same results.

I also made sure the option [x] Show a zero in cells that have a zero value is checked.

With all approaches to identifying the blank cells, they ARE obviously being recognized as blank values: the fill color is being applied to the right cells; and when Not Blank is the criterion (or a negation of a formula), the blank ones are not formatted. But blank cells will not display the text as defined in the Custom Formatting.

And this isn't an issue of "If the cell displays 'blank' it's no longer blank, so the rule doesn't apply" - HERE'S WHY: I set up a second CF rule that sets the Font to red when the value is greater than zero and had this CF rule follow the CF rule for No Blanks (the test above that works). Cells with positive numbers displayed blank in red, cells with zeros or negative numbers displayed blank in black. This clarified that the actual value of the cell is being evaluated, not the displayed value after Custom formatting is applied.

View 2 Replies View Related

Conditional Formatting To Change Colour Of Cells Dependent On Text Within Them

Sep 8, 2013

How to colour cells depending on text in other cells, for example,

I would like cells D26:AA26 to turn light red if the letters 'FSM' are in cell 'E26' even if other text appears in it, eg 'SA+/FSM'
I have been playing about with conditional formatting but can seem to solve the mixed text issue?

I have included an example below,

Do you use a "*FSM*" around the formula?

[URL] ...........

View 7 Replies View Related

Refresh All Cells In Column After Changing Formatting?

Feb 26, 2013

I've been given some data and the date column is formatted as 'general'. If I amend it to the date format I prefer and click ok nothing changes. If I then click in the cell and press enter it changes the format to what I want. Is there anyway of refreshing all the cells so the format change takes effect?

I can achieve what i'm after by using find and replace to change '2012' to '2012' and '2013' to '2013' but i'd be interested to know whether there is a more recognised solution?

View 2 Replies View Related

Strikethrough Code To Activate When End Date Is Past

Nov 17, 2008

I have this code below, which someone from this forum kindly kindly gave to me for my Worksheet code. What it does is check the value in a dropdown list in column I and if it says "Cancelled" then strikethrough columns A-K of that row.

What I wanted to know is this, in cell N2 has the formula to show todays date. In column D9 onwards is an end date. How can I amend the code below so that it also checks to see if the date in Column D9 onwards is greater than N2 and if so strikethrough columns A-K in that row?

Would it be in the form of an OR statement in the code below?

View 9 Replies View Related

Strings In Text Cells Of Lookup Table To Inform Conditional Formatting

Jan 3, 2013

I have a 1000x1000 cell grid on one of the worksheets in my workbook where each cell contains one of the following four possibilities:

1) Blank
2) A string that is not defined in a lookup table (*lookup table = a named range on a different sheet)
3) A string that exactly matches an item in the lookup table
4) A long string that contains an item in the lookup table (which can be found with a FIND function, for example)

I would like to apply conditional formatting to my 1000x1000 grid, to color each cell according to the lookup table, where the last column has the name of a color that I can match with my conditional formatting setup.

I have solved everything except for No. 4).

2) is taken care of by using "Format only cells that contain" with "No Blanks"

My solution for 3) - using "Use a Formula to Determine Which Cells to Format" - uses
=VLOOKUP(A1,lookup_table,2,FALSE)="fill color name" So, for every different color I want to use, I have a different Formatting Rule in the Conditional Formatting dialog.

But 4) is tricky, because VLOOKUP can only return the result for a specific cell value.
If my cell contains France;Germany;Italy, I'd like the color to be according to what I set for "France" in my lookup table. Or, if my cell contains Germany;France;Italy, I'd like it to be set based on what I decided Germany is in the lookup table (i.e. "blue").

You can notice that one thing that is consistent is that I separate my "sub-strings" that are contained in the lookup table with a semi-colon.

So, one way might be to see if FIND finds a semi-colon, and then grab the string that goes before that character position.

View 4 Replies View Related

Conditional Formatting To Colour One Cell Based On Text From Range Of Cells?

Oct 22, 2013

what i would like to do is change the fill colour of D68 if the word Air appears with in D5:D65?

View 6 Replies View Related

Script To Add Conditional Formatting Rules To Column Of Cells

Dec 2, 2013

I'm having to successfully add three conditional formatting rules, and associated cell interior colour formats if any of the rules are met.

Each time I run my macro, I want to refresh every cell, within a defined range within a Col P, with these rules.

So far, I can add the three rules to each cell, but when I try and add the format colour - for when a rule is met - I keep getting a 'Subscript out of range error'.

(As an aside, is my For / Next loop approach the best one to take to add the formatting to each cell, or can it be written much simpler?)

Here's my script:

VB:
Dim Col_P As Range
Dim Cell_in_ColP As Long
'Set up range of cells to add conditional formatting rules to
Set Col_P = Worksheets("tRIIO Pack Notices").Cells(2, 16).Resize(Lrow - 1)

[Code] ......

View 4 Replies View Related

Conditional Formatting A Column And Highlight The Cells That Fall Within The Top 20%

Sep 16, 2009

I have a spreadsheet showing names, quality percentages and times taken to answer a call in 3 columns. I would like to highlight the cells that fall within the top 20% of those shown (e.g. if there are 100 quality percentages I want to highlight the top 20 not those over 80%) also the same with call length.

I have a column of numbers and times (mins and secs) and what would like to do is set a conditional format so that the cell turns a colour when the number of any cell is within the highest 20% and the other column turns a different colour when the time is within the lowest 20%.

View 5 Replies View Related

Find Text Within Cells & Place Same Text In Adjacent Column

Apr 10, 2008

I want to search for a word in column A and when I find it I want to copy it to column B.
Column A is a description that can be 6 or 7 words long. Column B is a single word.

Example:

Col A
Engine Kit, V-8, 306, forged.
I need to copy the word Kit to column B.

View 9 Replies View Related







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