Back

About MrExcel
Consulting Services
Learn Excel Resources
Challenge of the Month
MrExcel Seminars

Message Board

MrExcel Store
Podcast
Search
Media
Contact
Home

 

Processing Market Research Data in Excel


Amber MacArthur, Bill Jelen, Leo LaPorte, Andy Walker on the set of Call for Help on TechTV Canada.

The tip in this show is from Excel for Marketing Managers.


This new book - Excel for Marketing Managers is one in a new series of books:
If you have an idea for another book in this series, drop me a note at consult @ mrexcel.com with your ideas! In today's show, you have hypothetical survey data from surveymonkey.com or some other service. If you look at the data in notepad, it looks like this.

This type of data is comma-delimited. Whenever you have a text file, look at it in notepad first. The other kind of data is space-delimited. When you look at that data in notepad, you will see something that looks like this:

Importing to Excel
You can open this data in Excel. Use File - Open. In the Files of Type dropdown, select either All Files or Text Files.

Once you have switched to show text files, click survey.txt and choose Open.

If your file has a .CSV extension, Excel will open it immediately. Otherwise, you go to the Text Import Wizard - step 1 of 3. In this step, you have to choose if your file is delimited or Fixed Width. In this case, survey.txt is delimited, so choose Delimite and click Next.

In step 2, Excel assumes your data is tab-delimited. You will have to choose this checkbox to indicate commas separate each field.

Once you've checked that box, the data preview shows your data in columns.

Click Next to go to Step 3.

If you have date fields, choose the General heading above that field, and indicate the proper date format. My other favorite setting here is the Do Not Import (Skip) setting. If the survey company gave me extra fields that I won't need, I choose to skip them.

Click Finish. Your data will be imported to Excel.

Caution: For the rest of this Excel session, if you try to paste comma-delimited data to Excel, the paste operation will automatically break the data into multiple columns. This is great if you are expecting it, but maddening if you have no idea why it happens somedays and not other days. It is the act of using the Text to Columns Wizard delimited option that causes this "feature" to get turned on. It lasts until the end of the Excel session.

Random Sampling Your manager asks you to randomly call 10% of the survey respondents. Rather than selecting the first 10, enter this formula to the right of your data: =RAND()<=10%. Since RAND() returns a number from 0 to 0.99999, this will mark about 10% of the records with TRUE.

Average Response Using Formulas
Go to the first blank row below your data. You would like to average the response. There is an AutoSum icon in the standard toolbar. It is a Greek letter Sigma. Next to this icon is a dropdown arrow. The dropdown arrow contains an option to Average. If you first select all of the columns from C647 to I647, and then choose Average from the dropdown, Excel will add all of the formulas with a single click.

Analyzing Data with a Pivot Table
Say that you want to check front desk ratings over time. Follow these steps.
  • Choose a single cell in your data
  • From the menu, select Data - Pivot Table and Pivot Chart Report
  • Click Next twice.
  • In Step 3, click the Layout button.
  • Drag Date to the Row area. Drag Q1FrontDesk to the Column Area. Drag Respondents to the Data Area.
  • Double click Sum of Respondents in the Data area. Change from Sum to Count.

  • Click OK. Click Finish.
You now have a pivot table showing all of the front desk results. Most fall in the 3-5 range, but there are a few that were rated 1 on 3/29, 3/30, and 4/2. Perhaps your front desk employee on the weekends has an attitude problem.

Using a pivot table allows you to dig through a lot of data to spot trends. For the BEST TV show on technology, check out Call for Help.

This tip was originally published on April 24, 2006 and aired on TechTV in Canada and Australia on April 25, 2006.

The permanent URL for this page is http://www.mrexcel.com/tip125.shtml.

If you are looking for show notes from another episode, visit my complete list of TechTV appearances.

MrExcel.com Consulting can be hired to implement this concept, or many other cool applications, with your data.

MrExcel.com provides examples of Visual Basic procedures for illustration only, without warranty either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. The Visual Basic procedures on this web site are provided "as is" and we do not guarantee that they can be used in all situations.

 

Excel is a registered trademark of the Microsoft® Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.

All contents Copyright 1998-2008 by MrExcel Consulting.