Conditional formatting help reqd!
- Jester
- Sir Jedi Jesterlot
- Posts: 25201
- Joined: 13 Oct 2005, 18:28
- Location: Back at FISODAS Tower!
- FS Record: TFC 2008 T20 winner; EggCup Div 1 06/07; Two-Foot Cup 2018; S4 EPL Cup 2020
- Contact:
Conditional formatting help reqd!
Right, hope someone can guide me here....?
I an using CF to highlight a cell if the date in it is more than a year old:
I'm using: Conditional formatting => New rule => 'use a formula to determine which cells to format'
The formatting rule being "=A1<=TODAY()-365"
Then select the cell format etc
What I want to do is to add another condition so that the cell is only formatted if a certain value is found in an adjacent cell, eg if A4 contains 'PAID' then A1 should be formatted if over a year old. If A4 is clear, then A1 should not be formatted.
Hope that makes sense!
I'm happy to approach this in a completely different way if there is one but I don't really have room on the sheet to enter formulae, hence using CF.
Thanks a bunch!
I an using CF to highlight a cell if the date in it is more than a year old:
I'm using: Conditional formatting => New rule => 'use a formula to determine which cells to format'
The formatting rule being "=A1<=TODAY()-365"
Then select the cell format etc
What I want to do is to add another condition so that the cell is only formatted if a certain value is found in an adjacent cell, eg if A4 contains 'PAID' then A1 should be formatted if over a year old. If A4 is clear, then A1 should not be formatted.
Hope that makes sense!
I'm happy to approach this in a completely different way if there is one but I don't really have room on the sheet to enter formulae, hence using CF.
Thanks a bunch!
- Surprised
- FISO Jedi Knight
- Posts: 26528
- Joined: 13 Oct 2005, 18:32
- Location: Home
- FS Record: TFFOSM MotW in 2008 and MotM in 2003. 78th overall in TFFO for 2002/3 and 2003/4
- FPL:
Re: Conditional formatting help reqd!
You should be able to use AND as the formula
- Surprised
- FISO Jedi Knight
- Posts: 26528
- Joined: 13 Oct 2005, 18:32
- Location: Home
- FS Record: TFFOSM MotW in 2008 and MotM in 2003. 78th overall in TFFO for 2002/3 and 2003/4
- FPL:
Re: Conditional formatting help reqd!
Try this:
Say the date is in col A and paid is in Col B and starts in row 3
In C3 put this formula:
=IF(AND(B3="Paid",A3<=TODAY()-365),1,0)
The CF for col A is
=C3
Say the date is in col A and paid is in Col B and starts in row 3
In C3 put this formula:
=IF(AND(B3="Paid",A3<=TODAY()-365),1,0)
The CF for col A is
=C3
- Jester
- Sir Jedi Jesterlot
- Posts: 25201
- Joined: 13 Oct 2005, 18:28
- Location: Back at FISODAS Tower!
- FS Record: TFC 2008 T20 winner; EggCup Div 1 06/07; Two-Foot Cup 2018; S4 EPL Cup 2020
- Contact:
Re: Conditional formatting help reqd!
Thank you - will try it tomorrow
- Surprised
- FISO Jedi Knight
- Posts: 26528
- Joined: 13 Oct 2005, 18:32
- Location: Home
- FS Record: TFFOSM MotW in 2008 and MotM in 2003. 78th overall in TFFO for 2002/3 and 2003/4
- FPL:
Re: Conditional formatting help reqd!
In fact you can put that formula in the CF formula box and it works to so no need for any extra coloumn
- Jester
- Sir Jedi Jesterlot
- Posts: 25201
- Joined: 13 Oct 2005, 18:28
- Location: Back at FISODAS Tower!
- FS Record: TFC 2008 T20 winner; EggCup Div 1 06/07; Two-Foot Cup 2018; S4 EPL Cup 2020
- Contact:
Re: Conditional formatting help reqd!
Surprised wrote:In fact you can put that formula in the CF formula box and it works to so no need for any extra coloumn
Now that's what I wanted!
- unc.si.
- FISO Knight
- Posts: 11815
- Joined: 11 Oct 2010, 14:08
- Location: Off to buy Loctite
- FS Record: 'Loser' by Beck
Re: Conditional formatting help reqd!
You won't need the If statement if you put it into the conditional formatting wizard. Excel does that bit for you.
- Surprised
- FISO Jedi Knight
- Posts: 26528
- Joined: 13 Oct 2005, 18:32
- Location: Home
- FS Record: TFFOSM MotW in 2008 and MotM in 2003. 78th overall in TFFO for 2002/3 and 2003/4
- FPL:
Re: Conditional formatting help reqd!
unc.si. wrote:You won't need the If statement if you put it into the conditional formatting wizard. Excel does that bit for you.
I don't have the wizard
- unc.si.
- FISO Knight
- Posts: 11815
- Joined: 11 Oct 2010, 14:08
- Location: Off to buy Loctite
- FS Record: 'Loser' by Beck
Re: Conditional formatting help reqd!
Oh OK. Wouldn't know how to do it without using the conditional formatting button to add a rule.
- Surprised
- FISO Jedi Knight
- Posts: 26528
- Joined: 13 Oct 2005, 18:32
- Location: Home
- FS Record: TFFOSM MotW in 2008 and MotM in 2003. 78th overall in TFFO for 2002/3 and 2003/4
- FPL:
Re: Conditional formatting help reqd!
I had a look aroundunc.si. wrote:Oh OK. Wouldn't know how to do it without using the conditional formatting button to add a rule.
Conditional Sum Wizard add-in
This add-in is no longer included with Excel 2010. In earlier versions of Excel, you could use the Conditional Sum Wizard to help you write formulas that calculate the sums of values that met specified conditions. In Excel 2010, you can write conditional formulas by using functions that are designed to help with that task, such as the SUMIF and SUMIFS functions.
Formulas that were generated by this wizard will continue to work in Excel 2010. You can edit them by using other methods.
- unc.si.
- FISO Knight
- Posts: 11815
- Joined: 11 Oct 2010, 14:08
- Location: Off to buy Loctite
- FS Record: 'Loser' by Beck
Re: Conditional formatting help reqd!
Looks like I'm just living in the past then
- Surprised
- FISO Jedi Knight
- Posts: 26528
- Joined: 13 Oct 2005, 18:32
- Location: Home
- FS Record: TFFOSM MotW in 2008 and MotM in 2003. 78th overall in TFFO for 2002/3 and 2003/4
- FPL:
Re: Conditional formatting help reqd!
Yep.
2010 is the future
2010 is the future
- unc.si.
- FISO Knight
- Posts: 11815
- Joined: 11 Oct 2010, 14:08
- Location: Off to buy Loctite
- FS Record: 'Loser' by Beck
Re: Conditional formatting help reqd!
I'm on Excel 2013.
Your quote relates to conditional sum not conditional formatting.
Your quote relates to conditional sum not conditional formatting.
- Surprised
- FISO Jedi Knight
- Posts: 26528
- Joined: 13 Oct 2005, 18:32
- Location: Home
- FS Record: TFFOSM MotW in 2008 and MotM in 2003. 78th overall in TFFO for 2002/3 and 2003/4
- FPL:
Re: Conditional formatting help reqd!
So I see .
But I still don't have Conditional Format wizard and admit I never heard of conditional sum wizard. I just type formulas.
How do you access the wizard?
But I still don't have Conditional Format wizard and admit I never heard of conditional sum wizard. I just type formulas.
How do you access the wizard?
- unc.si.
- FISO Knight
- Posts: 11815
- Joined: 11 Oct 2010, 14:08
- Location: Off to buy Loctite
- FS Record: 'Loser' by Beck
Re: Conditional formatting help reqd!
'Wizard' might be a misnomer (I tend to call anything that doesn't just involve typing in a formula yourself a wizard).
I just mean the conditional formatting button on the home ribbon, ie conditional formatting / new rule, then 'use a formula'. The 'use a formula' then brings up a box to type in, but it effectively does the 'IF' bit for you. You just enter the formula that you want evaluating (without the need for the IF statement) and then hit the format button to set the formatting if that statement is true.
Don't know any other way of doing it without writing some vba code (which would just be duplicating the code that excel uses for the conditional formatting button).
Only mentioned it because if jester used the conditional formatting button and included the IF statement he'd (probably) get an error.
I just mean the conditional formatting button on the home ribbon, ie conditional formatting / new rule, then 'use a formula'. The 'use a formula' then brings up a box to type in, but it effectively does the 'IF' bit for you. You just enter the formula that you want evaluating (without the need for the IF statement) and then hit the format button to set the formatting if that statement is true.
Don't know any other way of doing it without writing some vba code (which would just be duplicating the code that excel uses for the conditional formatting button).
Only mentioned it because if jester used the conditional formatting button and included the IF statement he'd (probably) get an error.
- unc.si.
- FISO Knight
- Posts: 11815
- Joined: 11 Oct 2010, 14:08
- Location: Off to buy Loctite
- FS Record: 'Loser' by Beck
Re: Conditional formatting help reqd!
Oh - I've never heard of a conditional sum wizard either. Can't imagine anyone would need a 'wizard' to help with a sumif or sumifs statement. Probably why they scrapped it
- WilBert
- Dumbledore
- Posts: 7767
- Joined: 28 Dec 2009, 21:07
- Location: 2nd in SP4's Ashes comp.
Re: Conditional formatting help reqd!
That's the way I do it too, mess around with if formulas for 5 hours to get it to work stick it in the conditional formula box then sit back with some satisfaction looking at the work of art before realising I'm going to have to work late to finish my proper job.unc.si. wrote:'Wizard' might be a misnomer (I tend to call anything that doesn't just involve typing in a formula yourself a wizard).
I just mean the conditional formatting button on the home ribbon, ie conditional formatting / new rule, then 'use a formula'. The 'use a formula' then brings up a box to type in, but it effectively does the 'IF' bit for you. You just enter the formula that you want evaluating (without the need for the IF statement) and then hit the format button to set the formatting if that statement is true.
Don't know any other way of doing it without writing some vba code (which would just be duplicating the code that excel uses for the conditional formatting button).
Only mentioned it because if jester used the conditional formatting button and included the IF statement he'd (probably) get an error.
- Surprised
- FISO Jedi Knight
- Posts: 26528
- Joined: 13 Oct 2005, 18:32
- Location: Home
- FS Record: TFFOSM MotW in 2008 and MotM in 2003. 78th overall in TFFO for 2002/3 and 2003/4
- FPL:
Re: Conditional formatting help reqd!
Oh OK.
Then I have it. Yeah...you don't need the IF part if it's just one condition as IF is the rule but if checking multiple conditions then you need to put in the full formula (IF+AND in this case). Multiple IFs or IFORs can just be done with a bunch of rules
Then I have it. Yeah...you don't need the IF part if it's just one condition as IF is the rule but if checking multiple conditions then you need to put in the full formula (IF+AND in this case). Multiple IFs or IFORs can just be done with a bunch of rules
- Surprised
- FISO Jedi Knight
- Posts: 26528
- Joined: 13 Oct 2005, 18:32
- Location: Home
- FS Record: TFFOSM MotW in 2008 and MotM in 2003. 78th overall in TFFO for 2002/3 and 2003/4
- FPL:
Re: Conditional formatting help reqd!
unc.si. wrote:Oh - I've never heard of a conditional sum wizard either. Can't imagine anyone would need a 'wizard' to help with a sumif or sumifs statement. Probably why they scrapped it
I have a feeling it was used with named ranges and may have been of limited use to some especially if all they could do was add up a list of numbers. Probably more trouble than it was worth.
- WilBert
- Dumbledore
- Posts: 7767
- Joined: 28 Dec 2009, 21:07
- Location: 2nd in SP4's Ashes comp.
Re: Conditional formatting help reqd!
I'd also have no physical and mental control of myself - I'd have to make the cell orange 2 weeks before it becomes a year old.
- unc.si.
- FISO Knight
- Posts: 11815
- Joined: 11 Oct 2010, 14:08
- Location: Off to buy Loctite
- FS Record: 'Loser' by Beck
Re: Conditional formatting help reqd!
You just need the AND(condition 1, condition 2, etc)Surprised wrote:Oh OK.
Then I have it. Yeah...you don't need the IF part if it's just one condition as IF is the rule but if checking multiple conditions then you need to put in the full formula (IF+AND in this case). Multiple IFs or IFORs can just be done with a bunch of rules
- Surprised
- FISO Jedi Knight
- Posts: 26528
- Joined: 13 Oct 2005, 18:32
- Location: Home
- FS Record: TFFOSM MotW in 2008 and MotM in 2003. 78th overall in TFFO for 2002/3 and 2003/4
- FPL:
Re: Conditional formatting help reqd!
Or keep refreshing the spreadsheet to see the exact moment the cell changes colour.WilBert wrote:I'd also have no physical and mental control of myself - I'd have to make the cell orange 2 weeks before it becomes a year old.
- Surprised
- FISO Jedi Knight
- Posts: 26528
- Joined: 13 Oct 2005, 18:32
- Location: Home
- FS Record: TFFOSM MotW in 2008 and MotM in 2003. 78th overall in TFFO for 2002/3 and 2003/4
- FPL:
Re: Conditional formatting help reqd!
unc.si. wrote:You just need the AND(condition 1, condition 2, etc)Surprised wrote:Oh OK.
Then I have it. Yeah...you don't need the IF part if it's just one condition as IF is the rule but if checking multiple conditions then you need to put in the full formula (IF+AND in this case). Multiple IFs or IFORs can just be done with a bunch of rules
OK. I didn't bother checking that. Still works with the IF but just checked without it and it didn't format
- Jester
- Sir Jedi Jesterlot
- Posts: 25201
- Joined: 13 Oct 2005, 18:28
- Location: Back at FISODAS Tower!
- FS Record: TFC 2008 T20 winner; EggCup Div 1 06/07; Two-Foot Cup 2018; S4 EPL Cup 2020
- Contact:
Re: Conditional formatting help reqd!
The thread's gone viral!
And I haven't even had a chance to try it yet....... Tonight!
And I haven't even had a chance to try it yet....... Tonight!
- Jester
- Sir Jedi Jesterlot
- Posts: 25201
- Joined: 13 Oct 2005, 18:28
- Location: Back at FISODAS Tower!
- FS Record: TFC 2008 T20 winner; EggCup Div 1 06/07; Two-Foot Cup 2018; S4 EPL Cup 2020
- Contact:
Re: Conditional formatting help reqd!
Surprised wrote:In fact you can put that formula in the CF formula box and it works to so no need for any extra coloumn
This works well thank you
Just one small thing.........
If the date cell is blank the CF thinks it is more than a year ago and formats the cell. I'm not sure if this is a good thing or not, but can I stop it happening if I want to?
- Surprised
- FISO Jedi Knight
- Posts: 26528
- Joined: 13 Oct 2005, 18:32
- Location: Home
- FS Record: TFFOSM MotW in 2008 and MotM in 2003. 78th overall in TFFO for 2002/3 and 2003/4
- FPL:
Re: Conditional formatting help reqd!
Jester wrote:Surprised wrote:In fact you can put that formula in the CF formula box and it works to so no need for any extra coloumn
This works well thank you
Just one small thing.........
If the date cell is blank the CF thinks it is more than a year ago and formats the cell. I'm not sure if this is a good thing or not, but can I stop it happening if I want to?
Just put a date in that's less than a year?
- Jester
- Sir Jedi Jesterlot
- Posts: 25201
- Joined: 13 Oct 2005, 18:28
- Location: Back at FISODAS Tower!
- FS Record: TFC 2008 T20 winner; EggCup Div 1 06/07; Two-Foot Cup 2018; S4 EPL Cup 2020
- Contact:
Re: Conditional formatting help reqd!
Hahaha - didn't think of that!!
Rather I meant how to stop a blank cell being highlighted?
I actually think it's good the way it is - highlights if a date has been missed. Just in case it gets confusing to others that I asked.
No worries if it can't be done.
Rather I meant how to stop a blank cell being highlighted?
I actually think it's good the way it is - highlights if a date has been missed. Just in case it gets confusing to others that I asked.
No worries if it can't be done.
- Surprised
- FISO Jedi Knight
- Posts: 26528
- Joined: 13 Oct 2005, 18:32
- Location: Home
- FS Record: TFFOSM MotW in 2008 and MotM in 2003. 78th overall in TFFO for 2002/3 and 2003/4
- FPL:
Re: Conditional formatting help reqd!
I'm sure it can be done.
May need to add a second rule or make adjustments to the formula.
I'll look tomorrow
May need to add a second rule or make adjustments to the formula.
I'll look tomorrow
- Rob
- Grumpy Old Man
- Posts: 3639
- Joined: 24 Jul 2009, 10:54
- Location: Poster formerly known as SOBD
- FS Record: WC2010 FISODAS Champion!!
- FPL:
Re: Conditional formatting help reqd!
Using Surprised's example formula, it would become:
=IF(AND(B3="Paid",NOT(ISBLANK(A3)),A3<=TODAY()-365),1,0)
=IF(AND(B3="Paid",NOT(ISBLANK(A3)),A3<=TODAY()-365),1,0)
- Jester
- Sir Jedi Jesterlot
- Posts: 25201
- Joined: 13 Oct 2005, 18:28
- Location: Back at FISODAS Tower!
- FS Record: TFC 2008 T20 winner; EggCup Div 1 06/07; Two-Foot Cup 2018; S4 EPL Cup 2020
- Contact:
Re: Conditional formatting help reqd!
Thank you!
View Latest: 1 Day View Your posts