Closed Thread
Results 1 to 3 of 3

What is wrong with this formula?

  1. #1
    Registered User
    Join Date
    01-31-2011
    Location
    Austin, TX
    MS-Off Ver
    Excel 2003
    Posts
    46

    What is wrong with this formula?

    --------------------------------------------------------------------------------

    =IF(AND(C1="YES",D2=1),(H2-(H2*.3)-95*.07142857),IF(AND(C1="NO",D2=1),(H2-(H2*.3)-70*.07142857),IF=(AND(C1="YES",D2=2),(H2*.85)-95,IF(AND(C1="NO",D2=2),(H2*.7)-70,IF(AND(C1="YES",D2=3),(H2*.6)-70,IF(AND(C1="NO",D2=3),(H2*.6)-95)))))))


    I don't know if the format is incorrect, obviously it is, but whether or not it's parenthesis or what, I have no idea. It's driving me crazy. Any help will be greatly appreciated, thanks.

  2. #2
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: What is wrong with this formula?

    Quote Originally Posted by ashncg View Post
    --------------------------------------------------------------------------------

    =IF(AND(C1="YES",D2=1),(H2-(H2*.3)-95*.07142857),IF(AND(C1="NO",D2=1),(H2-(H2*.3)-70*.07142857),IF=(AND(C1="YES",D2=2),(H2*.85)-95,IF(AND(C1="NO",D2=2),(H2*.7)-70,IF(AND(C1="YES",D2=3),(H2*.6)-70,IF(AND(C1="NO",D2=3),(H2*.6)-95)))))))


    I don't know if the format is incorrect, obviously it is, but whether or not it's parenthesis or what, I have no idea. It's driving me crazy. Any help will be greatly appreciated, thanks.
    You have a random "=" in the middle of the formula. Plus an extra parenthesis at the end, but Excel would auto-correct that.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: What is wrong with this formula?

    This thread has seen been duplicated and as such does not comply with Rule 5 of our forum rules.

    This thread will now be closed, you may continue in your other thread.

    Thread Closed.

Closed 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