Tallying Survey Responses Using Macros, Buttons

Dec 13, 2004

I conducted a survey and want to tabulate the results in excel. There is a lot of paper, so I want to list each answer on the spreadsheet and have a button next to it to tabulate the responses instead of doing it by hand. When I look at each survey, I want to click the button for the corresponding answer. I want to have excel tally/increment each response each type I click the button.

So what macro do I need to assign to each button in order to do this? Or can I just click on a cell and have it increment? Or what can I do to achieve this?

My attempts have given my circular reference errors, or if I do the iteration thing (tools, options, iterations), excel increments EVERYTHING in the spreadsheet by one instead of just one specific question.

View 9 Replies


ADVERTISEMENT

Array Or Countifs For Counting Survey Responses

Nov 4, 2009

I have recorded the data from 12 records (i actually have hundreds, but im just using a small sample). Each record is represented by a vertical column. I want to find the total number of "x's" for only the records from Country1 (from all the answers). Then I want to find the number of "x's" from only Country2. I have tried the "countifs" function but cannot find a way to make it work. Would a different array function be better? How would I write it?

P.S. The answer for Country1 should be: 15.
The answer for Country2 should be: 5.

View 10 Replies View Related

Survey Collection - Up / Down Spin Buttons

Jul 10, 2014

I'm creating a spreadsheet to collect survey data and how I have it set up is this:

Question 1 is a simple yes/no/maybe question - it uses an ActiveX spin button that the user presses up/down to increase/decrease the total. It looks like this:

Private Sub Yes_SpinUp()
With Range("C3")
.Value = WorksheetFunction.Min(15000, .Value + 1)
End With
End Sub

Private Sub Yes_SpinDown()
With Range("C3")
.Value = WorksheetFunction.Max(0, .Value - 1)
End With
End Sub

Cell C3 is where I keep track of how many people answered yes

The button is called "yes" under the button properties

So basically, I have one privatesub for spinning the value up and down. It works fine and is easily copy-paste-able for other answers, it just takes up a lot of space. I'm wondering if there's code I can write to handle the up/down in one sub. If not, i'll stick with what I have.

View 6 Replies View Related

Created A Toolbar With Buttons That Run Macros

Oct 14, 2008

I have created a toolbar with buttons that run macros. When the macro is assigned to that button the macro will run fine. However, when the file name of the excel workbook has changed (file relocated or name changed) then the macro (button in the toolbar) does not work and has to re-assigned in the toolbar. Is there anyway of getting around the problem of having to reassign the macro to the toolbar button whenever the file name/directory changes.

View 5 Replies View Related

Macro: Remove Macros From Buttons

Dec 17, 2006

I am trying to come up with some code to loop through all worksheets in the workbook and remve assigned macros from any buttons on each sheet

My code below. I type btn. and reviewed the items offered by intellisense, but nothing seemed fitting.

Sub RemoveAssignedMacro()

Dim wb As Workbook
Dim btn As Shape
Dim sht As Worksheet

Set wb = ThisWorkbook

For Each sht In wb.Worksheets
For Each btn In sht.Shapes
btn.
Next btn
Next sht

End Sub

View 8 Replies View Related

Delete Macros And Command Buttons

Jan 23, 2007

I managed to save workbook as values only by the help of this forum

Now is it possible to disable the commond buttons, when the workbook is saved as values only or can we delete the macro's.

View 3 Replies View Related

Saving Then Closing Causes The Loss Of Buttons For Macros?

May 15, 2014

Whenever I save and close the attached, after selecting the NO on line 23, I lose all the buttons associated with my macros. If I save with everything expanded, no rows hidden, my buttons stay put.

View 1 Replies View Related

Assigning Macros To Command Buttons In Excel?

Aug 14, 2012

I have written a piece of VBA code which I want to assign to a button in the front end of excel, however once I assign it and then press the button to run the macro (which works) I am not able to then press it again incase I need to re run it?

View 7 Replies View Related

Moving Worksheets With Macros Tied To Buttons

Sep 10, 2004

I have a setup at the moment where I have a spreadsheet using a bunch of macros that are coded in a module attached to another spreadsheet. In both spreadsheets the macros are tied to Excel buttons placed within worksheets. When I copy the spreadsheets each month to new directories - they're used for some monthly reporting - I see the following behavior:

1/ The spreadsheet that contains the module with the code for the macros correctly updates the location of the macros and works OK.

