I am working on an if/and statement in conditional formatting.
I have 2 sheets. --- YTD Summary and Parameters
I want to conditional format the following 'YTD Summary'! I11:I31
These are set up as Percentages. The Parameters page has cell B2 with one of the following variables depending on what month it is (Jan, Feb, Mar, Apr, etc.)
the formulas I have tried are as follows
AND(Parameters!$B$2="Oct,'YTD Summary'!$I$11<(3/12-.05))
and(Parameters!B2="Oct",'YTD Summary'!I11<3/12-.05)
Conditional formatting takes the formula, but doesn't turn any of the percentages red within the specified range (I11:I31). Yes, I have formatted it for red text. Any help would be much appreciated. I have spent way to much time on this. thank you, Matt
=AND(Parameters!B$2="Oct",I11<0.2)
This worked for me. If the B$2 reference needs to move downward with the values in I, then remove the $ before 2.
Thanks!
Related
Im exploring how feasible it is to extract data from cells that consist of text. ultimately. I will apply conditional formatting rules based on the date relative to today, but right now I just need to be able to extract them.
So far I have achieved the following:
To achieve this I've used the formula found online =IFERROR(DATEVALUE(LEFT(RIGHT(B2,(LEN(B2)-(FIND("-",B2)-3))),11)),""). The issue is that if a cell contains only a date, the Length is subtracted from itself and nothing is returned. I have tried modifying the above equation but keep running into errors.
Hoping someone may be able to help me out modify this formula. Alternatively, if anyone knows how dates can be extracted used just excel formulas that would be great.
The issue is that without the other text it is a true date and a true date is a double and has no - in it.
The simple fix is to wrap change the"" return from the IFERROR to B2:
=IFERROR(DATEVALUE(LEFT(RIGHT(B2,(LEN(B2)-(FIND("-",B2)-3))),11)),B2)
If that is not sufficient you can do an IF to test if date:
=IF(ISNUMBER(B2),B2,IFERROR(DATEVALUE(LEFT(RIGHT(B2,(LEN(B2)-(FIND("-",B2)-3))),11)),""))
This is a solution I came up with with appears to work for almost Any Date format provided the date is at the top of the cell. Note this was done for dates in cell H6 of my workbook.
The formula below can be entered below to extract the date from this cell amongst text.
=TEXT(IFERROR(LEFT(H6,SEARCH(CHAR(10),H6,1)-1),H6),"dd-mmm-yyyy")
This formula checks if the date is within 3 years and returns a true of false value. This can be used to conditionally Format Cells if the date once extracted is out of date.
=IF(ISBLANK(H6),FALSE,IFERROR(IF(DATEVALUE(TEXT(IFERROR(LEFT(H6,SEARCH(CHAR(10), H6, 1)-1),H6),"dd-mmm-yyyy"))<=TODAY()-(365*3),TRUE,FALSE),TRUE))
Works really well for me!
I have this spreadsheet
I have been trying to come up with a conditional formatting formula that will allow me to deconflict meeting times. If there are two meetings on Tue at 10 (as shown), I'd like the column to turn red. I can't find a way to do this without having hundreds of statements in the formula. There's got to be a simpler way I just don't know about. Thanks in advance!
How do i sum up a range of amounts after checking through the month and year?
As you can see in the image, my code currently sums up all amounts by checking only on the month. This is incorrect as it should check the year as well before auto summing itself into the respective months and year.
Here is the Excel Cell code:
Cell C36="$"&SUMIF(B17:B23,"*."&TEXT(B30,"mm")&".*",E17:E23)-SUMIF(B17:B23,"*."&TEXT(B30,"mm")&".*",G17:G23)
I tried modifying the code to add in a "yy" as shown below, but it didnt work out. In fact the 2017 amount of $555 reflected in 2018 instead.
="$"&SUMIF(B17:B23,"*."&TEXT(B30,"mm")&"."&TEXT(B30,"yy")&"",E17:E23)-SUMIF(B17:B23,"*."&TEXT(B30,"mm")&".*",G17:G23)
What do I need to change?
BTW, Cells B30 and B36 are Custom formatted to "mmm-yy" while Cells B17 and B18 is Text.
managed to solve my own code.
Apparently its just a change in the parameters.
Cell C36="$"&SUMIF(B17:B23,"*."&TEXT(B30,"mm.yy")&"*",E17:E23)-SUMIF(B17:B23,"*."&TEXT(B30,"mm.yy")&"*",G17:G23)
Here is an alternative. SUMPRODUCT allows you to use RIGHT function to do the comparison for mm.yy.
="$" & SUMPRODUCT((--(RIGHT(B17:B23,5)=TEXT(B36,"mm.yy")))*E17:E23)-SUMPRODUCT((--(RIGHT(B17:B23,5)=TEXT(B36,"mm.yy")))*G17:G23)
I’ve been struggling to try and figure this one out, it to do with conditional formation in Excel. I want to find a way to highlight the next payment schedule based on the current date. So if today was 10 Feb, the next payment schedule would be 15th Feb and is therefore highlighted. If today was the 16th Feb, A6 and B6 would be highlighted
Can any one help me with the formula for this, I’m assuming its conditional formatting with a formula. but the formula stumps me. this formula would need to be applied to a large range of dates (600 dates)
Simply try this formula:
=COUNTIFS($A$2:$A$9,"<="&$A2,$A$2:$A$9,">"&TODAY())=1
if you want to show also a day which is the actual day then simply add the = to the today part:
=COUNTIFS($A$2:$A$9,"<="&$A2,$A$2:$A$9,">="&TODAY())=1
but make sure to not miss any $ (or do to much of them) ;)
alternatively you also could use the short formula (which may be slower for bigger tables:
=$A2=MIN(IF($A$2:$A$9>TODAY(),$A$2:$A$9))
$A$2:$A$9>=TODAY() will include the actual day
I am trying to create a conditional formatting for a range of dates. I want anything longer than 30 days away to format green, anything within 8-30 days to be yellow and anything less than 8 days to be red.
I have tried the following formula without any luck:
=IF(H56<=Today()+7,"1",IF(AND(H56<Today()+30,H56>=Today()+8,"2","")))
Any help would be greatly appreciated. Thanks.
OP has indicated that:
=IF(H56<TODAY()+8,1,IF(AND(H56<TODAY()+30,H56>TODAY()+7),2,3))
met his requirements.
This is a formula for use in connection with CF but not itself the formula for a CF rule. The formula would be applied to a spreadsheet in a 'normal' way - to return 1, 2 or 3 - and then those values (only two are really necessary) applied in CF with a rule such as Format only cells that contain (ie not applying Use a formula to determine which cells to format - though that is a viable alternative where two short formulae could be applied instead of the formula above in the spreadsheet).