Welcome to MSDN Blogs Sign in | Join | Help

Conditional formatting meets the ribbon

Now that I have reviewed much of the new conditional formatting functionality we have added in Excel 12, let’s review how we have made it easier to find and use these features.  One of our objectives was to showcase the feature in a more prominent place in the UI, so we put the entry point for conditional formatting on the first tab in the new Excel ribbon.  (If you haven’t read The New Microsoft Office User Interface Overview, you might want to give it a quick read now to familiarize yourself with terms like "tab" and "gallery".  Also, standard disclaimer – all visuals and names are works in progress and subject to change before we ship the product).  The first tab is named the "Sheet" tab.  Here is a picture of the Sheet tab in current builds:


(Click to enlarge)

The Sheet tab is the place where the most commonly-used Excel commands are located.  You can see that conditional formatting is given a nice large, attractive button that will hopefully be something users want to explore.  Indeed, one of the many great features of the ribbon is that it makes all the Office applications browsable and much easier to explore.  If you select the conditional formatting button, you are presented with a gallery that contains five categories of conditional formats and a few other commands:


Then, as you select each item in the gallery, you see a fly-out that lists the specific formats that can be applied using that gallery.  The fly-out from the “Highlight Cells Rules” item allows you to create value-based rules like Greater Than, Less Than, Between, Equal To, Text that Contains, etc. (Pardon the yellow dot – missing artwork.):


(Click to enlarge)

Each entry point on the “Highlight Cells Rules” item launches what we call “Quick Launch Dialogs” that are focused on the rule you are trying to create.  Before we explore the rest of the conditional formatting gallery, let's take a look at an example of how all of this works.  Say you had a range of numbers, and you wanted to highlight the cells that were less than 150:


(Click to enlarge)

You would simply select the range and then select “Less Than” from the “Highlight Cells Rules” list.  Excel would show you the "Quick Launch Dialog" that lets you set the value and the formatting you want to see: 


As you enter the value for the condition or change the resultant format from Red Fill to something else, you would see the formatting applied to the cells on the spreadsheet instantly without needing to press OK to commit the changes. This “live preview” allows you to ensure that your condition is set correctly before finalizing the rule.  For example, if you type in 150, the appropriate cells are immediately highlighted:


(Click to enlarge)

You could then change the format to “Red Text” (or set any other format) and again the values update immediately.


(Click to enlarge)

Once you are happy with the results, you simply press OK, and the conditional format is committed.  Note that you can pick from a list of pre-defined formats (we have tried to provide many common formats) or set your own format.  Also note that there is a “More Rules …” command.  This will bring up a more detailed conditional formatting dialog that allows you to access all conditional formatting rules as well as tweak various settings on rules you are adding.

Before I continue on through the rest of the gallery, I just want to reflect how quick and easy that was – select the range, and then with a few clicks, users will be able to set a wide variety of powerful conditions on their data. 

Moving on down through the gallery, the fly-out from the “Top/Bottom Rules” item allows you to create value-based rules like Top n Items, Top n %, etc.   Again, these items launch “Quick Launch Dialogs” to help you complete conditions, and you can create any rule (i.e. one standard deviation above) and tweak settings (i.e. make that three standard deviations above) from the “More Rules…” command. 


(Click to enlarge)

The fly-out from Data Bars allows you to create data bars of your color choice with a single click – in this case (as is the case for Colour Scales and Icon Sets), there is no “Quick Launch Dialog” because Excel does not need any other information from the user to apply the conditional format – these are truly one-click conditional formats. Just select the cells you want to compare, click on the colour of data bars you want, and you are done.  By default, when you apply data bars with one click via the ribbon, Excel uses the highest and the lowest value in the range to draw the shortest and longest bar.  You can further tweak the color of the data bar or the way Excel computes the values for the shortest and longest bar by selecting “More Options…” from the fly-out.


(Click to enlarge)