2/ If I open the other spreadsheet and save it the macros appear in the tools/macro dialog as having changed location OK. However, if I try to use the macros by pressing a button the macros invoked are in the old location. If I check the assignment of the macros in this spreadsheet by right-clicking on a button, indeed the macros invoked are in the old location. This means that I have to go through and manually update for each button the macro invoked.

View 2 Replies View Related

How To Create Macros Buttons To Add Or Delete Columns And Rows

May 21, 2014

So I'm trying my hand at creating VBA buttons and functions that do the following.

Button 1 :
to add a column with every click. The button will create one extra column. So by design there will be at least 1 column. Example if the button is clicked twice it will create 3 columns. I just need a buffer col. (contains no data)

Button 2 :
to delete empty columns leaving only one empty buffer column. That is this button will purge empty columns except the buffer column. OR if ALL the columns are filled, Button2 will create the buffer column.

Eg. I click Button 1 three times. It creates four columns. I only fill two columns. When Button 2 is clicked it will delete all the empty colums except the buffer column. OR I fill in all four columns, there is no buffer column, when I click Button2 it will insert the buffer col.

Button 3 :
to add a row with every click. The button will create one extra row. So by design there will be at least 1 row. Example if the button is clicked twice it will create 3 rows. I just need a buffer row. (contains no data)

Button 4 :
to delete empty row leaving only one empty buffer row. That is this button will purge empty row except the buffer row. OR if ALL the columns are filled, Button4 will create the buffer column.

Eg. I click Button 3 three times. It creates four rows. I only fill two rows. When Button 4 is clicked it will delete all the empty rows except the buffer rows. OR I fill in all four rows, there is no buffer rows, when I click Button4 it will insert the buffer row.

In the sample file there are six columns filled with data. The 7th col is empty(the buffer column). The column after that calculates the average of data in filled columns. There are eight rows with data and the ninth row is the empty buffer row.

The "add" buttons must be able copy the format/formula of the column/rows BEFORE the buffer colums/rows and insert it before the buffer column/row.

View 3 Replies View Related

Radio Buttons Macros Hyperlinks And Moving Back?

Sep 6, 2002

I'd like to insert some radio buttons in a worksheet that activate a hyperlink to a web page and then be able to go back to where I started (ie the radio button)

I can link the button to a macro which was a recording of clicking on a hyperlink. The trouble is when I hit the return arrow to return to the sheet from the web page I go back to the location of the hyperlink not where I started from.

Is there a way to do this with the buttons.

If I can rearrange the sheet to allow for more narrow columns I may be able to just use the hyperlink friendly name argument and do it that way but I'm not so sure I can insert more narrow columns without messing up the layout of the whole sheet. With a button I can float several of them over an area regardless of the width of the columns.

View 1 Replies View Related

Ribbon And Quick Access Buttons Not Executing Macros Assigned To Them

Jun 6, 2013

I noticed that my custom "Close without Saving" button stopped working. I checked the VBA editor and my Personal workbook was missing and all of my personal macros were gone. I restarted excel, same issue. Rebooted my machine and they re-appeared. Not sure how what happened, but at least the Personal workbook was not lost. I'm working off my company's network, so often I get the "Personal Workbook is locked for editing" message. I usually select the open as read-only file and go about my merry way. Perhaps I clicked something different on accident without paying attention.

Anyway, I digress, the custom macro button that I had in my ribbon still didn't work, so I removed it and tried again in both the ribbon and the quick access toolbar with no success. The Macro executes if I execute it manually or via the keyboard shortcut, but the ribbon/quick access toolbar buttons won't work. Frustrating, because I use this quite often. I've even tried writing a quick "dummy" macro to see if it was some sort of code error related to the macro, but got the same result. My "Close without saving" code is below (super basic code).

Sub Close_Without_Saving()'' Close_Without_Saving Macro' Closes active workbook without saving changes.'' Keyboard Shortcut: Ctrl+q' ActiveWorkbook.Close (False)End Sub

View 1 Replies View Related

>>> Tallying Column A And B

Oct 23, 2007

I have stock symbols in two columns and wanted to to tally. So, if the ticker symbol in A is diffent than the one in B, it would give me an output in column C. In the example below, the third row does not tally. How do I do this?

AAAA
ABCABC
ABTATT
ABXABX
ADMADM

View 4 Replies View Related

Tallying Totals Of Ten

Jan 11, 2008

I have a column of wickets (M). M5 and M6 are the number of wickets for one match, M7 and M8 for the next, and so on. Two wicket entries for each match.

I needed a formula to count the amount of times the combined wicket total for a match is greater than 10. Initially there were only a few M values, so I used this:

