#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 516
Default The If function

I'm trying to write a simple formula for a columnar Ledger account that has
a Dr Entry and a Credit entry. I want to show in the balance column the
amount in $'s and the fact if it is a Dr Balance or a Credit Balance.
Cell A2 and B2 would have the heading Debit and Credit, C2 would have the
balance heading.
Cel A3 has a value of $3000 and cell B3 a Value of $4000 Cell C3 would then
have a balance of $1000Cr. This formula would then need to be copied down the
column and self adjust for each entry.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default The If function

In C3 you can use the formula:

=A3-B3

In C4 you can use the formula:

=C3+A4-B4

Highlight both these cells and click on Format | Cells | Number tab,
then select Custom, and in the panel type in this format:

$0"Cr";$0"Dr"

Then you can copy the formula in C4 down as far as you need to.

Hope this helps.

Pete

On Feb 6, 10:35*pm, Matt wrote:
I'm trying to write a simple formula for *a columnar Ledger account that has
a Dr Entry and a Credit entry. I want to show in the balance column the
amount in $'s and the fact if it is a Dr Balance or a Credit Balance.
Cell A2 and B2 would have the heading Debit and Credit, C2 would have the
balance heading.
Cel A3 has a value of $3000 and cell B3 a Value of $4000 Cell C3 would then
have a balance of $1000Cr. This formula would then need to be copied down the
column and self adjust for each entry.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default The If function

Actually, if you want the cells in column C to show only if there is
an entry in either A or B for each row, then change the formula in C4
to this:

=IF(OR(A4<"",B4<""),C3+A4-B4,"")

then copy this down.

Hope this helps.

Pete

On Feb 6, 11:06*pm, Pete_UK wrote:
In C3 you can use the formula:

=A3-B3

In C4 you can use the formula:

=C3+A4-B4

Highlight both these cells and click on Format | Cells | Number tab,
then select Custom, and in the panel type in this format:

$0"Cr";$0"Dr"

Then you can copy the formula in C4 down as far as you need to.

Hope this helps.

Pete

On Feb 6, 10:35*pm, Matt wrote:



I'm trying to write a simple formula for *a columnar Ledger account that has
a Dr Entry and a Credit entry. I want to show in the balance column the
amount in $'s and the fact if it is a Dr Balance or a Credit Balance.
Cell A2 and B2 would have the heading Debit and Credit, C2 would have the
balance heading.
Cel A3 has a value of $3000 and cell B3 a Value of $4000 Cell C3 would then
have a balance of $1000Cr. This formula would then need to be copied down the
column and self adjust for each entry.- Hide quoted text -


- Show quoted text -


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 516
Default The If function

Pete Thank you the first solution seemed to work the best. I will look at the
second option tomorrow.

Thanks heaps

"Pete_UK" wrote:

In C3 you can use the formula:

=A3-B3

In C4 you can use the formula:

=C3+A4-B4

Highlight both these cells and click on Format | Cells | Number tab,
then select Custom, and in the panel type in this format:

$0"Cr";$0"Dr"

Then you can copy the formula in C4 down as far as you need to.

Hope this helps.

Pete

On Feb 6, 10:35 pm, Matt wrote:
I'm trying to write a simple formula for a columnar Ledger account that has
a Dr Entry and a Credit entry. I want to show in the balance column the
amount in $'s and the fact if it is a Dr Balance or a Credit Balance.
Cell A2 and B2 would have the heading Debit and Credit, C2 would have the
balance heading.
Cel A3 has a value of $3000 and cell B3 a Value of $4000 Cell C3 would then
have a balance of $1000Cr. This formula would then need to be copied down the
column and self adjust for each entry.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default The If function

Okay, Matt - thanks for feeding back.

Pete

On Feb 7, 8:11*am, Matt wrote:
Pete Thank you the first solution seemed to work the best. I will look at the
second option tomorrow.

Thanks heaps



"Pete_UK" wrote:
In C3 you can use the formula:


=A3-B3


In C4 you can use the formula:


=C3+A4-B4


Highlight both these cells and click on Format | Cells | Number tab,
then select Custom, and in the panel type in this format:


$0"Cr";$0"Dr"


Then you can copy the formula in C4 down as far as you need to.


Hope this helps.


Pete


On Feb 6, 10:35 pm, Matt wrote:
I'm trying to write a simple formula for *a columnar Ledger account that has
a Dr Entry and a Credit entry. I want to show in the balance column the
amount in $'s and the fact if it is a Dr Balance or a Credit Balance.
Cell A2 and B2 would have the heading Debit and Credit, C2 would have the
balance heading.
Cel A3 has a value of $3000 and cell B3 a Value of $4000 Cell C3 would then
have a balance of $1000Cr. This formula would then need to be copied down the
column and self adjust for each entry.- Hide quoted text -


- Show quoted text -


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy of excel file not showing formulal/function in the function b oaallam Excel Discussion (Misc queries) 4 September 6th 07 01:20 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM
Nested IF Function, Date Comparing, and NetworkDays Function carl Excel Worksheet Functions 2 December 29th 04 09:57 PM


All times are GMT +1. The time now is 01:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"