+ Reply to Thread
Results 1 to 10 of 10

Input data then clear cell but save to another cell..Is there a formula for this?!

  1. #1
    Registered User
    Join Date
    01-28-2014
    Location
    Vancouver
    MS-Off Ver
    Excel 2010
    Posts
    11

    Input data then clear cell but save to another cell..Is there a formula for this?!

    Hi everyone

    I'm not sure how to explain this so please be patient if I don't make sense....

    So at work we have "Client Satisfaction Surveys" and are inputting all the surveys into a data base.
    The last question on the survey is "Rate our survey on a scale of 1-10"

    I want to be able to see the average rating for each employee.. Is there a way to put in the rating from one survey and have it automatically add it another cell and then have it clear the first cell?

    Here is an example of what I would like to do:
    Say we get 2 surveys with one rating of 5 and one rating of 10... If I input the 5 into cell Q4 and have it automatically put into cell R4 and then it gets deleted from Q4 but saved to R4... and then I can add the rating of 10 to Q4 and it automatically ads it to R4 and clears Q4 and totals R4 to an average of 7.5.

    This way, with each new survey I can just input each rating to Q4 and have it cleared for the next rating and then have an average rating of all the surveys in R4... we do not need to keep track of how many ratings we are getting, just the average rating.

    Please see the attached worksheet if you want to have an idea of what I am trying to do...

    If this is possible could someone please help I would really appreciate it!!
    Or if anyone has any ideas of an easier way to do this please let me know.

    Thank you soo much!
    Attached Files Attached Files
    Last edited by Jasmine Dee; 01-29-2014 at 02:56 PM.

  2. #2
    Registered User
    Join Date
    01-28-2014
    Location
    Vancouver
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Formula help.. Is there a formula for this?!

    Sorry I didn't thoroughly read the Forum Rules & Regulations prior to posting... so can people reply now?
    Last edited by Jasmine Dee; 01-29-2014 at 03:01 PM.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Input data then clear cell but save to another cell..Is there a formula for this?!

    You will need to use VBA.
    Right click on the sheet tab and choose "View Code"
    Copy this code into the window that opens and then close the window.
    Please Login or Register  to view this content.
    Test to see if it works.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    01-28-2014
    Location
    Vancouver
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Input data then clear cell but save to another cell..Is there a formula for this?!

    Hi ChemistB,

    First off thank you so much! It worked great... however I do have a couple more questions...

    1: Each time I put a number into cell Q3 is there a way to keep track of what number I put in and how many times? Can we make 10 columns numbers 1-10 and each time I add a number to Q3, it keeps track of how many times that number is entered in the new columns?? For example, Say someone gets 2 ratings of 10 and 1 rating of 5, in the column numbered 10, a 2 appears and in the column numbers 5 a 1 appears.

    2nd:

    I have attached my new work sheet.. For each employee they have their own section and the code thing you gave me works great. however, right now for each survey I put in, I have to add the numbers myself. For example, for the question overall satisfaction If i have two surveys that answer yes, I put in the first with "1" and then when i get a 2nd survey with the same answer I delete the "1" and put in "2"

    I'm wondering if you could give me a code to have the same thing happen for each question.. so that I can just put in "1" and in another cell the total appears.
    So if you look at the excel sheet I have now attached, in Ana's section I would like to put in 1 under "Yes" and have the "1" be cleared and then added to cell C4.. and thenthe same for the No's. (So same concept as before, however just adding to the cell underneath, as we want to keep track of how many Yes's and how many No's)

    And I would like this for each question/answer and for each staff member... Please let me know a code for just one or two of the sections and what to change/add in the code to have this done for each person if you can't do all of them.

    I would REALLY appreciate it!! Please see the new attached excel sheet so that you know what I am talking about lol.
    Attached Files Attached Files
    Last edited by Jasmine Dee; 01-31-2014 at 02:31 PM.

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Input data then clear cell but save to another cell..Is there a formula for this?!

    I assume you want B4 to update (+1) when you input into Q3? I'm not a VBA guru. I will ask someone else to assist.

  6. #6
    Registered User
    Join Date
    01-28-2014
    Location
    Vancouver
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Input data then clear cell but save to another cell..Is there a formula for this?!

    Yes sure that would be great if possible

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Input data then clear cell but save to another cell..Is there a formula for this?!

    Try this code for the sheet you gave me. Can you upload a sheet representing how you wanted the first part of your question?
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    01-28-2014
    Location
    Vancouver
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Input data then clear cell but save to another cell..Is there a formula for this?!

    Attached
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    01-28-2014
    Location
    Vancouver
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Input data then clear cell but save to another cell..Is there a formula for this?!

    And that works great thanks however when I put in a number to say C3, it does go to C4, but it does not clear out of C3, it stays at 1. Everything else is good!

  10. #10
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Input data then clear cell but save to another cell..Is there a formula for this?!

    Hi Jasmine

    ChemistB has requested another set of eyes to look at your Thread.

    I believe this Code in the attached accomplishes what you want...I don't believe it accomplishes what you need.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM
  2. Replies: 1
    Last Post: 03-04-2012, 12:03 AM
  3. Replies: 0
    Last Post: 09-04-2011, 09:14 AM
  4. Replies: 6
    Last Post: 10-08-2009, 03:45 AM
  5. Replies: 1
    Last Post: 07-20-2006, 03:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1