Tag Archives: go to special

Copying Only Visible Cells

Go To Special

Have you ever subtotaled data or produced a pivot table and wanted to use the summarized information for further calculations?  Normally if you copy filtered or subtotaled data, all the data, including the hidden rows, is copied.There is an easy way  around this. It’s in the Go To Special feature of Excel and the option is labeled Visible cells only.
Assume that you have the following simplified data:
fig-1
First, use subtotal to accumulate the sum of sales by product line. After sorting the data by product line and using the subtotal feature, the following is obtained:
fig-2As you can see, the subtotaled data hides some columns. Continuing to work with the subtotaled data may cause a mess, especially if you want to create a new subtotal.
An easy way around this issue is to copy the data. If a basic copy/paste was performed in an area that wasn’t within the same set of rows on the worksheet or was on another worksheet, you would have all the detail data rather than just the summarized data. However, you can avoid this by using the Go To Special feature and the Visible cells only option.

First, select the subtotaled data. fig -3

Next, click on Find & Select in the Home ribbon and select Go To Special.

Go To Special dialog box

 

 

 

 

 

When Go To Special has been selected, a dialog box appears with more options.
go special dialog box

Select Visible cells only, then click OK.

result of using visible cells only

Notice that each cell now appears to be highlighted by a box. Right click anywhere in the area and select copy. The box highlights around each cell appear as if they’re moving. Right click on cell A20 and select Paste Special then Values (This is important. It tells Excel to only paste the values in the cells rather than the formulas.)

paste optionsAfter the Values option has been selected from Paste Special, the summarized data, without all the detail, is now available to work with.

 

excel worksheet result

 

I use this technique a lot with pivot tables. Many times, I want to reference a summarized column of information on a pivot table for subsequent calculations. This can be done with pivot table data. However, if the pivot table is large and you want to copy formulas involving pivot table data, it’s not always easy as pivot table data contains absolute cell references (eg. Copying a formula down that contains the first piece of summarized information in a pivot table will continue to only use the data in that first cell.)
So, if I want to work with pivot table data, I generally isolate the visible cells using Go To Special, then copy only the visible cells and use Paste special-Values to copy the data to another worksheet and perform further analysis.

Only Copy Cells with Data

A Method to Copy Only Cells with Data

Have you ever had a couple of columns of data that you wanted to combine into one column?  What do you do when there are blank spaces in some of the columns of data?  Many will cut and paste the data from one column to the other, then manually delete the rows containing blanks.  This begs the question; Is there an easier way?
One way is to use the GoTo Special feature in Excel.  This feature is located in the Home menu, under Find & Select on the far right hand side of the toolbar.jfog-1a

 

As an example, assume that the following data in in Excel and you want it in one column for analysis:
jfig2

Let’s copy only the cells that are not blank from B1:B7 to column A, under A7.
Select cells B1:B7
Click Find & Select and choose GoTo Special.

This menu will appear.

go to special dialog box

 

Select the radio button next to Constants and press OK.

 

Notice how only the cells with data are now shaded.  Hover over any of the three shaded cells and right click.  Select Copy.  Then, select A8, right click and select Paste.

Only the non-blank cells are now pasted into column A.

This technique can save quite a bit of time if you’re working with a large amount of data that requires manipulation into one column.  It also works with any data that needs to be moved and contains unneeded blanks.

  • Your website was easy to navigate and informative.” “This was my first use of your resources but I’m sure it won’t be my last. Thank you for your excellent course material and succinctly stated instructions which expedited order and payment of course selection, completion of exam, and immediate availability of Certificate of Completion. A great experience. Thanks.

    - Draper

  • “It is rare that i can actually say that I enjoyed a CPE course but I found this one informative and very interesting, relying more on the author’s examples and not just quoting tax code!  [Healthcare Reform: The affordable Care Act Tax Provisions]

    - Thomas

  • “Thank you for a high quality CPE resource. As a CPA in a small nonprofit, I find your library quite helpful to meet my needs. I appreciate the service.”- 

    - Cheryl