Warning: Cannot modify header information - headers already sent by (output started at /home/excel13/public_html/blog/wp-content/themes/cordobo-green-park-09-beta-09/functions.php:2) in /home/excel13/public_html/blog/wp-includes/feed-rss2-comments.php on line 8
Comments on: Making an Icon Set show only two conditions http://www.excelguru.ca/blog/2009/04/23/making-an-icon-set-show-only-two-conditions/ More geeky stuff from the author of www.excelguru.ca... Mon, 31 Oct 2011 15:51:25 +0000 hourly 1 http://wordpress.org/?v=3.3.1 By: Ken Puls http://www.excelguru.ca/blog/2009/04/23/making-an-icon-set-show-only-two-conditions/comment-page-1/#comment-164267 Ken Puls Tue, 28 Jul 2009 04:50:48 +0000 http://www.excelguru.ca/blog/2009/04/23/making-an-icon-set-show-only-two-conditions/#comment-164267 Hi Reed, When you're setting up your icon set, change the "Type" to Formula from "Percent", and you should be able to do what you're after. You're right that you can't use a formula in a conditional format and do anything to blank cells, but you could always use a helper column to coerce your values the right way, then conditionally format that with the formula. (In my experience, it does work.) Of course, if you can coerce your values using a formula to put it in a cell, you could do so in the formula for the conditional format anyway, so the helper column may not be necessary. Hi Reed,

When you’re setting up your icon set, change the “Type” to Formula from “Percent”, and you should be able to do what you’re after.

You’re right that you can’t use a formula in a conditional format and do anything to blank cells, but you could always use a helper column to coerce your values the right way, then conditionally format that with the formula. (In my experience, it does work.)

Of course, if you can coerce your values using a formula to put it in a cell, you could do so in the formula for the conditional format anyway, so the helper column may not be necessary.

]]>
By: Reed Jacobson http://www.excelguru.ca/blog/2009/04/23/making-an-icon-set-show-only-two-conditions/comment-page-1/#comment-164155 Reed Jacobson Sun, 26 Jul 2009 20:33:25 +0000 http://www.excelguru.ca/blog/2009/04/23/making-an-icon-set-show-only-two-conditions/#comment-164155 Hi Ken, If you're willing to let the zero cell have a green check, you can just set both the green check and the yellow bang conditions to >= 0. The yellow one won't ever get hit. What I'm trying to find is a way to have two icon-set rules that get applied based on formula. For "cash inflow" accounts I want the default arrow icons. For "cash outflow" accounts I want them with reversed order. The UI doesn't allow you to put a formula and then use an Icon Set. The object model SAYS there's a Formula property for the IconSetCondition object (and Excel Help even says it works), but I just get an error. Have you played with this at all? (I'm also totally annoyed that the new formatting can only use the value from the current cell as the base value. I really want it to be the result of a formula. If it were a formula, I could achieve my objective by having the formula secretly invert the values of the "cash outflow" accounts. But using a formula for the value doesn't appear to be even ostensibly possible.) Nice blog. I'll have to bookmark you. Cheers, Reed Hi Ken,

If you’re willing to let the zero cell have a green check, you can just set both the green check and the yellow bang conditions to >= 0. The yellow one won’t ever get hit.

What I’m trying to find is a way to have two icon-set rules that get applied based on formula. For “cash inflow” accounts I want the default arrow icons. For “cash outflow” accounts I want them with reversed order. The UI doesn’t allow you to put a formula and then use an Icon Set. The object model SAYS there’s a Formula property for the IconSetCondition object (and Excel Help even says it works), but I just get an error. Have you played with this at all?

(I’m also totally annoyed that the new formatting can only use the value from the current cell as the base value. I really want it to be the result of a formula. If it were a formula, I could achieve my objective by having the formula secretly invert the values of the “cash outflow” accounts. But using a formula for the value doesn’t appear to be even ostensibly possible.)

Nice blog. I’ll have to bookmark you.

Cheers,
Reed

]]>
By: Geoff Conley http://www.excelguru.ca/blog/2009/04/23/making-an-icon-set-show-only-two-conditions/comment-page-1/#comment-157017 Geoff Conley Tue, 09 Jun 2009 15:29:11 +0000 http://www.excelguru.ca/blog/2009/04/23/making-an-icon-set-show-only-two-conditions/#comment-157017 Is there anyway i can upload you the file so that you can see what I'm trying to do? Basically i want only the unprotected cells to fill a color when empty but when data is entered the fill is removed. Is there anyway i can upload you the file so that you can see what I’m trying to do? Basically i want only the unprotected cells to fill a color when empty but when data is entered the fill is removed.

]]>
By: Ken Puls http://www.excelguru.ca/blog/2009/04/23/making-an-icon-set-show-only-two-conditions/comment-page-1/#comment-157014 Ken Puls Tue, 09 Jun 2009 15:16:28 +0000 http://www.excelguru.ca/blog/2009/04/23/making-an-icon-set-show-only-two-conditions/#comment-157014 Not sure I quiet followed that... So you want to hide any remaining conditional formats before you print? You could have a look at http://www.excelguru.ca/blog/2009/05/11/trigger-conditional-formats-before-printing/ To make that work you'd end up with a formula like: =AND(Len(A1)=0,rngPrintMode="Yes") I haven't actually tried to evaluate this using at CELL statement personally. Not sure I quiet followed that…

