Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
SSJ SSJ is offline
external usenet poster
 
Posts: 58
Default IF STATEMENT - PLACEMENT OF VALUE IN THE CORRECT CELL

Hello!

The situation is as follows:

Sheet #1 contains the following:

Tax Paid $120
Tax Collected $100
-----------------------------------------------------------
Net Payable / (Receivable) ($20)
[Tax Paid is deducted from Tax Collected]

Sheet #2 contains the following headings, which is a journal voucher:

Account No Description Debit Credit

I need to come up with an if statement to place the net value from sheet #1 under the correct column of debit or credit:

1) If the value is negative then the tax is receivable should be place under 'Debit', say cell number D2 as a positive number
2) If the value is positive then the tax is payable and should be placed under 'Credit', say cell number E2, as a positive number
3) If the value is equal to zero then both cells, D2 & E2, should be zero.

Thanks
SJ


  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 427
Default IF STATEMENT - PLACEMENT OF VALUE IN THE CORRECT CELL

in Sheet2

Assume cell with net value in sheet1 is C3

in Sheet2

D2 =if(Sheet1!C3<0,-Sheet1!C3,0
E2 =if(Sheet1!C30,Sheet1!C3,0)

Steve

On Wed, 11 Oct 2006 16:19:53 +0100, SSJ wrote:

Hello!

The situation is as follows:

Sheet #1 contains the following:

Tax Paid $120
Tax Collected $100
-----------------------------------------------------------
Net Payable / (Receivable) ($20)
[Tax Paid is deducted from Tax Collected]

Sheet #2 contains the following headings, which is a journal voucher:

Account No Description Debit Credit

I need to come up with an if statement to place the net value from sheet
#1 under the correct column of debit or credit:

1) If the value is negative then the tax is receivable should be place
under 'Debit', say cell number D2 as a positive number
2) If the value is positive then the tax is payable and should be placed
under 'Credit', say cell number E2, as a positive number
3) If the value is equal to zero then both cells, D2 & E2, should be
zero.

Thanks
SJ




--
Steve (3)
  #3   Report Post  
Posted to microsoft.public.excel.newusers
SSJ SSJ is offline
external usenet poster
 
Posts: 58
Default IF STATEMENT - PLACEMENT OF VALUE IN THE CORRECT CELL

Very simple! Thank you

SJ
----

"SteveW" wrote in message
news:op.tg9kp4a6evjsnp@enigma03...
in Sheet2

Assume cell with net value in sheet1 is C3

in Sheet2

D2 =if(Sheet1!C3<0,-Sheet1!C3,0
E2 =if(Sheet1!C30,Sheet1!C3,0)

Steve

On Wed, 11 Oct 2006 16:19:53 +0100, SSJ wrote:

Hello!

The situation is as follows:

Sheet #1 contains the following:

Tax Paid $120
Tax Collected $100
-----------------------------------------------------------
Net Payable / (Receivable) ($20)
[Tax Paid is deducted from Tax Collected]

Sheet #2 contains the following headings, which is a journal voucher:

Account No Description Debit Credit

I need to come up with an if statement to place the net value from sheet
#1 under the correct column of debit or credit:

1) If the value is negative then the tax is receivable should be place
under 'Debit', say cell number D2 as a positive number
2) If the value is positive then the tax is payable and should be placed
under 'Credit', say cell number E2, as a positive number
3) If the value is equal to zero then both cells, D2 & E2, should be
zero.

Thanks
SJ




--
Steve (3)


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
Help with this conditional IF statement C-Dawg Excel Discussion (Misc queries) 3 May 15th 06 06:01 PM
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
Instead of a negative number, I'd like to show zero... Dr. Darrell Excel Worksheet Functions 6 December 7th 05 08:21 PM
keep cell blank when false in IF statement ruthslaughter Excel Discussion (Misc queries) 2 November 22nd 05 06:15 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 05:38 AM.

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

About Us

"It's about Microsoft Excel"