Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 7th, 2004, 10:46 AM
Registered User
 
Join Date: Oct 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default SImple Checkbook Register

I am wanting to create a simple checkbook register. My Layout is as follows:

Beginning balance is in G2
The records layed off in the rows with my debits in Deposits in Column D, my payments in Column E, and the running balance in Column G. My first record will be row 3. What formula will I use to start with the current balance (for starters, beginning balance is G2) and either subtract the payment cell if it is populated, or add the deposit cell if it is populated. I would also like to have the Balance cell be black if it is positive, and red if it is negative.

Thanks

 
Old October 29th, 2004, 10:11 AM
Authorized User
 
Join Date: Oct 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to shattered Send a message via Yahoo to shattered
Default

To be honest you don't need to be quite so careful - assuming that an entry will be one or the another (a debit or a credit) you can simply apply both.

=G2-E3+D3

To get the formatting of the cell (ie change the background to black) use Conditional Formatting (found on the Format Menu)
Condition 1
Cell Value Is --> Greater than --> 0
and click on the format button
Clcik on the Font Tab > change Color to White
Click on the Patterns Tab > select black
Click ok and then ok again

Now click the Add button to add a second condition
Condition 2
Cell Value Is --> Less than --> 0
and click on the format button
Clcik on the Font Tab > change Color to White
Click on the Patterns Tab > select red
Click ok and then ok again







Similar Threads
Thread Thread Starter Forum Replies Last Post
Cash Register arcadium Java GUI 0 August 2nd, 2008 10:24 PM
Register issue in IE Only iPagan BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 February 21st, 2007 05:45 AM
Help with register page tagaroe Classic ASP Basics 0 January 30th, 2007 05:26 AM
Register Globals Off cmiller Beginning PHP 4 August 18th, 2003 05:21 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.