Basically I have a column showing poker hands data in the following form:
AsKh
TcTd
QsQh
5d7d
I want to apply a conditional formatting formulat to the column so that diamonds 'd' gets replaced with a blue diamond symbold and their preceding card gets colored blue. And so forth with all cards. The goal is to make it easier to read the data.
Thanks a lot!
You can use the following formula in a cell formatted with the symbol font. J and Q will look funky though. You'll have to use a macro to address that and basically adjust the font for each cell of the result.
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"c",CHAR(167)),"h",CHAR(169)),"s",CHAR(170)),"d",CHAR(168))
Related
I have two columns to compare. All cell values come from the ROUNDUP function. =ROUNDUP(C6/D12,0) etc.
I want the larger, or equal, of the two in each row to be green and the smaller red. Using the formula, it does not work as expected. If I do the same with numbers typed, not the formula, it works. It appears the formatting applies to the formula and not the value.
That is the first half of the problem. I also want to autofill/paint the conditional formatting to numerous cells, but it always compares to the top left cell, rather than the two cells on the same row.
If I use the color scales formatting it works, but I do not want the scales, just red/green.
It seems hard to believe that what I want to do is not possible. Can someone please help me with this. Thanks in advance.
In conditional formatting, under 'use a formula to determine which cells to format', you need to enter
=A2=MAX($A2,$B2)
to highlight the larger cell and (as a separate rule)
=A2=MIN($A2,$B2)
to highlight the smaller cell.
Note that in the case where both cells have the same value, they will both be either coloured red or green depending on the precedence of the rules. If the 'green' rule comes first,
it will look like this:
Conditional formatting is almost its own little science within Excel. It may be more useful to find youtube tutorials on the topic than depend on a text explanation here. But the central theme is this.
You will use location locking (the dollar sign or F4) in front of the letters so that any cell to which the format is applied knows you specifically mean columns E and F, for instance.
Example: Assume your first row goes from A5 to M5, and the condition values are in E5 and F5.
I find it easiest to format one row with the rules I want, test them, and then use the format painter or copy -> paste format along with careful use of $ locking.
Drag over and select the entire row of cells A5:M5
Conditional Formatting -> New Rule -> Use a formula to determine which cells to format
In the formula field enter =$E5>$F5. Excel gets weird and often inserts double quotes. If you save the rule and go back in, it may say ="$E5>$F5" and if so delete the double quotes.
Click Format and create the cell format you want.
With A5:M5 still selected, add another rule and format for ="$E5<$F5"
The $ sign works the same way as it does in a formula. All of the columns get their format based on columns E and F, but all of the rows base their formula on the E and F values in that same row.
I have a column in excel with color codes like:
#98BF64
#D9B300
#FF6347
#118DFF
#D9B300
#DEEFFF
#FF7F48
#000000
#00334E
#B3B0AD
And I want each color code to be the fill color of the next column in my spread sheet.
I am doing this by hand formatting the fill cell with each custom color code in hex option.
I have a long list and I am looking for ways to make this fast, is there a way to automate this?
Not quite what I was looking for but it makes the trick. I found a code that formats the cell with the hex number of the cell when written on it. So I took the # number with =right(a1;1) and then erase the formula after it was formatted. Easy! Find the code here:
https://coderedirect.com/questions/593903/set-an-automatic-color-background-depending-on-the-hex-value-in-the-cell
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:
it´s my first post.
I have different tables.
for example: range(F9:M16), range(F24:M31) etc.
in A1 I define the row and in B1 I define the column.
example: G3 = 3, H3 = 4
With this information I will create a red bold border in H12.
because in range(F9:M16) is H12 the row 3 and column 4. and in the other ranges are diferent.
so i need a makro, because I do it every time manually.
thanks for your help.
regards
thomas
If you want to highlight cells according to specific conditions, Conditional Formatting is usually the way to go; you can do a lot of very neat things automatically without resorting to a macro.
In this case:
select the range on which you want to apply your format (F9:M16)
create a new conditional formatting, select "Use a formula to determine which cells to format
as a formula, use: =AND(COLUMN(F9)-COLUMN($F$9)=$G$3;ROW(F9)-ROW($F$9)=$H$3)
define your format (red border or whatever else you fancy)
Repeat for all your tables, adapting the references each time. Now the highlighted cell changes according to what you put in $G$3 and $H$3 without you having to do anything.
What this does is, for each cell, get its relative column/row references by calculating the difference from the row/column of the cell being checked (F9 being relativ,e it will change for each cell) and the row/column of the upper-left cell of the range ($F$9 will NOT change) - resulting in a range starting from 0, but since you use 0 in your table, that's fine. If not, you'll need to adjust by adding a constant. If both (the AND part) these indexes match, you apply the formatting. Note that if you use an OR, the whole row and whole column will be highlighted.
thanks for your answer.
Correct, I had already used the Conditional Formatting, but for this case it isn´t optimal.
Because I have no oppurtunities to change the thickness of the borders. I would like to have a red, thick border.
thanks for your help.
regards
thomas
I need to do formatting with flag in my table based on the next conditions:
Format in Green when I'm above the average otherwize paint in Red.
But if I'm above the average but have negative value, still format with red flag.
see my example
In the example I added we can see that in the CANDY column everything Ok.
In the SNACKS columns everything also OK, but in the DRINKS column OZI & MEIR are in green color although they are both have small values than the average.
How can I do this?
* I need to use symbols (or flags) and not fill all the cell with the color!
You can edit conditional formatting just make first "conditional format" by "icon set" of each row then go "manage rules" and "edit rules" and change as photo.
It's will not works here, the average is -6.8 and we have value of -3. I need to paint this cell with RED (Because it's negative) but actually it's get GREEN flag.
SEE HERE