Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Sorting with Graphics.

Sorting with Graphics

Written by Allen Wyatt (last updated August 27, 2020)
This tip applies to Excel 97, 2000, 2002, and 2003


2

You already know that Excel allows you to place graphics in your worksheets. You may not know, however, that Excel allows you to sort graphics along with the regular data in your tables. For instance, you could create an inventory table that has the requisite part numbers, descriptions, and quantities. You could also include a column that shows a small picture of each inventory item. When you later sort the table, the pictures sort right along with the rest of the data in the table.

If you can't seem to make the graphics sort along with the other data in the table, keep these pointers in mind:

  • The graphics have to be sized so they fit completely within the cell. They cannot be taller or wider than the cell over which you placed them.
  • You should make sure that the sorting function is selecting the column in which your graphics have been placed. You can check this by seeing if the column is selected when you choose the Sort option from the Data menu.

If your graphics still won't sort, the properties of the graphic may have been changed to prohibit sorting. Follow these steps:

  1. Right-click on a graphic image. Excel displays a shortcut menu.
  2. Choose Format Picture from the shortcut menu. Excel displays the Format Picture dialog box.
  3. Make sure the Properties tab is selected. (See Figure 1.)
  4. Figure 1. The Properties tab of the Format Picture dialog box.

  5. Make sure the Don't Move or Size with Cells option is NOT selected. (You can select either of the other two options, but don't choose the third one.)
  6. Click on OK.
  7. Repeat steps 1 through 5 for all the graphics in the column.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2954) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Sorting with Graphics.

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

Unhiding or Listing All Objects

An Excel workbook can contain quite a few different objects. Sometimes those objects can be hidden so that they are not ...

Discover More

Opening a Recently Used Workbook

Excel provides a special tool that can help you locate and open workbooks you've worked with recently. Here's how to use ...

Discover More

Checking for Messages in Cells

If you have a range of cells used to display error messages, you soon discover that it is easy to miss messages that may ...

Discover More

Save Time and Supercharge Excel! Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out Excel 2010 VBA and Macros today!

More ExcelTips (menu)

Controlling Display of the Status Bar

Turning off the status bar through the options menu.

Discover More

Inserting a Watermark Behind Merged Cells

If you have a group of merged cells into which you want a user to enter information, you may want some sort of ...

Discover More

Creating a Log/Log Chart

If you need to create a chart that uses logarithmic values on both axes, it can be confusing how to get what you want. ...

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 7 + 0?

2017-08-15 18:11:54

ben

Hi Allen,

I have 1000s of images in many columns and rows. How do I select the entire worksheet so when I do a custom sort for the columns, all of the images are sorted as well?

I can't manually select 1000+ photos. Please help.


2016-11-15 13:08:59

Beth Hoyle

Thank you for this. When I sort my rows (with graphics inside as you described), the height of the rows does not go along with them (it was said to me that the *data* is resorting, not the actual row's characteristics). It seems that whether I have selected "Move and size with cells" or "Move and don't size", when a row sorts and becomes shorter, the graphic smooshes down to fit into that new row height. Do you know a way that I can sort the rows and have them retain the height that I've given them (which in most cases is defined by the size of my graphic, not by how many lines of text are inside the cells)? Thanks!


This Site

Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon 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.