Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Hiding Graphics when Filtering.

Hiding Graphics when Filtering

Written by Allen Wyatt (last updated September 14, 2024)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021


1

James has a worksheet that has graphics on top of cells that explain what is in the cells. The graphics sort with the cells just fine, but when he applies filters to the cells, the graphics bunch up at top of cells that are visible. James wonders if there is a way to have graphics hide when filtering data within cells.

The answer has to do with how you have the properties for the graphics set up. You need to make sure that the graphics are set to resize when the row height changes. Here's what you do if you are using Excel 2013 or a later version:

  1. Select the graphic (or graphics) whose properties you want to modify.
  2. Right-click the graphic (or graphics). Excel displays a Context menu.
  3. Choose Size and Properties from the Context Menu. Excel displays the Format Picture task pane at the right side of the screen.
  4. Make sure Properties task option is expanded. (If it isn't—if you can't see anything under the Properties option—click the small triangle to the left of the Properties option.) (See Figure 1.)
  5. Figure 1. The Properties option of the Format Picture task pane.

  6. Make sure the Move and Size with Cells radio button is selected.
  7. Close Format Picture task pane.

If you are using Excel 2007 or Excel 2010, then the process is just a bit different because those versions don't use task panes. Follow these steps:

  1. Select the graphic (or graphics) whose properties you want to modify.
  2. Right-click the graphic (or graphics). Excel displays a Context menu.
  3. Choose Size and Properties from the Context menu. Excel displays either the Size and Properties (Excel 2007) or Format Picture (Excel 2010) dialog box.
  4. Make sure the Properties tab is selected. (See Figure 2.)
  5. Figure 2. The Properties tab of the Size and Properties dialog box.

  6. Make sure the Move and Size with Cells check box is selected.
  7. Click OK.

Regardless of your version of Excel, it is step 5 that does the trick. Since your graphics are sorting properly when you sort the worksheet, chances are good that you had the Move but Don't Size with Cells check box selected. This is what caused the graphics to bunch up—they couldn't resize when filtering hid the rows with which they were associated.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (11763) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021. You can find a version of this tip for the older menu interface of Excel here: Hiding Graphics when Filtering.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Bogging Down with Calculated Items

Create a complex PivotTable and you may find that your system slows to a crawl. The reason for this may be due to the way ...

Discover More

Make AutoCorrect Pay Attention to Character Case

If you rely on AutoCorrect (as most Word users do), you may have noticed that it doesn't always give the desired results ...

Discover More

Adding Borders to Cell Contents

Word allows you to quickly add borders to cells in a table, but you may not know that you can also add borders to the ...

Discover More

Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!

More ExcelTips (ribbon)

Pasting a Graphic to Multiple Worksheets

Do you need to add a logo or other graphic to a bunch of worksheets? Here are a couple of short macros that can make ...

Discover More

Moving and Copying Graphics Objects

Excel doesn't just work with numbers and text. You can also add graphics objects to your worksheets, and then use Excel's ...

Discover More

Cropping Graphics

Excel makes it easy to place a graphic in a worksheet. Once there, you may want to chop off a side (or two) of the ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is two more than 7?

2024-09-16 10:35:39

J. Woolley

Excel graphics are called shapes. They can be grouped and/or linked to a formula, macro, or hyperlink. My Excel Toolbox includes the following dynamic array function to list information about a workbook's shapes:
    =ListShapes([AllSheets], [SkipHeader], [IncludeText])
These 7 columns are returned for each shape: Range, Group, Type, Shape Name, Link Formula, Macro Name, and Hyperink Address. If optional IncludeText is TRUE (default is FALSE), an 8th column will include Shape Text.
See https://sites.google.com/view/MyExcelToolbox/


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.