Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / October 2006

Tip: Looking for answers? Try searching our database.

IF STATEMENT - PLACEMENT OF VALUE IN THE CORRECT CELL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SSJ - 11 Oct 2006 16:19 GMT
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
SteveW - 11 Oct 2006 16:45 GMT
in Sheet2

Assume cell with net value in sheet1 is C3

in Sheet2

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

Steve

> Hello!
>
[quoted text clipped - 24 lines]
> Thanks
> SJ

Signature

Steve (3)

SSJ - 11 Oct 2006 16:51 GMT
Very simple! Thank you

SJ
----

in Sheet2

Assume cell with net value in sheet1 is C3

in Sheet2

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

Steve

> Hello!
>
[quoted text clipped - 24 lines]
> Thanks
> SJ

Signature

Steve (3)


Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.