Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 



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 06:04 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