Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Using the SUMIF function, i would like answers returned that are < to be in
red font, and when the answer is = (ie the correct answer), for it to be in black font. is there a way of conditional font formatting? Thanks in advance. Mel |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
It kind of depends upon how your SUMIF() formula is set up. If it is set up
to get the criteria from a cell [ like =SUMIF(A2:A9,$D$2,B2:B9)] rather than having the criteria coded into the formula [ like =SUMIF(A2:A9,"G",B2:B9)] then it can be done. Assume a table like I used in my example formulas: the IF range is in A2:A9 with the numbers to be SUMmed in B2:B9 and cell D2 is where we can type in the 'criteria' value for the SUMIF() formula to use. Then you can select the values in column B and use Conditional Format and use the "Formual Is" setting and set up this formula: =$A2<$D$2 and set the font color to red in that situation. Notice that I removed the $ that Excel probably put between the A and the 2 in the formula (it tried to write it as =$A$2<$D$2 initially) before committing the formula with the [OK] button. Hope this helps you with the problem. "Mel" wrote: Using the SUMIF function, i would like answers returned that are < to be in red font, and when the answer is = (ie the correct answer), for it to be in black font. is there a way of conditional font formatting? Thanks in advance. Mel |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks so much for your speedy response! unfortunately i am blonde, and am
still in the initial stages of bumbling my way around Excel, so some of your reply is over my head! :) I am using a number of sums that are all formatted similarly to this: =IF(NOT(B7<=0.0375), "Over Limit", "Within Limit") Does this mean that I can't colour the words red, because it isn't a cell reference sum like the one you use as an example? Thanks again. Mel "JLatham" wrote: It kind of depends upon how your SUMIF() formula is set up. If it is set up to get the criteria from a cell [ like =SUMIF(A2:A9,$D$2,B2:B9)] rather than having the criteria coded into the formula [ like =SUMIF(A2:A9,"G",B2:B9)] then it can be done. Assume a table like I used in my example formulas: the IF range is in A2:A9 with the numbers to be SUMmed in B2:B9 and cell D2 is where we can type in the 'criteria' value for the SUMIF() formula to use. Then you can select the values in column B and use Conditional Format and use the "Formual Is" setting and set up this formula: =$A2<$D$2 and set the font color to red in that situation. Notice that I removed the $ that Excel probably put between the A and the 2 in the formula (it tried to write it as =$A$2<$D$2 initially) before committing the formula with the [OK] button. Hope this helps you with the problem. "Mel" wrote: Using the SUMIF function, i would like answers returned that are < to be in red font, and when the answer is = (ie the correct answer), for it to be in black font. is there a way of conditional font formatting? Thanks in advance. Mel |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
First, I think I'd change the if condition:
=IF(NOT(B7<=0.0375), "Over Limit", "Within Limit") to =IF(B70.0375,"Over Limit","Within Limit") I think it makes it easier to read/understand. Then you could use conditional formatting: Cell Value is: equal to: Over limit and give it a nice format. Then click add and do the same with "within limit" This will format the entire cell with the format you choose. (You can't change just the format for the words Over or Within.) Mel wrote: Thanks so much for your speedy response! unfortunately i am blonde, and am still in the initial stages of bumbling my way around Excel, so some of your reply is over my head! :) I am using a number of sums that are all formatted similarly to this: =IF(NOT(B7<=0.0375), "Over Limit", "Within Limit") Does this mean that I can't colour the words red, because it isn't a cell reference sum like the one you use as an example? Thanks again. Mel "JLatham" wrote: It kind of depends upon how your SUMIF() formula is set up. If it is set up to get the criteria from a cell [ like =SUMIF(A2:A9,$D$2,B2:B9)] rather than having the criteria coded into the formula [ like =SUMIF(A2:A9,"G",B2:B9)] then it can be done. Assume a table like I used in my example formulas: the IF range is in A2:A9 with the numbers to be SUMmed in B2:B9 and cell D2 is where we can type in the 'criteria' value for the SUMIF() formula to use. Then you can select the values in column B and use Conditional Format and use the "Formual Is" setting and set up this formula: =$A2<$D$2 and set the font color to red in that situation. Notice that I removed the $ that Excel probably put between the A and the 2 in the formula (it tried to write it as =$A$2<$D$2 initially) before committing the formula with the [OK] button. Hope this helps you with the problem. "Mel" wrote: Using the SUMIF function, i would like answers returned that are < to be in red font, and when the answer is = (ie the correct answer), for it to be in black font. is there a way of conditional font formatting? Thanks in advance. Mel -- Dave Peterson |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Perfect - thanks heaps to both of you!
"Dave Peterson" wrote: First, I think I'd change the if condition: =IF(NOT(B7<=0.0375), "Over Limit", "Within Limit") to =IF(B70.0375,"Over Limit","Within Limit") I think it makes it easier to read/understand. Then you could use conditional formatting: Cell Value is: equal to: Over limit and give it a nice format. Then click add and do the same with "within limit" This will format the entire cell with the format you choose. (You can't change just the format for the words Over or Within.) Mel wrote: Thanks so much for your speedy response! unfortunately i am blonde, and am still in the initial stages of bumbling my way around Excel, so some of your reply is over my head! :) I am using a number of sums that are all formatted similarly to this: =IF(NOT(B7<=0.0375), "Over Limit", "Within Limit") Does this mean that I can't colour the words red, because it isn't a cell reference sum like the one you use as an example? Thanks again. Mel "JLatham" wrote: It kind of depends upon how your SUMIF() formula is set up. If it is set up to get the criteria from a cell [ like =SUMIF(A2:A9,$D$2,B2:B9)] rather than having the criteria coded into the formula [ like =SUMIF(A2:A9,"G",B2:B9)] then it can be done. Assume a table like I used in my example formulas: the IF range is in A2:A9 with the numbers to be SUMmed in B2:B9 and cell D2 is where we can type in the 'criteria' value for the SUMIF() formula to use. Then you can select the values in column B and use Conditional Format and use the "Formual Is" setting and set up this formula: =$A2<$D$2 and set the font color to red in that situation. Notice that I removed the $ that Excel probably put between the A and the 2 in the formula (it tried to write it as =$A$2<$D$2 initially) before committing the formula with the [OK] button. Hope this helps you with the problem. "Mel" wrote: Using the SUMIF function, i would like answers returned that are < to be in red font, and when the answer is = (ie the correct answer), for it to be in black font. is there a way of conditional font formatting? Thanks in advance. Mel -- Dave Peterson |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Helps when we see the formula's you're using, as you provided for Dave
Peterson to assist with - I was kind of stabbing in the dark as to what you needed. "Mel" wrote: Thanks so much for your speedy response! unfortunately i am blonde, and am still in the initial stages of bumbling my way around Excel, so some of your reply is over my head! :) I am using a number of sums that are all formatted similarly to this: =IF(NOT(B7<=0.0375), "Over Limit", "Within Limit") Does this mean that I can't colour the words red, because it isn't a cell reference sum like the one you use as an example? Thanks again. Mel "JLatham" wrote: It kind of depends upon how your SUMIF() formula is set up. If it is set up to get the criteria from a cell [ like =SUMIF(A2:A9,$D$2,B2:B9)] rather than having the criteria coded into the formula [ like =SUMIF(A2:A9,"G",B2:B9)] then it can be done. Assume a table like I used in my example formulas: the IF range is in A2:A9 with the numbers to be SUMmed in B2:B9 and cell D2 is where we can type in the 'criteria' value for the SUMIF() formula to use. Then you can select the values in column B and use Conditional Format and use the "Formual Is" setting and set up this formula: =$A2<$D$2 and set the font color to red in that situation. Notice that I removed the $ that Excel probably put between the A and the 2 in the formula (it tried to write it as =$A$2<$D$2 initially) before committing the formula with the [OK] button. Hope this helps you with the problem. "Mel" wrote: Using the SUMIF function, i would like answers returned that are < to be in red font, and when the answer is = (ie the correct answer), for it to be in black font. is there a way of conditional font formatting? Thanks in advance. Mel |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Without your question to Mel and his/her response, I wouldn't have ventured a
guess. JLatham wrote: Helps when we see the formula's you're using, as you provided for Dave Peterson to assist with - I was kind of stabbing in the dark as to what you needed. "Mel" wrote: Thanks so much for your speedy response! unfortunately i am blonde, and am still in the initial stages of bumbling my way around Excel, so some of your reply is over my head! :) I am using a number of sums that are all formatted similarly to this: =IF(NOT(B7<=0.0375), "Over Limit", "Within Limit") Does this mean that I can't colour the words red, because it isn't a cell reference sum like the one you use as an example? Thanks again. Mel "JLatham" wrote: It kind of depends upon how your SUMIF() formula is set up. If it is set up to get the criteria from a cell [ like =SUMIF(A2:A9,$D$2,B2:B9)] rather than having the criteria coded into the formula [ like =SUMIF(A2:A9,"G",B2:B9)] then it can be done. Assume a table like I used in my example formulas: the IF range is in A2:A9 with the numbers to be SUMmed in B2:B9 and cell D2 is where we can type in the 'criteria' value for the SUMIF() formula to use. Then you can select the values in column B and use Conditional Format and use the "Formual Is" setting and set up this formula: =$A2<$D$2 and set the font color to red in that situation. Notice that I removed the $ that Excel probably put between the A and the 2 in the formula (it tried to write it as =$A$2<$D$2 initially) before committing the formula with the [OK] button. Hope this helps you with the problem. "Mel" wrote: Using the SUMIF function, i would like answers returned that are < to be in red font, and when the answer is = (ie the correct answer), for it to be in black font. is there a way of conditional font formatting? Thanks in advance. Mel -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
sumif for multi conditions. i.e sumif(A1:A10,"Jon" and B1:B10,"A" | Excel Worksheet Functions | |||
Embedding a Sumif in a sumif | Excel Worksheet Functions | |||
SUMIF | Excel Worksheet Functions | |||
nested sumif or sumif with two criteria | Excel Worksheet Functions | |||
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function | Excel Worksheet Functions |