+ Reply to Thread
Results 1 to 6 of 6

Error using nested IF statements

Hybrid View

  1. #1
    Registered User
    Join Date
    12-20-2011
    Location
    Louisville, KY
    MS-Off Ver
    Excel 2010
    Posts
    3

    Error using nested IF statements

    Hi,

    I am having a hard time creating a formula that returns results based on multiple cells and differing options within the cells.

    In the attached example, in cell U3, I would like the formula to return 9.95 if the date in cell N3 DATEVALUE is >=6/29/10 and 8.95 if not.

    Not too hard so far, but I also want it return 4.95 if N3 DATEVALUE is >=6/29/10 and 4.50 if not AND if cell Q3 contains "Add Web to Existing Print" or "Combo Subscription"

    Here is an example of what I came up with: =IF(N3>=DATEVALUE("6/29/10"),9.95,8.95) + IF((AND(N3>=DATEVALUE(“6/29/10”)),4.95,4.50,(IF((OR(Q3=”Add Web to Existing Print”,”Combo Subscription”))))

    I've spent two full days looking at various sites for help.

    Thanks in advance
    Attached Files Attached Files
    Last edited by KTWoo; 12-20-2011 at 06:07 PM.

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Help with complex formula

    I am confused. If N3 >= 6/29/2010, then you want your result to be $9.95 or $4.95? or both value in a single cell?

  3. #3
    Registered User
    Join Date
    12-20-2011
    Location
    Louisville, KY
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Help with complex formula

    If N3 >= 6/29/2010, it would be 9.95 but if cell Q3 contains "Add Web to Existing Print" or "Combo Subscription" then 4.95. Not sure how to incorporate using AND/OR statements.
    Last edited by KTWoo; 12-20-2011 at 05:47 PM.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Error using nested IF statements

    Try
    =IF(OR(Q3={"Add Web to Existing Print","Combo Subscription"}),IF(N3>=DATEVALUE("6/29/10"), 4.95, 4.5),IF(N3>= DATEVALUE("6/29/10"), 9.95,8.95))
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    12-20-2011
    Location
    Louisville, KY
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Error using nested IF statements

    That does work, thank you!

    What sites/books can you recommend to improve my skills?

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Error using nested IF statements

    At the beginning of the Excel General Forum folder is a "sticky" thread which has a lot of good sites. Most of what I know I learned on this site. I read through the threads and when I come across a question which I find interesting or which I think I might use, I subscribe to that thread (if the answer isn't posted yet) or review the answer. I then try them out in a workbook (or the posters workbook if he/she provided one) and save it under an appropriate name. Hope that helps.

+ 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