So you want to hide any remaining conditional formats before you print? You could have a look at http://www.excelguru.ca/blog/2009/05/11/trigger-conditional-formats-before-printing/

To make that work you’d end up with a formula like:
=AND(Len(A1)=0,rngPrintMode=”Yes”)

I haven’t actually tried to evaluate this using at CELL statement personally.

]]>
By: Geoff Conley http://www.excelguru.ca/blog/2009/04/23/making-an-icon-set-show-only-two-conditions/comment-page-1/#comment-157013 Geoff Conley Tue, 09 Jun 2009 15:11:48 +0000 http://www.excelguru.ca/blog/2009/04/23/making-an-icon-set-show-only-two-conditions/#comment-157013 Ken, That works but the problem is not with all tha highlighted that will print onto the labels we are using. Is there anyway to combine the len statement so that it will work with the Cell statement? Thanks Ken,

That works but the problem is not with all tha highlighted that will print onto the labels we are using. Is there anyway to combine the len statement so that it will work with the Cell statement?

Thanks

]]>
By: Ken Puls http://www.excelguru.ca/blog/2009/04/23/making-an-icon-set-show-only-two-conditions/comment-page-1/#comment-156445 Ken Puls Fri, 05 Jun 2009 14:29:31 +0000 http://www.excelguru.ca/blog/2009/04/23/making-an-icon-set-show-only-two-conditions/#comment-156445 Hi Geoff, You actually only need one condition. Set up your rule with the following formula (assuming the cell is A1): =Len(A1)=0 Set the format to the colour you want. At this point it should highlight any cell that has no data in it. Put something in and the colour will go away. Hi Geoff,

You actually only need one condition. Set up your rule with the following formula (assuming the cell is A1):

=Len(A1)=0

Set the format to the colour you want.

At this point it should highlight any cell that has no data in it. Put something in and the colour will go away.

]]>
By: Geoff Conley http://www.excelguru.ca/blog/2009/04/23/making-an-icon-set-show-only-two-conditions/comment-page-1/#comment-156437 Geoff Conley Fri, 05 Jun 2009 14:17:15 +0000 http://www.excelguru.ca/blog/2009/04/23/making-an-icon-set-show-only-two-conditions/#comment-156437 I am trying to do the two conditions but the first is to highlight cells that are unlocked, but then remove the highlight when data is entered. I'm trying to create a template for labels, and trying to make it easy for the non exp user to know what boxes they can type in. Thanks Geoff I am trying to do the two conditions but the first is to highlight cells that are unlocked, but then remove the highlight when data is entered. I’m trying to create a template for labels, and trying to make it easy for the non exp user to know what boxes they can type in.

Thanks

Geoff

]]>
By: Ken Puls http://www.excelguru.ca/blog/2009/04/23/making-an-icon-set-show-only-two-conditions/comment-page-1/#comment-156305 Ken Puls Thu, 04 Jun 2009 15:35:51 +0000 http://www.excelguru.ca/blog/2009/04/23/making-an-icon-set-show-only-two-conditions/#comment-156305 Hi there, Debra Dalgleish wrote up an article on making icon sets in 2003: http://blog.contextures.com/archives/2009/04/14/conditional-formatting-icons-in-excel-2003/ Cheers, Ken Hi there,

Debra Dalgleish wrote up an article on making icon sets in 2003: http://blog.contextures.com/archives/2009/04/14/conditional-formatting-icons-in-excel-2003/

Cheers,

Ken

]]>
By: xluser2003 http://www.excelguru.ca/blog/2009/04/23/making-an-icon-set-show-only-two-conditions/comment-page-1/#comment-155812 xluser2003 Tue, 02 Jun 2009 01:12:54 +0000 http://www.excelguru.ca/blog/2009/04/23/making-an-icon-set-show-only-two-conditions/#comment-155812 Hi Ken, Is there any equivalent version of this great hint for Excel 2003, or can it be replicated with VBA? Hi Ken,

Is there any equivalent version of this great hint for Excel 2003, or can it be replicated with VBA?

]]>