+ Reply to Thread
Results 1 to 5 of 5

Embedding IF statements into IF statement

  1. #1
    Registered User
    Join Date
    10-15-2008
    Location
    North Carolina
    MS-Off Ver
    2016
    Posts
    31

    Embedding IF statements into IF statement

    Hey all-

    I am working on a sales agreement that outlines the line items and this has worked great.

    I also have a formula that states if the Billing State is NC then the customer is taxable. Here it is:

    =IF(C10="NC",L33,0)

    I also have a cell for tax exempt like this:

    Tax Exempt (Y/N): _________ (the blank being the next cell)

    Then I have another cell with the total for Taxable Sales like this:

    Taxable Sales: ________ (the blank being the next cell)

    Currently in the Taxable Sales blank (cell), I have a formula that states:

    =IF(C36="Y",0,L33)

    Basically if "N" is entered for the Exemption cell then the formula inserts the Total Sales into that cell. If it is "Y" then it inputs $0.00.

    What I am trying to do is combine these two. If the customer is in NC and is Tax Exempt then enter $0.00. If they are in NC and are NOT Tax Exempt, then enter the Total Sales.

    Please help! I have attached an example.

    Thanks,
    prefcomm
    Attached Files Attached Files

  2. #2
    Forum Contributor GuruWannaB's Avatar
    Join Date
    01-24-2008
    Location
    An hour due East of Cowtown Ohio
    MS-Off Ver
    2010
    Posts
    421

    Re: Embedding IF statements into IF statement

    From your question...Why is it necessary to identify if they are in NC...since you have the tax exempt question that is truly the identify for the Taxable Sales field and you already have it set for that...What if they aren't in NC...does it still matter if they are tax exempt or not?

    I guess what Im trying to ask...what if the customer is in OH...could the tax exempt question still matter - or does it only matter with NC?
    Last edited by GuruWannaB; 04-01-2009 at 05:19 PM.

  3. #3
    Forum Contributor GuruWannaB's Avatar
    Join Date
    01-24-2008
    Location
    An hour due East of Cowtown Ohio
    MS-Off Ver
    2010
    Posts
    421

    Re: Embedding IF statements into IF statement

    This is what you are asking for...but if the customer is NOT in NC...it won't matter what the tax exempt indicator is....

    If BOTH criteria (NC and TAX EXEMPT) are true...then = L33 otherwise 0.00

    Please Login or Register  to view this content.
    Although...I would think that if they are tax exempt...then it should be 0.00 instead of putting in a taxable sales amount...but my logic may be backwards...in anycase...your are wanting to look at an IF statement combined with an AND statement.
    Last edited by GuruWannaB; 04-01-2009 at 05:31 PM.
    I help because of the Pavlovian dog that resides in the inner me...so if you are happy with the results, please add to my reputation. It helps keep me motivated!



    Please mark your threads as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    10-15-2008
    Location
    North Carolina
    MS-Off Ver
    2016
    Posts
    31

    Re: Embedding IF statements into IF statement

    From your question...Why is it necessary to identify if they are in NC...since you have the tax exempt question that is truly the identify for the Taxable Sales field and you already have it set for that...What if they aren't in NC...does it still matter if they are tax exempt or not?

    I guess what Im trying to ask...what if the customer is in OH...could the tax exempt question still matter - or does it only matter with NC?
    You make a very valid point. It truly only matters if they are in NC. If they are not in NC then they are exempt anyway.

    This is what you are asking for...but if the customer is NOT in NC...it won't matter what the tax exempt indicator is....

    If BOTH criteria (NC and TAX EXEMPT) are true...then = L33 otherwise 0.00


    Code:
    =if(and(c10="NC",c36="Y"),l33,0)

    Although...I would think that if they are tax exempt...then it should be 0.00 instead of putting in a taxable sales amount...but my logic may be backwards...in anycase...your are wanting to look at an IF statement combined with an AND statement.
    You are correct as well - if they are tax exempt then it should be 0.00. Your logic is not backwards at all. LOL This formula worked with one change -

    Code:
    =if(and(c10="NC",c36="N"),l33,0)

    Thanks SO much!!
    prefcomm

  5. #5
    Forum Contributor GuruWannaB's Avatar
    Join Date
    01-24-2008
    Location
    An hour due East of Cowtown Ohio
    MS-Off Ver
    2010
    Posts
    421

    Re: Embedding IF statements into IF statement

    Glad I could help...if the issue is resolved...be sure to mark the post as [SOLVED].

    Good Luck

    GWB

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1