Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-06-2017, 06:24 AM
Trevor G Trevor G is offline Formula for a running total in one cell Windows Vista Formula for a running total in one cell Office 2007
Novice
 
Join Date: May 2012
Posts: 9
Trevor G is on a distinguished road
Default

When you state a running total the formula you are using is only pointing to a single cell on a single sheet, what type of combination are you after?
Reply With Quote
  #2  
Old 09-06-2017, 06:31 AM
cdon1983 cdon1983 is offline Formula for a running total in one cell Windows 7 64bit Formula for a running total in one cell Office 2016
Novice
Formula for a running total in one cell
 
Join Date: Sep 2017
Posts: 3
cdon1983 is on a distinguished road
Default

The idea is for the user to enter the answers on the home tab using the drop down menus with either yes or no. These answers will then show as a number on the Group tab. This is far as I got... I was hoping to set up a button with a macro that would save the answers after the survey was complete and then wipe the answers ready for the next survey. The answers that a found on the Group tab would then be accumulated as more and more survey are completed. I hope that makes sense..
Reply With Quote
  #3  
Old 09-06-2017, 07:05 AM
Trevor G Trevor G is offline Formula for a running total in one cell Windows Vista Formula for a running total in one cell Office 2007
Novice
 
Join Date: May 2012
Posts: 9
Trevor G is on a distinguished road
Default

What I can suggest is to Add an extra row above the drop downs and use an IF Statement to =IF(B4="YES",1,0) you can always hide the column, then you simulate copying the cell then select the home sheet and simulate using Paste Special and Values and Paste Special and Add. Which will then add the value to the total. Finally look to clear the YES from the cell.

Sampel code is below:

PHP Code:
Sub AddToTotals()
'This is a demo only for one cell if this works for you
'
Then it needs to be worked on for all the other cells.
    
Sheets("Homes").Range("b3").Copy
    Sheets
("Group").Select
    Selection
.PasteSpecial Paste:=xlPasteValuesOperation:=xlAddSkipBlanks _
        
:=FalseTranspose:=False
 Sheets
("Homes").Range("b4").ClearContents
 
End Sub 
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula for a running total in one cell Simple Spread Sheet TThomas Excel 1 04-07-2016 09:01 PM
Formula for a running total in one cell Using combobox to pass data from an Excel spread sheet to text boxes on userform Stewie840 Word VBA 14 12-17-2015 10:13 PM
Formula for a running total in one cell How To Open an Macro From 2003 Excel in 2013 Excel Spread Sheet? ADubin Excel Programming 3 02-08-2015 04:57 AM
changing the spread sheet location on embeded pie chart otuatail PowerPoint 1 03-04-2014 07:20 AM
Condensing a spread sheet hawkeyefxr Excel 4 08-22-2012 05:17 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:07 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft