How to do a Fast Fourier Transform (FFT) in Microsoft Excel

Written by laura jean holton Google
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to do a Fast Fourier Transform (FFT) in Microsoft Excel
FFT analysis reviews signal frequency. (Comstock/Comstock/Getty Images)

A Fast Fourier Transform, or FFT, is the simplest way to distinguish the frequencies of a signal. Use the process for cellphone and Wi-Fi transmissions, compressing audio, image and video files, and for solving differential equations. Microsoft Excel includes FFT as part of its Data Analysis ToolPak, which is disabled by default. To produce a graph displaying the frequencies in a signal, you must first enable the ToolPak since the process involves the use of numerous algorithms for the complex mathematics.

Skill level:
Easy

Other People Are Reading

Instructions

  1. 1

    Enable the ToolPak if you have not already done so. Click the "Office" button, and then choose "Options." Click "Add-In Options," highlight "Analysis ToolPak," and press "Go." Highlight "Analysis ToolPak" a second time, and then press the "OK" button.

  2. 2

    Open Excel and create a new spreadsheet file. Add the title "Time" to the A column, followed by the titles "Data," "FFT Frequency," "FFT Complex" and "FFT Magnitude" to columns B through E respectively.

  3. 3

    Input the data from your samples into the Data column. Make a note of the number of data points and the sampling rate used.

  4. 4

    Write the time at which each data point was taken in the Time column. Determine this by dividing the total time by the number of data points.

  5. 5

    Open the "Data" tab, and then select "Data Analysis." Select the "Fourier Analysis" option and press the "OK" button. Set the input range as the information in the Data column and the output as the FFT Complex column.

  6. 6

    Type the equation "=IMABS (E2)" into the first cell of the FTT Magnitude column. Drag the equation downward to fill every cell of the column. This equation creates real numbers, instead of complex numbers, in the previous column.

  7. 7

    Fill column F with the corresponding data, from column A, point minus one. Create a separate cell with the equation "=(S/2)/(N/2)," replacing "S" with the sampling rate and "N" with the number of samples.

  8. 8

    Enter the equation "=F2*SG$4" in the first cell of the FTT Frequency column. This time, drag the equation only to the halfway point in the column.

  9. 9

    Create a graph, using the FTT Magnitude column for the y-axis and the FTT Frequency column for the x-axis. The graph displays the dominant frequencies as peaks.

Don't Miss

Filter:
  • All types
  • Articles
  • Slideshows
  • Videos
Sort:
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the eHow.co.uk site, you consent to the use of cookies. For more information, please see our Cookie policy.