IF(M5+M6>=10,1,0)+IF(M7+M8>=10,1,0)+... and so on. Now I want to expand it to have more M values and this formula would become huge.

View 11 Replies View Related

Tallying Dropdown Selections

Mar 26, 2009

how to track selections from a dropdown menu, I have 8 selections under the dropdown that are being selected from a list. Next to the list I want to have the total of the number of times it was selected on the dropdown. I've tried the data>subtotals, but It only seems to create 0's under the dropdown box.

I dont want the totals in the dropdown box I want it next to the list of 8.

View 3 Replies View Related

Tallying Multiple Choice Test?

Jun 6, 2014

Columns represent each student's test (There are 31 test numbers) The test consisted of 50 multiple choice questions, each listed in each row. The green column shows the correct answer for each question.

I need to tally the score for each test in the orange row.

View 2 Replies View Related

Choose Only 1 Of 2 Responses

Jan 13, 2009

I have created a form where people will take a survey, and the responses from that survey will be carried over to another worksheet that will analyze their results.

For each question in the survey, I want them to choose only 1 of 2 responses. For example:

Place and X next to the statement that describes your opinion most often:
__ I prefer to work with others.
__ I prefer to work alone.

The responder will choose either the first or second response, but I do not know how to limit it so they can't answer both. I want a way to limit the worksheet so if they type an X in the first field, they are unable to type one in the second field, and vice versa.

Is there any way to limit the responders ability so that if they choose to respond to the first statement, they are not able to also respond with the second statement, and vice versa, while not affecting the results page that uses the IF formula =IF(sheet1!A8="X","X","")

View 4 Replies View Related

Progress Meter Based On Yes / No Responses?

Nov 18, 2013

how to create a progress meter based on yes/no (completed/not completed) responses? If 2/10 responses are completed, then the progress meter would display 20% or 20% of the bar would be red. Is this even possible in excel? I've used conditional formatting to create a progress meter but can't figure out how to make a progress bar based on responses.

View 1 Replies View Related

Link Form Responses To Sheet

Oct 12, 2009

I've created the form and formatted everythig as I need it but now I am clueless how to make the command button (enter data) post the data to the appropriate cells in my spreadsheet. I especially need the data to find the first empty row so that it doesn't overwrite the previously entered information.

View 11 Replies View Related

Macro To Move From One Sheet To Another Based On Responses

Sep 20, 2006

I have a spreadsheet in which the user will respond to questions using "T" for "True" or "F" for "False". If there is a certain number of T's I would like the macro to take the user to one sheet in the workbook or if there are a certain number of F's I'd like it to take the user to another sheet in the workbook.

View 2 Replies View Related

Multiple Questionnaire Check Boxes Limited To X Responses

Jun 1, 2008

As part of an audit program I have a questionnaire. One of the questions has 10 check boxes, one with a combo box and one with a text box. The user will check at least 2 or more answers, but not all 10. (2-4 average). I don’t want to link the answers to specific cells, because I don’t want the answers to display with blank rows between answer on the sheet. I want the answers to display in 2 columns evenly distributed.

I would prefer, to not have to run a macro, if possible, but the only way I could see to do this is a very long if statement base on every combination of answers. If the only way to do this is thru a macro, I would prefer to tie it to the printing of the sheet, or I could make it part of an error checking macro I plan to do. The actual question is in the attached file

View 7 Replies View Related

Generating A List Of The Five Most Common Responses (Text-Based Mode)

Sep 11, 2009

I would like to generate a dynamic list of the top five most common text responses in a range. For simplicity sake, let's assume that the range spans cells A1 to A20, and the list is generated in cells B1 to B5. So, essentially, I am seeking five separate formulas. One to calculate the most common text element, one to calculate the second most common text element, one to calculate the third most common text element and so forth.

I am currently working with the two formulas below but finding it incredibly difficult to merge them into a working format.

Formula for finding second most common number:
=MODE(IF(IF(A1:A20"",A1:A20)MODE(IF(A1:A20"",A1:A20)
),IF(A1:A20"",A1:A20),""))

Formula for finding most common text element:
=INDEX(A1:A20,MODE(IF(ISTEXT(A1:A20
),MATCH(A1:A20,A1:A20,0))))

View 9 Replies View Related

Macro Or VBA Code To Paste Short Responses At Cursor On Email Replies

Dec 13, 2013

Writing the code to assign a button so when I click it it types or pastes a short response on the body of a reply message or where I place the cursor.

View 5 Replies View Related

Analyzing S Survey Form

Apr 20, 2013

I would like to analyze a survey form.

