This is an odd question. I have an issue I need to highlight a cell based on value, but it has a symbol in it and I cNt remove the symbol.
Value ranges are 1+ 3+ 5+ etc..
Need to highlight for each series higher than 1 but less than 3. Higher than 3 but less than 7. Etc...
Hope that makes sense.
Thanks
Casey
You should still be able to evaluate the number with the symbol after it, Excel should treat it as text where 1+ is still less than 3+ or 5+ is greather than 3+.
In your conditional formatting the rule would look something like this;
Cell Value <= $D$1
Where $D$1 is your selectable list which i'm assuming is possibly a validation list.
The format for the condition is whichever color you want it to highlight, and the Applies to part of the condition would be the range that you want to check against i.e. =$A:$A where all the 1+,3+,5+ numbers are.
This doesn't get you the whole answer but it should point you in the direction of setting your conditional formats.
Related
I want to count the number of times a task needs to occur within 14 days (today is 9/1). But I need to extract the date from strings of text. The formula below returns a spill error instead of one overall count.
Id also like to filter for just selected items (ex: bananas, apples, oranges). When i add that test it says all results are true.
I have conditionally formatted each cell's font to be red when the test is met but I can't count using conditional formatting. I also tried a user defined function in VBA but that can't use conditional formatting either.
=IF(OR(A5:A22="Bananas",A5:A22="Oranges",A5:A22="Apples"),(COUNTIF(B5:B22,(TODAY()-RIGHT(B5:B22,LEN(B5:B22)-FIND(" ",B5:B22)-0))<-14))
sample layout
with corrections in comments.. still not complete
Screenshots/here refer:
=SUM(1*(1=--ISNUMBER(MATCH(B3:B11,F3:F4,0)*(TODAY()-RIGHT($C$3:$C$11,LEN($C$3:$C$11)-FIND(" ",$C$3:$C$11)-0)>-14))))
Notes:
Have not paid much attention to the date component as you seem fine with that aspect (to customise illustrative e.g. I've used, replace the last part of equation above i.e. (9-MID(C3:C11,SEARCH("/",C3:C11)+1,LEN(C3:C11))>=-14) with the condition you've applied - i.e. (TODAY()-RIGHT($B$5:$B$22,LEN($B$5:$B$22)-FIND(" ",$B$5:$B$22)-0)>-14)
Suggests equation cell H3 becomes: SUM(1*(1=--ISNUMBER(MATCH(B3:B11,F3:F4,0)*(TODAY()-RIGHT($C$3:$C$11,LEN($C$3:$C$11)-FIND(" ",$C$3:$C$11)-0)>-14)))) (allowing for different ranges I use for this e.g.)
Alternative approach might be wrapping suitable function around the conditional formatting eqn. you provided in Q
RE: (pt. 3) - toying with idea of countifs, but personally prefer sum(1*(binary outcome)) 'wrapper' ☺
I have a column with specific case numbers, which look like 1/2017, 2/2017, etc. The series can go until infinite (I don't know for sure how many cases I will have), but it would be nice to be able to use autofill. If I select the first 3 values and drag down the fill handle, I get 1/2018, 2/2018, 3/2018. I would need exactly the opposite, to linearly change the first number and leave 2017 alone. The formatting of the column is General. Should I create a custom formatting and/or block the changing of the 2017 somehow? (I know that you can block a value of a cell from changing with the $ operator)
Thanks.
Put 1 in a cell and 2 in an adjacent cell. Use a custom number format of 0/\2\0\1\7 (which excel will auto-repair to 0/2\017). Fill as necessary.
Remember that you are now looking for 1, 2, etc in VLOOKUP's or any other cell comparison or matching.
First of all, I realize that there are threads like this already, but I cannot get the examples I've seen to work. What I want to accomplish is that a cell value should be presented as "x,xx" and in red color if the value is higher than 0, and otherwise in Color 14.
For instance, if this formatting would be used on
0,05-0,03
It would return (in red):
0,02
What I have done is to format the cell as:
[Red][>0]0,##;[Color14][<=0]0,##;
but it prints out a minus sign for values less than or equal to 0, which I do not want. Changing to:
[Red][>0]0,##;[Color14][<=0]0.##;
Omits the minus sign, as I want, but it makes the cell red which is not intended.
I've also tried a numerous combinations of ",", "." and "#" but it just wont work as intended.
I hope anyone can shed some light into this.
EDIT Using "General" instead of "0,##" prints out many more decimals than desired.
EDIT2 I use a Swedish Excel and hence I translate the formulas to Swedish formulae. Perhaps of importance?
See: https://support.office.com/en-us/article/Create-or-delete-a-custom-number-format-78f2a361-936b-4c03-8772-09fab54be7f4
A number format can have up to four sections of code, separated by semicolons. These code sections define the format for positive numbers, negative numbers, zero values, and text, in that order.
<POSITIVE>;<NEGATIVE>;<ZERO>;<TEXT>
So for your requirement no [conditions] are needed.
[Red]0,##;[Color14]0,##;[Color14]0,##
will suffice.
As for your further descriptions
[Red]0,00;[Color14]0,00;[Color14]0,00
may be better.
You cannot change the value of the cell with formatting, only the appearance.
So if you want the cell value to actually be positive it is not possible to do this way.
If this is what you actually want to do, try =ABS(A1) (will have to be done in another cell)
Because of floating point values, I cannot add a string of cells that contain values such as:
0.08178502
0.09262585
0.13261762
0.13016377
0.12302067
0.1136332
0.12176183
0.11430552
0.09971409
0.125285
Even if I try adding the first two through a sum formula or auto sum through selecting them, excel spits out an error. I have googled this like crazy and tried to change number formats. Is there a function that can allow me to add this information ?
Screenshot:
The spreadsheet is available on my Dropbox.
Those numbers are all preceded by a NBSP (Char Code 160). So, in order to sum them, you have to remove that. Many solutions. Here's one:
=SUMPRODUCT(--SUBSTITUTE(A1:A18,CHAR(160),""))
If a formula like:
=A1+A2+A3+A4+A5+A6+A7+A8+A9+A10
produces:
#VALUE!
then your "numbers" cells contain non-visible characters.
They must be removed before the formula will work.
If the cells contain text strings and not actual values you will need to convert the text to numeric values before performing any calculations. The function "=value(cell)" will bring the numeric value.
e.g.: A1 contains "000.12345678" (or some other non-numeric presentation of numerals)
In cell B1 type: =value(a1)
Cell B1 now operates as the real number 0.12345678
Oddly enough, the fact that it said 0.xxxxx in all numbers vs. .xxxxx is what the issue was. I'm just sharing that for folks who google/search and have same issue.
All I had to do was select that whole row and do a search in replace for "0." and make it just "." and now my numbers were usable in equations. For some reason the adjustment of formating as many searches suggested wasn't working
In Excel, I have the following formula =(MIN(H69,H52,H35,H18)*(1/H18))*10 that is supposed to return the MIN of a range, and divide it by the current cell (*(1/H18) ), then multiply by 10.
I am having difficulty with adding a type of NULLIF statement. I want to be able to have (the possibility for) blank rows, and have the MIN function ignore zero/blank fields while selecting the next lowest value (all are between 1.0-0.1).
Is there a modifier i can apply to the MIN function to make it not compare zeroes in the MIN set? Is there a better function than MIN to use?
Here is the arrangement:
Please remember to include the syntax for where the MIN's set goes
The reason for the H69,H52,H35,H18 using commas is that these are embedded, individual cells that are arranged for visual presentation as well. Using a range, or colon/semi-colon operators don't appear to work for this purpose (see pic).
This is to prevent the following situation: users will need to eliminate fields that are zeros from the form, theres 2 formula edits per entry, averaging 4 entries per use, so 8 possible errors per form use...
You can use an array formula:
=MIN(IF(A1:A100>0,A1:A100))
You will need to hit ctrl+shift+enter to activate this formula.
You could use
=SMALL(A1:A3,COUNTIF(A1:A3,0)+1)