Almost 150 people attended the special Microsoft PowerUp! Sessions… If you missed them, or even if you attended and wanted to revisit some of the special content, videos are available now!
The purpose of these sessions was to give everyone a quick update on some of the highlights now available (or coming soon, depending on your update schedule) in Microsoft Office 365. Keep an eye out for future sessions as more updates are released…
PowerPoint Updates
Word Updates
Excel Updates
Bonus Content: Sandy
This is Sandy (Power User!), with a very kind testimonial. 😊😊
Congratulations, Power Users!
Congratulations to our newest Power Users! For the full gallery, and more information about the WSU Microsoft Office Power User Program, please visit: wichita.edu/poweruser
A fantastic question came up during last week’s open lab. Is it possible to create a PivotChart pie chart that can be filtered to show only the percent of the item selected? Here is one solution for that question (and spoiler alert, it is technically not a PivotChart).
A few things before we get started…
First, thank you to Marsha for having this question and inspiring this Byte!
Second, this article assumes you have some knowledge of Tables, PivotTables, and Charts in Excel. If you don’t, please come attend a session… times are listed in myTraining.
Lastly, this is basically a different take on the idea of a progress pie chart… and I am by no means the creative genius behind this overall idea! If you have a minute, look at some of the tutorials out there for the different use cases for these. They are mighty handy.
Background
Normally when you select a slicer or filter a Pie chart by one item, each item shows as 100%. Here is an example:
Below is a visual of a PivotChart Pie Chart…
Looks great… but when I add my slicers and filter by one item, it always shows as 100% of the total, because it is 100% of what is displayed.
What if we want to use those slicers, but also maintain the visual of the item’s percent of the grand total… in other words, in this case, to still show as 36% of the whole? Some finagling is in order.
Exercise
Rather than an exercise, I am going to try something different. Here is the final document… and below will be the steps I took to create it: Example Document
In the document, one sheet is the source data, and the other sheet is the final chart with slicers that will adjust the pie chart accordingly.
Click on a few slicer buttons to test it out. Pretty cool!
Starting Point
We originally started with source data (on the Source Data sheet in the document) that consisted of two columns: item and a number.
Format as a Table
This first step might be optional, depending on your use case. Since data would be fluctuating in our case (e.g. new rows of data added), it was best to format as a table.
We learn about tables in Excel Essentials, and the advantages of formatting as tables in Excel Pivot Tables, so please come to a session if you are interested in learning more!
1. You can either go to the Home tab, Format as Table, or use the command Ctrl + T.
2. Pick a design if you would like (in this case, yellow for WSU).
Create a Helper Column for Percent
We need a cheat column that would keep a percent constant when filtered, so a helper column was in order. You have probably noticed that formulas look different in a table… you still want to build them in the first cell of a column to carry them down.
We want the column to take the figures in column B and divide them by the total. The formula ends up looking like this: =[@Number]/SUM([Number])
This looks complicated, but it is very automatic. Here were my keystrokes/mouse clicks:
[click into the first cell of Column C], Type = [click on B1] / SUM [Select B2 through B7].
Create a Pivot Table
Click on the table to activate Table Design tab.
On Table Design tab, Select Summarize with PivotTable.
Location of Pivot Table: on a new sheet, titled Pivot.
Build the table with Item as rows, Helper Column as Values.5. Insert Slicer for Item (on the PivotTable Analyze tab).
Create Helper Cells with GETPIVOTDATA
So here is the twist… Instead of creating a PivotChart, we are actually going to create a chart from helper cells that reference information from the PivotTable.
1. The first helper cell references the Grand Total of the PivotTable:
[Click in B1], type = [click on the Grand Total cell of the PivotTable].
Notice how this appears in the formula bar as a GETPIVOTDATA formula in the formula bar. This cell will always return whatever Pivot Grand Total is Displayed.
2. The second helper cell, in B2, contains the formula =1-B1. So it will always read the difference of 100% from whatever the GETPIVOTDATA result shows.
Create Chart from Helper Cells
Finally, we can make the chart!
1. Select the two Helper Cells in B1 and B2.
2. Go to the Insert tab, and select the Pie Chart dropdown.
3. Select the Doughnut (it could be any of the pies, but this is the route I took for reasons you will see).
4. If desired, you can pick special colors by right clicking on any data point and selecting Fill. I picked some WSU colors.
Finishing Touches
The number you see in the center of the doughnut is actually a title. Remember how we learn in Excel Pivot Tables, Charts and Pictures training that a chart title can reference a specific cell? This will come in handy here.
1. Title: Click on the line of the title and press = , then click on B1
So this Title will always reference this cell, which will always reference the grand total displayed on the PivotTable.
This means you will always have a number corresponding to the colors on the chart.
2. Text Box: This may be optional depending on your situation, but I inserted a Text Box at the top of the chart to read Percent of Total: Insert tab, Text Box.
3. Position Slicers: Final step was moving the Slicers and resizing them so they fit neatly on top of the Pivot Table. This was only cosmetic, and is also optional. Really there are infinite possibilities for how you could play around with final formatting with a chart like this.
A Simple Alternative
It is worth mentioning that, depending on your situation, you may be able to skip the PivotTable step by incorporating a total row in your Table. This would apply if you didn’t need to sum multiple entries of specific items.
You would still need to incorporate helper columns, but instead of linking to the Grand Total of the PivotTable, they could link to the Total Row sum.
So many possibilities!
Thoughts?
What do you think? Has this sparked any ideas? Have you used pie/doughnut charts for this type of scenario before?
Congratulations, Power Users!
Congratulations to our newest Power Users! For the full gallery, and more information about the WSU Microsoft Office Power User Program, please visit: wichita.edu/poweruser
Friends don’t let friends merge cells! This is something you hear often among Excel enthusiasts. People usually merge cells in an attempt to make a spreadsheet look nicer. That being said… not only is the beauty of a spreadsheet less important than its functionality, which is definitely adversely affected by merged cells… but there is actually a way to alter the appearance identically to merging cells without all of the many disadvantages that come with merged cells. Let’s check it out.
Exercise
If you would like to follow along with my demonstration below, here is an Exercise file: MergedCells
This is a fictional list of students and grades, with some merged cells at the top.
Merged Cells
The first row of data contains 3 sets of merged cells: A1 with B1; C1 with D1; and E1 with F1. If you select any of these, notice in your Alignment group that Merge and Center is selected.
Perhaps someone did this in an attempt to make their spreadsheet look less cluttered? Let’s see why this might have been a bad idea.
Why Merged Cells are Problematic
There are actually quite a few ways that merged cells can be problematic. Here are just a few.
Sort and Filter
Let’s say I would like to use the custom Filter buttons we play with in Excel Essentials. You want to filter by all students with an A.
1. Click anywhere in the top row, and on the right side of the Home tab, select Sort and Filter, and Filter.
2. Now, Go to the dropdown created next to Grade.
Normally I would have the opportunity to filter by letter grade, but because E1 and F1 were merged cells, Excel instead only offers for you to filter by grade %. Not very helpful.
PivotTables
Maybe instead, we can make a PivotTable from the data, and pivot by the letter grade? Go to the Insert tab, and select PivotTable.
What is this? We are receiving an error because we don’t have true column labels (header row) when cells are merged like they are in our top row.. this means that Excel doesn’t know what our categories are to create a PivotTable.
(Shameless plug: come to an Excel: Pivot Tables training if you would like to learn more.)
Formulas
This is probably the biggest one for me. Let’s say I want to count the number of 22 year old students in my class. No problem! Let’s do a CountIf formula.
In I1 I entered =Countif( … then I tried to select my range, column D…. look what happens:
Excel doesn’t want to allow me to include column D alone… it wants to include Column C as well. How annoying! We could probably find our way around this formula issue, but even then, I guarantee these merged cells will get in your way with a future formula.
Macros
It is worth mentioning that there are macros that can be interfered with when you use merged cells; it depends on what type of macro you are building.
All in all, merged cells are just not worth the trouble.
Another Option: Center Across Selection
If you are truly attached to the look of merged cells, there is another option. It is called Center Across Selection.
First, let’s undo the merged cells. Select the merged areas, then go to the Home tab, Alignment group, select the dropdown for Merge and Center, and select Unmerge cells.
2. Select A1 and B1, and Right Click on top of them. Select Format Cells.
3. In the popup screen, go to the Alignment tab, and click on the dropdown next to Horizontal. Select Center Across Selection. Click OK.
4. Repeat this step with C1 and D1 selected, then E1 and F1 selected. Appearance wise, it will look just like merged cells.
This still will be somewhat limiting; for instance, you may still have difficulty with a PivotTable unless you convert this to a Table first, but you will not experience nearly as many drawbacks as merged cells.
A Question for You
Whether you choose to center across or merge cells, I think it is an important question to ask yourself, why are you wanting to do this? Is it truly necessary? When at all possible, I would recommend avoiding either of these practices. I understand the desire to beautify a workbook, but clearly labeled columns with long lines of uninterrupted data are the truly beautiful spreadsheets. Their beauty is in their functionality; and when functionality is lost, nobody will really care much about how the top row looks. Just a thought, from someone who has “unmerged” many cells in many peoples’ spreadsheets over the years.
Thoughts?
What do you think? Has this convinced you to unmerge and never merge again? Either way, I will be here to help you.
Congratulations, Power Users!
Congratulations to our newest Power Users! For the full gallery, and more information about the WSU Microsoft Office Power User Program, please visit: wichita.edu/poweruser
Microsoft Office 365 at WSU will feature biannual updates, so you will start seeing new buttons and features appear in your ribbon periodically (perhaps you have noticed a few already). So, we are testing out something new…
Microsoft PowerUp!
The sessions will be called Microsoft PowerUp!
PowerUp is intended to showcase new features in 365, and will contain new information not covered in previous Microsoft Office sessions.
The sessions will be quick. These are demos, not full training sessions, so you can plan for about an hour.
Two January sessions will be offered: January 8th and 15th.
Sessions are listed in myTraining, so sign up now and we will save you a spot and a free guide!
Working with color themes in Microsoft Office can open up a whole world of possibilities for customizing your documents. Most people don’t realize how much they are already interacting with themes in Office, or how much control they can have with just a couple clicks. Let’s check it out. But first, a special thank you to Sheree for having some excellent color palette questions in an Excel Essentials session a couple weeks ago and inspiring this Byte.
Exercise File
You can follow along on one of your existing documents, or if you would like a starting place, here is a Word document you can start with:
This is a Word document with a few visual elements that incorporate theme colors. These are all things that will be affected by altering the color theme.
Themes and Color Palettes
What does it mean to apply a color theme? In most of your Office programs, you are already using a color theme, whether you realize it or not. The default is the Office color theme. You see your theme colors in everything from the color options for your fonts, to your default headers, to tables and charts… and more.
In the test file you downloaded, you are seeing it in the headers, the chart, the icons and the table…
One of the easiest ways to check your current palette is to visit the Home tab, Font group, and click on the dropdwon arrow next to the Font Color.
Notice how there are Theme colors, and Standard Colors. The Theme colors display your current color palette. There are gradations underneath each main theme color…. lighter and darker versions of each of the theme colors to create contrast.
Change the Color Theme
Changing your color theme is simple!
1. Go to the Design tab, DocumentFormatting group. (By the way, this is also where you can go to change your default font settings for the document).
2. Select the Colors dropdown to see a full list of themes. Hover your mouse over each color palette to see a preview.
3. Select a color theme by clicking on it.
Because theme colors are utilized in so many ways in this document, we really see a change in appearance!
Custom Color Palettes
If you are artistically inclined, you might be interested in creating your own custom color themes.
1. In the Design tab, Document Formatting group, click on the Colors dropdown again, but instead of selecting a predefined color set, select Customize Colors…
2. Click on the dropdown beside any of the accent colors to make an alteration. Typically Accent 1 is the color you will see the most in a document.
3. You have the ability to select colors from a color wheel, or select More Colors to enter an exact RGB color.
4. When you are finished, name the color palette and click Save.
5. The new color set will appear in a new section at the top of the Colors dropdown called Custom.
You will be able to access this color palette anytime you create a new document on this computer.
Accessing Custom Color Themes in other Microsoft Programs
Once you have created a color theme that you like, you may want to access it in other programs. Microsoft knows this, so has made them accessible to you in many of your Office programs. They are in slightly different locations though, so let’s take a look.
PowerPoint
In PowerPoint, you often see color themes even more prominently than in Word. Here is one popular theme called Berlin, that features a red and yellow color set.
1. In PowerPoint, visit the Design tab, Variants group.
2. Select the dropdown arrow in the lower right:
3. Here is where you will see your color theme options, plus the new custom color you just created in Word. Neat!
This definitely changes the look of this document…
Excel
In Excel, Color themes affect features like tables, charts, shapes, and fonts. The default in Excel is the Office color set as well. These colors should look familiar:
1. In Excel, visit the Page Layout tab, Themes group.
2. Select the Colors dropdown.
3. Here is your custom color theme again… no need to reinvent the wheel.
Outlook
Outlook? Did you read that right? Yep! Outlook also has the same themes and color sets you know and love from your other Office programs.
1. Open up a new email.
2. Visit the Options tab, Themes group.
3. Click on the Colors dropdown, and there you are…
Thoughts?
What do you think? Do you think you will utilize custom color themes in your Office documents? By the way, if you create a cool WSU themed color theme, I would love it if you would share it with me!
Congratulations, Power Users!
Congratulations to our newest Power Users! For the full gallery, and more information about the WSU Microsoft Office Power User Program, please visit: wichita.edu/poweruser
We all occasionally find ourselves navigating the rough terrain of ugly data. Power Query is an excellent tool to have in your back pocket for this eventuality. But here is the deal, Power Query is just that… powerful, and because of this, potentially complicated. In fact, I know a lot of people who have been interested in learning about this beast, only to get quickly overwhelmed in the complexities. So here is my aim with this Byte: a simple introduction to Power Query. Let’s check it out.
What is Power Query?
Power Query is a feature in the PC version of Excel 2016 or later, also known as Get & Transform. There are a multitude of uses for this feature, but it really shines to take on ugly data like this:
… and transform it into something more workable.
Furthermore, since the result is a query that is connected to your data, it can be updated with a simple click of a button.
Exercise File
If you would like to follow along with my steps below, here is an Exercise File:
You will need the PC desktop version of Excel 2016, 365, or 2019 to use this feature.
For this Byte I am assuming you have worked with Tables and Pivot Tables in Excel before. If you haven’t, please come to my Excel Essentials and Excel Pivot Tables Sessions and learn about them!
Needless to say, this is all fictional data.
The Scenario
The scenario is we have some ugly data that we have exported from a different source. The source has thrown lots of data into one column of a spreadsheet. Monthly, we are asked to create a pivot table of fees owed by class and area code, but this will be rough going, given how the data looks:
Format as a Table
I have mentioned before that formatting your data as a table has many advantages, and here is another excellent example. There are many data sources you can use for Power Query, but let’s start here for now.
1. Click on any cell inside the data. Do not preselect the entire column.
2. In the ribbon, select Format as Table, and select any style.
3. Make sure that all the data is encompassed in your range, make sure My table has headers is checked, and press OK.
More details about tables are discussed in the Excel Essentials training, so check out one of those sessions if you have not already.
Create a Query
1. Go to the Data tab, and in the Get & Transform Data group, select From Table/Range.
(note: you can also access this from the Get Data dropdown if it is not readily visible)
2. You will be taken to the Power Query Editor.
This is a little like an alien abduction from your comfortable Excel home… the look and feel are kind of the same as the rest of Excel, but also kind of different. Power Query uses a different type of code than the rest of Excel, so some things will not be intuitive. I don’t want to get too far in the weeds, but for now note that:
There is no undo, but you can always delete a step on the right,under Applied Steps, where coincidentally, every step of the query will appear forevermore.
There is a ribbon with Transform and Add Column option. Although options will look similar on both tabs, items on the Transform tab will change an existing column, and items on the Add Column tabwill create a new one
A lot of options are also accessible on a right click menu.
Transform the Data
In the query, there is only one column with a lot of ugly data, but I notice most of the data is separated by a colon “:”. Let’s begin by splitting up the columns by this delimiter.
1. Click at the top of the column to select all of the data in the column.
2. In the ribbon, or on a right click menu, select Split Column –> By Delimiter.
3. Make sure Colon is selected, and Each ocurrence of the delimiter is selected. Press OK.
Your data should split into separate columns at each occurrence of a colon.
4. Let’s work on splitting the phone number. Select the phone number column, and Split Column–> By Number of Characters.
5. We want to split after 3 characters, Once, as far left as possible. Click OK.
Cool, now we have a separate column for the area code!
6. At the top of each column, double click on the title and give each column a name: Name, Area, Phone, Grade, Class, Fees.
Load the Transformed Data
1. You have the option to name your query on the right side of the screen, under Query Settings –> Properties. If you will be doing multiple queries, this might not be a bad idea.
2. After this, the final step is to press the Close & Load button in the Home tab.
Like magic! Our data loaded to a new tab in a new table.
Good News Part One: Data is Easier to Work With
Okay, this data is going to be so much easier to work with. Remember, my original goal was to make a pivot table showing fees owed by area code. Now that this data is in a table, in a few clicks, I have exactly the information I need. Beautiful!
Good News Part Two: Updating Data
We could have fixed up that data in a variety of other ways in Excel (hello, Flash Fill!), but the especially cool part about Power Query is the ability to refresh data in the future with one click. Remember I mentioned this was a monthly report I had to create… so here is what I would do next month… rather than recreate all the steps to make the data readable again:
1. Load the new data into the source table.
2. Right click on the query table and select Refresh
All the query steps we did in the previous section will happen automatically with my new data.
More Types of Queries
This example involved a query from a table within a document, but you can query tons of different sources: Excel documents in seperate locations, Access databases, Azure databases, online sources… seriously, check out all the options on the Data tab, Get Data dropdown.
Interested in a Power Query Session?
This was a very basic introduction to Power Query. There is a lot more to cover about this amazing feature. WSU friends, I would like to poll the audience here… I think it would be fun to offer a Power Query Session to delve more deeply into its various abilities, but would like to hear from you all if this is something that would interest you. If you are interested, please send me an email!
Congratulations, Power Users!
Congratulations to our newest Power Users! For the full gallery, and more information about the WSU Microsoft Office Power User Program, please visit: wichita.edu/poweruser
Charts can be incredibly challenging. They represent where the right brain and left brain meet… where computations and numbers collide with art and color. To be able to convey true meaning with graphics is a very special skill; here are 5 tips to help you along the way.
1. Determine Your Message
Two important questions to ask yourself before you dive in to chart creation:
Who is your audience?
What is your message for them?
Cognitive Overload: Be Kind to Your Audience
One mistake a lot of us make is overloading the audience with too much information. This concept is called cognitive overload. Sometimes we zoom out in an attempt to show lots of data… and end up burying the story we are trying to tell in the process. The audience loses patience, and the entire message is lost.
Consider this unfortunate pie chart… what story was the creator trying to tell? We are going to find some better solutions for this data shortly.
Audience Motivations
Some other important questions to ask are:
What is important to your audience?
What motivates them?
What is their level of knowledge on the topic?
All of these questions should influence the way you determine your message. We are going to revisit this first point frequently throughout this article. Even though it seems like the simplest of concepts, it is often the most forgotten.
2. Select the Right Chart Type
If the picture above gave you minor palpitations, part of the problem may be that someone picked the wrong chart to convey this information. There was a lot of data to comprehend here, more than a pie chart could feasibly tolerate. The chart below uses the exact same data set formatted as a column chart. Is this easier to understand?
Alright, the message is still pretty unclear, but we are moving in the right direction.
Here are a few general rules for selecting chart types:
Pie Charts
Pie charts should contain no more than 5 pieces, and preferably fewer than that.
Pie charts are supposed to show portions of a whole, so the whole should ideally be represented, even if you incorporate grouping (discussed next).
Remember your message and your audience (Tip #1), and then consider: are all your pie pieces all the same size? If so, is this pie chart really showing what you want to tell? Maybe it is… maybe your story is that all things are equally represented. But if that is not your message, consider a bar or column chart.
Consider incorporating data labels and callouts for further clarification.
Bar Charts and Column Charts
Bar and Column Charts are a great option if you have more information to display.
The main difference between bar charts and column charts is that bar charts are composed of horizontal data bars and column charts are composed of vertical data bars.
Both are great options for showing larger numbers of data sets.
Still, beware of cognitive overload with too much information (see Narrow your Focus for more tips below).
Clustered column charts are great for showing quick comparisons between small groups.
Line Charts
Line charts do well comparing two competing data sets over a time period, like monthly sales figures this year stacked up against sales figures last year.
They also can help a viewer quickly ascertain overall trends at a glance.
One tip: when possible, start the Y axis at 0. This should already be the default setting.
So Many More…
There are so many more charts to choose from! Check out this helpful Chart Chooser for more assistance with selecting the right type of chart.
3. Narrow Your Focus
For this section, I would like to revisit our original problem chart from the beginning. Remember, we started with this:
And changed the chart type to a column chart:
…but this is still not an ideal situation.
What story do you want to tell?
Tip #1 will help you narrow your focus for this step. In this case, we had a (fictional) chart of total U.S. Star Trek fans broken down by state. Let’s explore a few stories you may want to tell with this data.
Avoid displaying too much information
Because all the states are represented, this means there are 50 data points. Do we really need to show all of this information? Perhaps, you decide that the story you want to tell is to show the states with the highest rates of Star Trek Fans.
How about removing the states that are not pertinent to your story? Let’s try to narrow our focus by filtering out some unnecessary information (i.e. the lower figures in the data set) with the filter button to the right of the chart.
This leaves us with a more manageable data set, down from 50 points to 7…. let’s keep going.
HighlightImportant Information
Another useful technique to drive home a point is to use contrast to highlight important information, visually pulling it to the foreground. Select any data bar, right click, and select Fill to choose any color in the color wheel.
Let’s make use of this opportunity to pull the highest states to the foreground with a deep color, and grey out the others, pushing them to the background.
Take a look at the same filtered graph, recolored. Maybe the story you want to tell is that Hawaii, Kansas and New York had the highest populations of Star Trek fans… if so, this could be a cool way to do it.
Group information together
We initially started with a pie chart, and there still might be a case for this type of chart with this data. Grouping together pieces of information is another great way to focus in on your overall message.
Perhaps your goal is to spotlight Kansas, and tell the audience that Kansas contains 5% of the country’s Star Trek Fans. Why not group together the states that are less relevant? We can also incorporate the previous highlighting technique.
This is much easier on the eyes than the original pie chart.
Do you see why asking yourself the questions in Tip #1 can put you on the right track for creating a meaningful chart?
4. Choose Words Carefully
Take a look at the chart below. ..
How long did it take you to grasp the meaning of this chart?
Wherever possible, keep the words to a minimum. And when in doubt, refer back to Tip #1 and ask yourself:
Who is your audience?
What is your message?
How much time would you like them to look at your chart, and what would make the biggest impact?
Remember, the point of a chart is to create a visual illustration of data. More words means less visual impact…
5. Don’t Forget About Your Colorblind Friends
Hey, don’t forget about your colorblind friends!
Approximately 8% of the male population and 0.5% of the female population is colorblind or color deficient. This means if 1000 people will be viewing your chart, about 45 of them may not be able to differentiate between certain colors.
You can still use color in your charts… Just remember that you don’t want to use color alone to convey meaning.
This is something we have talked about before, so if you would like to read more information about the use of color in documents, check out my previous article on the subject.
Just remember, this chart may look perfectly clear to you:
… but here is how it looks to someone with the most common type of color blindness:
More Notes and Disclaimers
You probably know this stuff, but just in case…
You have seen example charts throughout this article. All the data used to create the charts is entirely fictional.
Do you want to learn more about how to make charts? Please attend one of my Excel: Pivot Tables, Charts and Pictures sessions listed in myTraining.
Thoughts?
Okay, what do you think Power Users? Do you think you will be able to put some of these tips to use with your data? I would love to hear from you!
Congratulations, Power Users!
Congratulations to our newest Power Users! For the full gallery, and more information about the WSU Microsoft Office Power User Program, please visit: wichita.edu/poweruser
Have you ever gone through a list row by row to highlight rows based on one value in the row? Here is one example: you have a list of students, and you want to highlight their entire entry if they have an “A” in your class… so you hand-select an entire row, fill in the desired color, and repeat this process 100 or so times per semester. Never do that again! Let’s check out another versatility of Conditional Formatting: the ability to highlight an entire row based on one value in a specific column.
Before we jump in… big thank you to Samantha and Amanda for inspiring this Byte with this excellent question in (two different) Excel Advanced Formulas sessions!
Exercises
If you would like to follow along, here is a fictional class list to work with. Our goal with this exercise is to make an entire row yellow if a student has an A in the class.
In my Advanced Formulas training we touch on formatting specific cells based on their value with Conditional Formatting, but this will be a bit different… in this case, we would like the entire row to be highlighted based on the value of one cell in the row (the grade).
If you haven’t already, I hope you will consider checking out an Excel Advanced Formulas session… for one, we cover Conditional Formatting in more detail, and for two we talk about concepts like absolute references, which I reference later in this Byte.
Create a New Rule: Crafting a Formula
1. Start by selecting all the data you would like the formatting to apply to: A2 through H77.
2. In the center of the Home tab, select Conditional Formatting, New Rule.
3. In the popup screen, select Use a formula to determine which cells to format.
4. Click into the box underneath the text Format values where this formula is true.
In your data, click on the cell with the first grade, in H2.
Excel will bring in its own language for this cell “$H$2”.
Type an equals sign ( = ) and (with quotes) “A”.
Your formula at this point will look like : =$H$2=”A”
Sidebar: We hit this in more depth in Excel Advanced, but as a reminder…
The “$” means an absolute reference, so a stagnant location in Excel. We see an example of this in class when we try to use autofill to carry down a formula.
The A has to have “” around it, since it is text.
If you want to learn more about these two points, please come to one of my Excel Advanced Formulas trainings.
Okay, we are not done with the formula yet… if we leave the formula like this, it will highlight the entire selection range (A2 through H77) if H2 has an “A” in it… this is not what we had in mind. To correct this, we are going to remove one dollar sign…
5. Since we realized that the row should not remain absolute, let’s delete one dollar sign (absolute reference). We are going to delete the dollar sign in front of the number 2. This will tell Excel that the row is relative; but the column will remain absolute.
Here is what your formula should look like now:
=$H2=”A”
We are not done yet, though… we still have to set up formatting…
Creating a New Rule: Formatting
It is easy to get so caught up in the formula that you forget to set a formatting rule. Right now the formula looks great, but Excel won’t make it look any different until we pick some formatting.
1. Select the Format button in the New Formatting Rule popup underneath where you placed your formula.
2. In the popup that appears, select the Fill tab. Select a color, then press OK.
3. Alright, this looks pretty good! We have a formula and a formatting. Press OK to see the results.
If all goes well, you should have something like this.
To sum up,Excel is looking through column H (which remained absolute with the “$”) for an “A”, and if it finds an “A” there, the entire row is highlighted all the way down (because the “2” was not absolute, thanks to removing the “$”)
Managing Conditional Formatting Rules
A few more things that might be helpful:
If you want to see the conditional formatting rules you have created, click on the Conditional Formatting dropdown, and select Manage Rules.
The default view shows you the rules present for any cells selected. So if you would like to see all the rules for a sheet, you can alter the Show formatting rules for dropdown accordingly.
Here is where you can also make adjustments to your rules: edit, delete, alter the cells it applies to (helpful if you selected too many or too few cells to begin with).
Thoughts?
What do you think, will you try out this type of conditional formatting in your documents? I would love to hear how you use this!
Congratulations, Power Users!
Congratulations to our newest Power Users! For the full gallery, and more information about the WSU Microsoft Office Power User Program, please visit: wichita.edu/poweruser
Has this happened to you? You create an Excel spreadsheet that you share with your coworker. She edits the document, sends it back to you, and you are left scanning through a long list of entries to try to determine what changes she made…
In our Word Advanced sessions, we talk about the nifty Compare feature in Word. This feature is absent in Excel, but there is a similar option for Excel users via a Microsoft Add In called Spreadsheet Compare. This Add In comes with PC versions of Microsoft Office 2013, 2016, and 365… in other words, you probably already have it…
Before we jump in, thank you so much to Hannah and Jamie for inspiring this Byte!
Exercise Files
If you would like to follow along, below are a couple of Exercise Files. Save these to a place where you can easily find them for the next step (e.g. Desktop).
This is a fictional class list of students. We are going to assume that the FictionalClass download is the original and the FictionalClassEdited is what your coworker altered and sent back to you.
Spreadsheet Compare Add In
To access the Spreadsheet Compare Add In, click on the Windows icon in the lower left of your task bar, and search for Spreadsheet Compare.
You will be taken to a sort of mission control for comparing spreadsheets. You haven’t loaded anything in here yet, so there is not much to see.
Compare Files
1. In the upper left, click on the first button called Compare Files.
2. A pop up screen will appear. Notice it is asking you to select an “older” file and a “newer” file.
3. Click on the folder to the right of each of these fields, and browse to find the FictionalClass (older) and the FictionalClassEdited (newer) that you downloaded from the exercise files above.
4. The two workbooks will load into the left (older) and right (newer) panes. Notice that changed cells are highlighted in green. Click on one of these cells, and it will select the corresponding cell in the other sheet.
5. Look at the bottom of the screen for an outline of the various changes that were made. This list notes all sorts of changes that were made, including the contents of cells and the formatting of cells. You can also click on any of these to be taken to the change in the worksheet on the panes above.
6. Try double clicking on one of the changes highlighted in the bottom pane. You can also access this feature by clicking on Show Details in the ribbon.
It is a little disorienting. This popup screen is showing you what was in the original document, and the change that was made in the second sheet, in kind of a strange format. Simply click on the X in the upper right to go back to the main Spreadsheet Compare screen.
Export Results
It is possible to export all the results from this comparison. in the Export group is a button called Export Results.
This will create an Excel file of all the differences between the two workbooks.
Drawbacks
While this is a nifty way to quickly see changes between two Excel files, it lacks some of the handiness of the Word Compare feature…
You can’t accept or reject the alterations/differences, you can only see them displayed and highlighted. Any desired changes will still have to be made by hand in the source document.
There is not a way to save a combined document containing both the original and changed document.
Other than that, a pretty cool tool!
Thoughts?
Do you think you will find a use for Spreadsheet Compare? Do tell!
100th Power User Certificate Awarded!
This is a most exciting week in Power User history! We have a three way tie for 100th WSU Microsoft Office Power User. Big congratulations to:
Tiffany Morgan
Matt Stiles
Lauren Wilson
For more information about the WSU Microsoft Office Power User Program, visit wichita.edu/poweruser
Have you ever attempted to mail merge with fields that contain formatted numbers, only to find that the formatting does not carry over onto your merged Word document? This is a common source of frustration with mail mergers, and something that we can quickly remedy on the Excel end. Let’s take a look… but first, big thank you to Jamie for having this excellent question at Wednesday’s Excel Essentials session and inspiring this Byte.
Exercise Files
If you would like to follow along, download today’s exercise files below to your desktop.
For this Byte, I am assuming you know the basics of working with Mail Merge in Word. If you are not comfortable with Mail Merge, please attend a Word Essentials training with me! I would love to show you how it works.
Excel File
Let’s take a look at the Excel file first. This is a list of employees… here are all out new professors who we are going to send letters to, welcoming them to Starfleet.
There are columns with Last Name, First Name, Salary, FTE, and Phone Number. The number fields are all formatted: Salary as currency, FTE as rounded to two decimals, and Phone Number as the Special Phone Number format.
Heads up: Notice that, highlighted in yellow, there are also some “helper columns” with TEXT titles. Let’s ignore those for the present, because in real life, perhaps you haven’t created those, and instead incorporated number formatting, as most of us do in our Excel Files
Word File
Opening up the Word File, you will find a letter welcoming professors to Starfleet Academy. Our plan is to enter merge fields into the bold area circled below.
Mail Merge with Formatted Number Columns
Let’s start our merge. We are going to build this using our number formatted columns. Again, I am assuming you have merged before for this exercise. If you are not comfortable with Mail Merge, please come attend one of my Word Essentials session. I would love to show you!
1. In the Mailings tab, go to Start Mail Merge, and select Letters.
2. For Select Recipients, select Use an Existing List. Browse for the Excel file, wherever you chose to save it.
3. Take a look at the Insert Merge Field dropdown, and make sure that you see all the columns you saw in your Excel file. Remember, we are focusing on the first five merge fields for now (not the TEXT ones).
4. Insert each merge field in the indicated location. It should look like the example below.
5. Let’s toggle the Preview Results button to see how this will look.
This is usually the point where people realize that certain types of number formatting do not come through in Mail Merge. The salary, phone number, and FTE are just general number formatting. The phone number has no dashes, the salary has no commas, and the FTE is missing a “0.”
6. Let’s remove the Phone, Salary and FTE merge fields, and try this again. This time, insert the TEXT options that we saw in our “helper” columns in the Excel file.
So Salary should be replaced with TEXTSal, FTE with TEXTfte and Phone with TEXTPh.
7. When you Preview results, it will look much more like what we had in mind.
What difference! Let’s see what makes these columns different in our Excel file.
Text Formulas
Open the Excel file again, and let’s do some investigating. We are going to check out our “helper” columns in columns F, G, and H that contain TEXT in the header.
1. Let’s see how the formula for TEXTSal is set up. Click into cell F2, and take a look in the formula bar. The formula used for Sal was:
=TEXT(C2,”##,##0″)
2. Do the same for TEXTfte in G2. The formula used was:
=TEXT(D2,”#0.00″)
3. … and finally, TEXTPh in H2. The formula used was:
=TEXT(E2,”[<=9999999]###-####;(###)###-####”)
So our investigating reveals that TEXT formulas have been used in these columns, which came over in a much better format for mail merge purposes.
If you would like to learn more about the TEXT function, take a look at this handy guide from Microsoft that will walk you through creating all of these used above, and more!
Thoughts?
Has this ever happened to you when you were mail merging with numbers? Do you think you will incorporate TEXT functions with your future merges?
Congratulations, Power Users!
Congratulations to our newest Power Users! For the full gallery, and more information about the WSU Microsoft Office Power User Program, please visit: wichita.edu/poweruser