See attached example : survey.xlsx‎

I am trying to display a total of answers per question and transform that into a grid for easy reporting but am not sure how to do it.

View 2 Replies View Related

Survey Form With More Than 2 Options

Apr 10, 2014

I followed a youtube video on setting up a survey in excel, and it works great, but it was only for two options. I wanted to make it 5 options per question, but when I started adding to the code ( which I thought was correct, but was not ) I kept getting errors. It probably is a simple addition. How to make the survey options more than two?

There are three tabs. The first tab (Start) only has a button that leads to the QA Survey. The Second tab has the questions and answers. The third tab as three columns in it as well for the name of the person, question number, and answer choice.

Here is the code inside the form (QASurvey):

Code:
Private Sub button_next_Click()
''confirm there is a name
If TextBox1.Value = "" Then
MsgBox ("Please enter your name")
[Code] ...

Here is the code in Module 1:

Code:
''global variables
Public info() As Variant
Public results() As Variant
Public questionnumber As Integer

Here is the code on the sheet that has the button to start the Survey Form:

Code:
Private Sub Start_Button_Click()
QASurvey.Show
End Sub

View 5 Replies View Related

Rank Questions In A Survey

Nov 7, 2006

I am trying to rank questions within a survey with excel calculations and not VBA. The rank would take place for each individual section and would provide the top three right questions and top three wrong questions. The example below explains the ranking.

Brief facts:
Each survey has up to 30 sections.

Each section has up to 150 questions.

Each question has none or no limt of sub-questions.(usually between 1 and 20, weekly changes require this number to change)

The section's number of questions change weekly with updates.

This week section 2 begins with #12, next week begins with #16 because more questions were added to section 1.

There are three possible choices to answer a question (yes, no, or n/a.)

Sub-questions are checkboxes of explanations on why the question could be answered wrong.

Each question may have 0-10 points assigned.

Each sub-question may have 0-10 points assigned.

When a question is answered "no" is when a sub-question may be checked to help explain why.

A question with sub-questions may only be assigned points at the sub-question level. The sub-questions have the points and do not sum up to total the question value.
When a question is answered "no" and a sub-question is checked, the points received are 0 points for that sub-question. Unchecked sub-questions receive the full amount of points.

When a question is answered "yes" all points are received.

The Rank:

The rank would take place for each individual section and would provide the top three right questions and top three wrong questions at the question level. My example below has more than three to help explain further.

Select the highest actual score of question or sub-question. Start with 10 points to 0 points.

When a match is found that becomes the first "correct" question rank. #17 is 1 since 17.1 had an 8 point sub-question.

When there is a tie #14,15,18, the tie breaker is the sum of correct sub-questions added to the question score. #14 = 7 points.

The second sort is the # in ascending order #15 and then 18.

The hardest part of the rank is the flexibility of a changing survey with question/sub-question deletions and additions in each section. ...

View 10 Replies View Related

Multiple Macro Buttons (radio Buttons)?

Feb 10, 2012

I am trying to create a worksheet that has multiple radio buttons. Each radio button is linked to a Macro. I need there to be many buttons running down one side of the worksheet. Each button needs to perform a macro that is relevant to the cells in the same row that it is on.

Essentially what i am trying to do is make a macro that when the button is pressed copys data from H6 and paste it into B6. The button is situated above I6. I need a button for each row from 6 to 110.

While this macro is easy to create (i use the record button and then assign the macro to the button), i would have to do this 104 times and assign a new macro to each button.

Is there a quicker way?

View 6 Replies View Related

Change The Color Of Buttons Or Command Buttons

Mar 14, 2007

Is it possible to change the color of buttons or command buttons? There does not seem to be any place that allows this under properties for buttons, although there does for command bars. However, I've tried recording a macro as I change the color, but nothing get's recorded so I'm not sure what the syntax would be.

I have a spreadsheet with several buttons and I'd like them to change colors as they are pressed so it's possible to see what you've already done. And then, as soon as any other cell on the sheet is changed, the buttons reset color.

View 9 Replies View Related

Survey Form - How To Open Another Thread

Jan 2, 2013

how to open another thread. I would like to do a survey form (as attached) but I wanted to use VBA to make it easy to compute the result.

View 2 Replies View Related

Extract Data From Survey Checkbox

Dec 11, 2013

I have a survey/form that was created in excel, and that is answered in excel. I am required to extract the data into a worksheet for each response received. I am able to pull the text that is entered, however i am having trouble pulling through the info from the checkboxes. So if a checkbox is ticked i cannot pull that through?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved