Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-06-2017, 05:42 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 Formula for a running total in one cell


I'm trying to create a survey page where answers can be be given to questions either yes or no. These answers will then be totalled on a summery page. The issue I'm having is trying to create a running total in one cell combining the current formula =COUNTIF(Homes!B3,"YES").
Attached Files
File Type: xlsx Compliance Audit 2017 (Autosaved).xlsx (39.6 KB, 15 views)
Reply With Quote
  #2  
Old 09-06-2017, 06:15 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

Can you upload a sample of the workbook or place a uploaded copy to something like dropbox and add a link into your thread. Someone can take a look and hopefully provide a solution.
Reply With Quote
  #3  
Old 09-06-2017, 06:18 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

Quote:
Originally Posted by Trevor G View Post
Can you upload a sample of the workbook or place a uploaded copy to something like dropbox and add a link into your thread. Someone can take a look and hopefully provide a solution.
I've attached the spread sheet I'm working on
Reply With Quote
  #4  
Old 09-07-2017, 01:34 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is online now Formula for a running total in one cell Windows 7 64bit Formula for a running total in one cell Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,922
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Quote:
Originally Posted by Trevor G View Post
Can you upload a sample of the workbook or place a uploaded copy to something like dropbox and add a link into your thread. Someone can take a look and hopefully provide a solution.
Hi Trevor,
it is always best that attachments should be posted on the forum, not a link to Dropbox or similar.
External links are notoriously unsafe and cannot always be used by all members depriving the OP from valuable help ( some members log on from their workplace)
When posted on the forum, the file will also be available later for other seekers to find, whereas external files could be deleted
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #5  
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
  #6  
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
  #7  
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
  #8  
Old 09-07-2017, 05:12 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

Thanks for letting me know.
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 01:22 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