The fly-out from Colour Scales allows you to create a 2-colour or 3-colour color scale rule using default colours we have provided. By default, when you apply colour scales with one click, Excel uses the lowest, highest, and midpoint values in the range to determine the colour scales.  You can change the colours or the way Excel determines the values for the highest, lowest, or midpoint values by selecting “More Options…” from the fly-out.


(Click to enlarge)

By now, you can likely see the pattern.  The fly-out from Icon Sets allows you to create a conditional formatting rule with 3-icon, 4-icon, or 5-icon icon sets of your choice. The most commonly used icons are exposed here; by default, Excel 12 uses percentiles to calculate the break between icon sets … for example, in the three-icon case, Excel 12 sets 33% and 67% as the break between the three sets of icons.  You can change the icons or the way Excel determines the values for the icon sets, as well as pick from further icon sets, by selecting “More Options…” from the fly-out.


(Click to enlarge)

The final entries in the gallery are “Clear Rules” and “Conditional Formatting Rules Legend”.  The Clear Rules fly-out has options to clear all conditional formatting rules on the selected range, or the entire sheet, or the active Table, or the active Pivot Table.  The goal here is to make it easy to remove conditional formats from a sheet.


“Conditional Formatting Rules Legend” will be described in further detail in my next post. This is the place for users to do advanced conditional formatting and manage the rules in the workbook (add new rules, edit rules, reorder rules, and more).

In sum, we have tried to make conditional formatting easy to find, fast and simple to apply, and straightforward to remove – no more than a few clicks in most cases.  Next time up, a discussion of some of the more advanced features and limits.

Published Wednesday, October 12, 2005 9:48 PM by David Gainer

Comments

# Tab interface

Thursday, October 13, 2005 2:07 AM by Joseph
When do project launching the Office suite on to the market? Second, I have an add-in that adds menu items when installed. With the tab controlled interface will I have to rewrite this code to be compatible with Excel 12?

# Tab interface

Thursday, October 13, 2005 2:07 AM by Joseph
When do you project launching the Office suite on to the market? Second, I have an add-in that adds menu items when installed. With the tab controlled interface will I have to rewrite this code to be compatible with Excel 12?

# re: Conditional formatting meets the ribbon

Thursday, October 13, 2005 3:01 AM by David Gainer
Hi Joseph. There are some brief answers to your add-in question on the Office preview site (http://www.microsoft.com/office/preview/uifaq.mspx), and watch Jensen Harris' new UI blog for more detail (https://blogs.msdn.com/jensenh/default.aspx).

# re: Conditional formatting meets the ribbon

Thursday, October 13, 2005 3:02 AM by Colin Walker
I am really enjoying this blog and thanks to such informative posts feel that I already know how to use Excel 12 :)

Keep it coming.

# re: Conditional formatting meets the ribbon

Thursday, October 13, 2005 6:27 AM by Andy Cotgreave
I'm already beginning to miss the good old days of complicated Conditional Formatting! You're putting us developers out of business... In the old days, those of us who knew how to do Conditional Formatting wielded great power over less competent users.

No longer!

Seriously, though, this looks great.

One question:
How will the ribbon work on different resolutions? I'm running 1024x768, and the first image in this post (the one with the full ribbon) is too wide for my screen.

What happens if i'm running low resolution screens? Does the ribbon show/hide less buttons, or shrink, or something else?

Thanks

# re: Conditional formatting meets the ribbon

Thursday, October 13, 2005 6:28 AM by Andy Cotgreave
I'm already beginning to miss the good old days of complicated Conditional Formatting! You're putting us developers out of business... In the old days, those of us who knew how to do Conditional Formatting wielded great power over less competent users.

No longer!

Seriously, though, this looks great.

One question:
How will the ribbon work on different resolutions? I'm running 1024x768, and the first image in this post (the one with the full ribbon) is too wide for my screen.

What happens if i'm running low resolution screens? Does the ribbon show/hide less buttons, or shrink, or something else?

Thanks

# re: Conditional formatting meets the ribbon

Thursday, October 13, 2005 6:56 AM by Helen
Will the defaults for one-click conditional formatting (data bars and colour scales) be truly default, or will they be based on a customisable colour palette like in current versions?

For example, we have a customised palette at work (where we've changed the "additional" colours at the bottom of the palette), and charts etc therefore automatically pick up our own colours, which is very convenient. I hope that the same will be possible in XL12.

# re: Conditional formatting meets the ribbon

Thursday, October 13, 2005 8:14 AM by Jan Karel Pieterse
Hi David,

Looking at the Less than and greater than fly-out items:

Wouldn't it be nice to have a textbox immediately next to them so you can actually enter your limit value in place? (might clutter the flyout too much, but hey, if you don't try you never know, right?)

# re: Conditional formatting meets the ribbon

Thursday, October 13, 2005 8:26 AM by Step
Right at the end, that last little bit about the Conditional Formatting Rules Legend, where you said "manage rules" - I'd love to know more about that! Thanks for everything you're sharing with us. I'm really liking the big improvements in creating powerful documents.

But what about a year later, when somebody has to go back and edit, or repurpose a document that perhaps they didn't create? Being able to easily see what rules have been setup is a big step forward. Will there be an overall "dashboard" or other way to tell what rules have been applied to a given cell or group of cells?

# re: Conditional formatting meets the ribbon

Thursday, October 13, 2005 9:25 AM by mschaef
David (and any other folks on the Excel team reading these comments),

This looks _really_ nice.

From all these posts, this will be the first version of Excel is a long time that I really _want_ to upgrade too. (and not just wait for the next computer to have it bundled)


BTW: I've been switching back and forth between Excel 2000 and 2003 a lot lately. Whoever "copied" the tooltip that pops up with function paramaters from visual studio into Excel needs to be paid double whatever they're being paid now. :-)

# re: Conditional formatting meets the ribbon

Thursday, October 13, 2005 4:52 PM by Harlan Grove
I'll grant that I'm a curmudgeon, but I'm curious whether one will be able to use XL12 *WITHOUT* a mouse. It's possible to do most things in XL11 and prior using only the keyboard. It'd be annoying if much of XL12's new functionality could only be accessed with the mouse.

# re: Conditional formatting meets the ribbon

Thursday, October 13, 2005 7:54 PM by Michael Martine
WOW! This is the most excited I've ever been about Office. I can't wait to show everybody the new features in training.

# re: Conditional formatting meets the ribbon

Friday, October 14, 2005 4:23 AM by Jan Karel Pieterse
Harlan:

You can use the keyboard:

1. Old control shortcut keys still work
2. There is a "legacy" mode with which you can still use the old menu shortcuts of Excel 11.
3. If you hold the alt key in "normal" mode, the ribbon will show tiny tooltips on each and every command indicating the key that fires them.

# re: Conditional formatting meets the ribbon

Friday, October 14, 2005 5:25 PM by David Gainer
Greetings. Again, I want to thank everyone for their feedback and discussion. Positive feedback is always great to hear, and requests and suggestions are also very welcome. Excel 12 is close to going into beta, so we are no longer adding features, but we are interested in people’s opinions, and your feedback will be one of the sources of information that we take into planning for future versions.

Andy – Briefly, there are a bunch of smarts built in around scaling – buttons can shrink in size, text can disappear, and “chunks” of the ribbon can collapse. The ribbon will be designed to work well at 1024*768 but also take advantage of more resolution when available. I would watch Jensen Harris’ UI blog for more details.

Helen – The defaults are truly defaults – they don’t pick up colour palette changes. Thanks for the feedback.

Jan Karel – That is one design we prototyped, but in the end, we observed in usability studies that people were more successful/preferred a dialog that allowed them to adjust both the condition and the format at the same time.

step – Hopefully my next post answered your questions.

mschaef – Glad you like the tooltips.

Jan Karel – Check out Jensen Harris’ UI blog – he had a topic recently about keyboard access.

# Microsoft Excel Conditional formatting meets the ribbon | bar stools

New Comments to this post are disabled
 
Page view tracker