Calculate row count when icons are used - excel

I have icon sets (Tick and close) used in excel rows. I need to calculate the count of "Ticks" in one cell and "close" in another cell. Can you please help me how to do that ?
For cells which has text i am using =CountIF(A8:A10):"Text" formula. but for icons im not sure how to do that.

If you just want to use Excel cells only you will need to add another 'helper' column, which could be then hidden, that contains the conditional formula and then use count on that.
Alternatively you could open the Visual Basic editor and insert a module, using this tutorial on conditional formatting

I think it can not be done using just functions. If you really need to see those icons for example and count them I would use something like 1 and 0 for counting, where 1 is tick and 0 close. If it bothers you, that there are 1 and 0 in cells then change font color to white, for example, then you wont see them, and to get those ticks and close icons use conditional formatting. Conditional formatting allows you to make icons, background color etc. Here is little documentation about conditional formatting. And to count use just =COUNTIF(A8:A10,"1") . That would be how I would do that, but I don't know what you are trying to achieve, hope this was useful.

Related

Is there a way to clear a cell of any text based on the format of the cell (without formula or vba if possible)?

I'm working with numerous documents that have conditional formatting which turn a cell black if a certain value in the row is contains a specific text. The specific text varies a very often and will differ per document. When I try to write something in the black cell, it will automatically decline anything, but when I copy paste something on there it still enters the value. Because I have to copy big sets of data into these documents, I sometimes end up with values in these black cells, which can cause problems later on.
What I was wondering is if there is a way to delete any text in the cells that have the specific formatting (aka they are black) with help of the Find and Replace function or something similar.
Because I have to do it in seperate documents that I get from other people, I don't think using a formula or vba would be too practical, as I would need to manually copy it each time. But feel free to prove me wrong.
EDIT:
Hopefully this will illustrate more what my problem is.
The Background of these cells are still considered to be 'No Fill'
The conditional formatting is what causes the color
Let's assume the formatting you are trying to empty content from is yellow background cells
See image below:
Press Ctrl+H for Replace Option
Press Format Button to select the required format (yellow background)
Press Replace All
Final Result:

Is changing the color of a cell based on nested conditionals possible?

I have been trying to change the color of certain cells on my WS that fall outside of an acceptable range. The statement I've been trying to use is,
IF(OR('cell'>1.3,'cell'<2.5),'turn red','do nothing')
In english, "If a cell is less than 1.3 or greater than 2.5 turn red, else do nothing." I cannot find a resource that guides me to how I can get the cells to change colors. I also have been unsuccessful in creating a statement in the Conditional Formatting tab that satisfies my goal. I feel this should be simple, but for some reason cannot figure it out. Does anyone know if this is possible, and if so how to do it?
EDIT: Also, I have different ranges based on another cell on the spreadsheet. I need this also taken into consideration
Select the columns that you want to format
Click Conditional format --> new rule
Select "Use a formula to determine which cells to format"
In the formula bar enter the formula =AND(A1>1.3,A1<2.5)
Choose the fill color as red and press OK
am confused with your formula and your english version. If its the other way, then use the formula =OR(A1<1.3,A1>2.5)

Conditional Formatting on changes made in Excel

I have a Excel 2010 Sheet which contains some values.
I want to achieve the following in a specific Cell:
If the User changes the Value more than 50% make it red, more than 25% make it yellow, below make it green.
I tried achieving this with conditional formatting (3-color-scale) using a copy of that value that cannot be changed as a reference using the following formula for the red paint:
=ABS(Y10-BV10)/(BV10)>0,5
(where Y10 is the value that can be changed and BV10 contains the same value as a reference)
When trying to do this I receive the Error:
You cannot use relative references in Conditional Formatting criteria
for color scales, data bars and icon sets
Any other way to achieve this?
(I create the file myself by OpenXML and so could use fixed values in the formula instead but that seems to be a very dirty solution as this formatting should work for a few hundred cells)
Rather than using a colour bar, do the formatting manually using the formula you have used to change the colour. You'll just need to have 2 formats in order. The first saying if > 50%, the next being greater than 25%
In a new conditional formatting rule, go to Use a formula to determine which cells to format option - http://office.microsoft.com/en-gb/excel-help/use-a-formula-to-apply-conditional-formatting-HA102809768.aspx
you will need separate formula for each color though - to achieve the desired effect, make sure the rules are either mutually exclusive or else in correct order (in Manage Rules... dialog - the most general rule should be on top if you don't check "Stop if True", but if you check those checkboxes then the most specific rule should be on top)

Reading the Conditional Format Icon in a Range in Excel Using VBA

This should be easy to do, but I can't figure it out. I have a range of cells that are using the stop light icons for conditional formatting. I want to loop through this range and act based on whether the icon is red, green, yellow, but I can't figure out how to simply read which stoplight has been applied to the current cell.
To my knowledge it is not possible to get the "state" or result of the conditional formating. Best you can do is rebuilding the condition in your code and working on this. Maybe just add a column/row to your workbook which recreates the condition and work on that value? You could hide the column/row or even place it on another worksheet. It all depends on your table setup/layout.

Use different fonts in same Excel cell?

Is there any way to change the color and/or font of specific text within an excel cell? That is, I'd like one part of the cell's displayed value to be red and another part of the same cell's displayed value to be blue (as an example). Since the displayed values are being calculated as formulas, I'd need some sort of formatting formula that would apply only the stuff inside the formula. I can't seem to find anything in the text.
If you want to do this based on a formula, you will have to write some VBA. See this example
No problem. Edit the value in the formula toolbar.
Take a look at Conditional Formatting in excel.

Resources