Photo of Spreadsheet
What I'm basically trying to do is have the cell E15 turn red when the percentage in J15 is less than or greater to 20%, and the cell K15 has the text: Plate.
I also want this effect to happen with all the cells in E15-E34, but for them to be based on their individual row. So, for example, E18 would turn red when K18 says: Plate and J18 is less than or greater to 20%. I don't know if I'm just going about this the wrong way, but if not, then how can I achieve what I need to?
I've tried removing the $ but they automatically reappear, any help would be greatly appreciated. See conditional formatting formula below. Photo of spreadsheet at beginning of text.
=AND(K15="Plate",J15>=20)
Column K is a selection of either Plate or Stiffener and Column J is a percentage based off a calculation of another cell.
In my above photo, I have setup a conditional format with two actions (ignore my values in the photo, and follow these steps).
First, Select Cell K15 to K19 (it is important to start at K15, or else you will have to modify the formula below).
Next, add a Conditional Format formula (below). Any cell reference within this formula MUST be relative to the K15 cell.
=IF($K15="Plate", AND($K15="Plate",$J15>=0.2), AND($K15="Stiffener", $J15>=0.25))
You could also use this bit of code which is much more flexible, as you can expand the number of items.
=OR(AND($K15="Plate", $J15>=0.2), AND($K15="Stiffener", $J15>=0.25))
Related
thank you for reading this.
I have a row containing a list of text.
APA
VEN
GRAB
I have a table containing either I or Super. Below the table, there are corresponding text such as APA, VEN, GRAB or blank formula cells.
I want to get the cells above a non-blank formula cell. For example, in the row APA, VEN, GRAB that I have..
I want APA to return the value of 5 cells above it. I know how to return one value above it (i.e. Super), but I am not sure how to get the 4 cells above Super.
APA I I I I Super
VEN
GRAB
Edit: =INDEX(AZ53:BA57,MATCH(BA58,BA53:BA57,0)-1,0) This is what I tried to return the cell above APA. I am trying to figure out how to return the 5 cells above APA.
I know I can enter formula to each cell. I wanted to do it in a formula if possible. Thank you again.
=INDEX(AZ53:BZ57,MATCH(BA58,BA53:BA57,0)-2,0)
=INDEX(AZ53:BZ57,MATCH(BA58,BA53:BA57,0)-3,0)
=INDEX(AZ53:BZ57,MATCH(BA58,BA53:BA57,0)-4,0)
=INDEX(AZ53:BZ57,MATCH(BA58,BA53:BA57,0)-5,0)
enter image description here
Answer based on inital question
Cell F10 contains the following formula =INDEX(F:F;ROW(F$10)+INDEX($C$2:$C$4;MATCH(F$9;$B$2:$B$4;0))-1) which has then be copied to G10 and I10.
I used the area B2:C4 to define the negative offsets for your non-blank content. As the field in which I display the result of the formula is one row below your non-blank content I added an additional -1 to the formula.
The grey numbers and the yellow highlights have been used to quickly validate the outcome.
Update based on questioner's comment
According to your instructions, source ranges (purple) would intersect with target ranges (blue), see cells with red border.
As it is not possible to put both a formula and a value into the same cell, I assumed that you wanted to explain independently
how the target should be structured and
how the source should be structured.
Hence, it looks like you are looking for a formula that transposes your values from columns into rows.
In the above image, the highlighted cells contain the following formula (example for cell S14):
=OFFSET(source_anchor,COLUMN(S14)-COLUMN(target_anchor),ROW(S14)-ROW(target_anchor))
source_anchor refers to cell Q3
target_anchor refers to cell R13
Please let me know if this is what you are looking for. If it is not the case, then please provide a mock-up.
I am looking for a formula to always use the cell above if the cell below is blank. If the blank cell is then filled out I will need the statement to jump to the next cell below it.
Lets assume your data is layed out as per the image below and your want your formula to go in the yellow cell. You want the last entry in the cells below, and you want the data from the cell above if there are no entries below.
The sticky part of this solution in that it uses a function that performs array like calculations. As such you should not use full column references. Without knowing what you data layout is it makes it difficult to automate a few things. For this particular solution I am assuming you will not have any other information below the yellow cells other than certificates. I have also assumed you wont have any certificates added past row 20. Feel free to adjust this number to suit your needs, however avoid full column references within AGGREGATE as you will be performing a bunch of useless calculations on empty cells that can bog down your system.
Used the following formula in the yellow cell B3 then copy to D4:
=IFERROR(INDEX(B:B,AGGREGATE(14,6,ROW(B4:B20)/(B4:B20<>""),1)),B2)
thanks in advance for the help.
I'm making a Gantt chart in Excel and am trying to integrate the capability to highlight the work week (WW). The idea is that one can select the WW from a drop down menu and the corresponding columns in the chart are highlighted. I am struggling with the conditional formatting formula to highlight the desired dates.
Here's a screen shot of how the chart is set up
I am able to highlight the column of the cell containing the WW value (e.g. in picture column I is highlighted as it contains "WW42" in cell I3. I would like to be able to highlight the days from Sunday to Saturday of each WW.
Most formulas (that I know) work on the value of the cells rather than their location or index. I have tried simply filling in all the blank cells with the WW value and then hiding the value, but the formatting isn't aesthetically pleasing and it's not efficient.
I have also tried merging the WW cells, but am unable to select all columns of the length of the merged cell, just the first column associated. For example, if I merged I3 to O3, conditional formatting will highlight that merged cell and only column I.
Any suggestions on how to approach this is greatly appreciated!
Attached is a screenshot of my structure with my conditional formating working as required. You'll need to adjust acording to your structure, but I used a formula-based conditional formating, with the rule:
=COUNTA($B$2:B$2)=$A$1 //Where A1 contains the workweek I want to highlight
Entered into cells $B$3:$V$6. Of course, in your case you'd have to change it to something like:
=COUNTA($B$2:B$2)+41-3=$A$1
Since your work weeks start at 42 and you have 3 extra headings you dont want added on your sum (ACTUAL START, ACTUAL DURATION and PERCENT COMPLETE). Also the header for the work week has to be a numeric value, but you can play around this to get what you need. Let me know if you'd need further help.
You do not need to use the third row for your conditional formatting, if row 4 has legal excel dates. The WEEKNUM() formula gives you exactly what you need.
If your Dropdown Menu is in cell B2 and consists of numbers from 1-52 then this should work for your conditional formatting:
=$B$2=WEEKNUM(D$1)
See attached photo.
I have several hundred rows of data in sets of two rows. Each row has ratings from 1-5. I need to highlight the cells when they differ by more than 1.
For example if one cell has a "4" and the cell below it is "3" or "5" that is ok. If one cell has a "4" but the cell below it has a "1,"2," or "5," both of those cells need to be highlighted.
I have looked into using conditional formating but this does not help because I can only enter rules asking to highlight < or >, not specific differences of 2 or more.
Background: The data is two sets of subjective ratings of videos of an autistic patient using psychological measures. If one rater differs from the other rater in scoring by more than "1," the data needs to be highlighted so the scoring for that measure can be discussed.
The picture is how the data should look like (not actual data file): http://imgur.com/a/Uym3G
Thank you!!
Assuming you only have two raters and no gaps in Column A after the first video and before the last, please select the range to be formatted starting in C4 and try this CF formula rule:
=OR(AND(ISODD(ROW()),ABS(C4-C3)>1),AND(ISEVEN(ROW()),ABS(C4-C5)>1))
For simplicity, and because I like to always have the ability to quickly change my conditional formatting, I like to use helper columns.
In this case, you can bring a helper column that you will hide afterwards.
Assuming your data starts in A2, and row 1 is your header rows. Assuming we are putting a helper column in B:
In B2 and B3: =ABS(A2-A3)
Drag all the way down
Put cursor in A1, conditional formatting based on a formula.
Formula =$B1>=2
Applies to $A:$A
Hide your helper column
Not sure what you base your statement about conditional formatting on, because what you describe is entirely possible with conditional formatting.
In conditional formatting you don't have to slavishly click the out of the box cell highlighting rules. You can easily roll your own by using a rule with a formula. Consider the following screenshot:
Select cells A2 to A10, create a new rule that uses a formula and enter this formula:
=OR(ABS(A1-A2)>1,ABS(A2-A3)>1)
Select a format and apply the rule to more rows/columns as desired.
I am currently trying to apply conditional formatting to certain rows which contain numbers in percentage (e.g. F11 to N11; F14 to N14; F17 to N17 and so on). These are also the only rows in the worksheet that have numbers in percentage. Would like to know what the fastest way to go about doing this is.
Should I:
(i) apply conditional formatting to the whole worksheet to numbers in percentage (if possible) or
(ii) apply conditional formatting to each individual row which is extremely time-consuming?
Appreciate if anyone can help.
Thanks in advance! :)
If your data in the percentage rows is also formatted as percentage, you can use the =CELL("format",[reference]) function, that returns "P0" or "P2" for percentage formatting.
Use a helper column (which you can hide if you want) to check the formatting of the first/last cell in the row, and then set conditional formatting based on the column:
After you create the column, you set a conditional formatting rule on the the upper-left cell in the range based on the formula: =[top cell in helper column]="P0". Keep the column fixed with a $ but not the row, as in the screenshot below, so you can drag the formatting to all the range with correct reference to the helper column.
Next step is to drag this cell to all the range, choosing the "formatting only" option:
Finally, you have to format again all rows that contains percentage values to percentage formatting.
However, if the place of the percentage rows is fixed, you don't need that CELL() function, just write in the helper column something like p or 1 for the rows to format.
(I have also tried to plug the formula directly to the formatting condition, but it doesn't work well all the time)
Tell me if it solved your problem ;)