We Value Your Privacy

We and our partners use technology such as cookies on our site to personalise content and ads, provide social media features, and analyse our traffic. Click below to consent to the use of this technology across the web. You can change your mind and change your consent choices at anytime by returning to this site.

Update Consent
Loading ...

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

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.

Loading ...
  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. 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. 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. 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. 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. 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. 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. 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. 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.

Loading ...

About the Author

Laura Jean Holton is a professional writer specializing in a diverse range of topics, including education, pets, music and history. She also writes articles about hair styles, care and trends for the Vissa Studios website.

Loading ...