Excel Tips

Body

Highlight duplicate values

  • Choose Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values

Back to Top

Opening CSV files in Excel from any tool

  • When opening in Excel directly, leading zeroes are deleted from fields such as EMPLID.  Adding them back causes them to be read-only.
  • To ensure the leading zeroes are functional, follow these instructions:
  • Open Excel
  • Select a new blank workbook
  • From the "Data" tab at the top, select Select External Data From Text.
  • Browse for your desired .csv and click "Import."  The following screen appears.  Make sure delimited is selected and click to include headers.  Click" Next."

showing the first step to import text into Excel.

  • Deselect "Tab" and select "Comma."  You will notice the Data preview will change to columns. Click "Next."

showing the second step to importing text into Excel.

  • In the next step, the first column field will be highlighted.  Click on the field header that should contain the leading zeroes and click on "Text." 

showing the final step to importing text into Excel.

  • In the final box, click "OK."

Back to Top

Easily convert xls to xlsx

  • When downloading Excel files from PS, you note that they are all xls format.  You can convert the file without creating a second file of the same name.
  • Go to the File tab.  This brings you to a new page.  The very top icon says "Convert." Click it and it will change your xls to an xlsx file.

Back to Top

Creating Subtotals in Excel

Back to Top

Creating Pivot Tables  

Change the source data for a PivotTable

  • After you create a PivotTable, you can change the range of its source data. For example, you can expand the source data to include more rows of data.
  • However, if the source data has been changed substantially — such as having more or fewer columns- consider creating a new PivotTable.
  • You can change the data source of a PivotTable to a different Excel table or a cell range, or change to a different external data source.
  1. Click the PivotTable report.

  2. On the Analyze tab, in the Data group, click Change Data Source, and then click Change Data Source.
    The Change PivotTable Data Source dialog box is displayed.

  3. Do one of the following:

    • To change the data source of a PivotTable to a different Excel table or a cell range, click Select a table or range, and then enter the first cell in the Table/Range text box, and click OK.

      showing the dialogue box that allows you to change a Pivot Table's data source.

    • To use a different connection, do the following:

  4. Click Use an external data source, and then click Choose Connection. NOTE: if "use an external data source" is grayed out, the PivotTable may not have been initially created using an external source, and you may have to recreate it.

  • The Existing Connections dialog box is displayed.

    showing the dialogue box that opens to change the Pivot Table's Data Source with the use an external data source being selected and where the choose connection  button is.

  • In the Show drop-down list at the top of the dialog box, select the category of connections for which you want to choose a connection or select All Existing Connections (which is the default).

  • Select a connection from the Select a Connection list box, and then click Open. What if your connection is not listed?

  • Note: If you choose a connection from the Connections in this Workbook category, you will be reusing or sharing an existing connection. If you choose a connection from the Connection files on the network or Connection files on this computer category, the connection file is copied into the workbook as a new workbook connection, and then used as the new connection for the PivotTable report.

  • For more information, see Manage connections to data in a workbook.

Back to Top

Environment

  • Excel

Details

Details

Article ID: 158650
Created
Fri 5/10/24 4:20 AM
Modified
Fri 10/31/25 2:19 PM
Applies To
Faculty
Staff