+ Reply to Thread
Results 1 to 3 of 3

Nested FOR & AND Functions Error

  1. #1
    Registered User
    Join Date
    09-30-2014
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    1

    Nested FOR & AND Functions Error

    I am trying to complete an excel worksheet that completed pricing depending on various sizes, flavors, etc. In this particular instance the pricing is as follows:
    Regular - 15ml $5.00
    Black Flag - 15ml $6.00
    Regular - 30ml $10.00
    Black Flag - 30ml $12.00

    This is what I understood to work and it seems to be glitching somewhere.

    =IF(D17="15 ml"(AND(B17="Black Flag", "$6.00","5.00",IF(D17="30 ml"(AND(B17="Black Flag", "$12.00", "$10.00"))))))

    Any help is greatly appreciated. Thanks!

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Nested FOR & AND Functions Error

    Try this...

    =IF(D17="15 ml",IF(B17="Regular",5,IF(B17="Black Flag",6,"")),IF(D17="30 ml",IF(B17="Regular",10,IF(B17="Black Flag",12,"")),""))

    Format the result as Currency, 2 decimal places.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Cool Re: Nested FOR & AND Functions Error

    You can try this as well..
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Check the attached file...
    Attached Files Attached Files
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Too Many Nested if and functions HELP
    By chriswiec in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-30-2012, 09:43 PM
  2. Replies: 2
    Last Post: 02-01-2011, 06:51 PM
  3. nested functions
    By mortitia_uk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-05-2009, 08:39 AM
  4. Error Trapping Nested If Functions
    By Marie1uk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-06-2007, 09:21 PM
  5. Nested If/and Functions
    By Randy Johnson in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-05-2007, 08:46 AM

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