+ Reply to Thread
Results 1 to 5 of 5

Multiple IF AND function to assign discounts

  1. #1
    Forum Contributor
    Join Date
    10-18-2016
    Location
    Chicago, USA
    MS-Off Ver
    Office 365
    Posts
    220

    Red face Multiple IF AND function to assign discounts

    Hi All,

    Hope you are doing well!...I am trying to use multiple to assign discounts and the function is not working properly...Can you please help here..Attached the workbook

    Following is the function that I use

    =IF(AND(C5=" ",A5>0,A5<=0.05),0.1,IF(AND(C5=" ",A5>0.05),A5,IF(AND(C5=" ",A5<=0),0.1,C5)))

    I am trying to get the output in column B as

    if column A has >0 and <-0.05 then 0.1 provided Column C is blank

    if Column A has >0.05 then value in column A provided column C is blank

    If column A has <=0 then 0.1 provided column c is blank

    if column C is not blank then value in column C

    But in my output only last condition "if column C is not blank then value in column C" is working..can you please help here..



    Thanks,
    Arun
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Multiple IF AND function to assign discounts

    You are not testing for C5 being blank - you have this three times in your formula:

    C5=" "

    but it should be:

    C5=""

    with nothing between the quotes - you have a space, so you need to delete that (3 times) then copy your formula down.

    Hope this helps.

    Pete

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Multiple IF AND function to assign discounts

    "if column A has >0 and <-0.05 then 0.1 provided Column C is blank"

    That's not what it says in your formula - note the minus in your description above.

    Use this

    =IF(C5<>"",C5,IF(A5 <=0.05),0.1,A5))
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Multiple IF AND function to assign discounts

    Please try

    B2
    Please Login or Register  to view this content.
    Logic steps
    Please Login or Register  to view this content.
    Regards.
    Last edited by menem; 10-20-2019 at 05:30 AM. Reason: Add code tags

  5. #5
    Forum Contributor
    Join Date
    10-18-2016
    Location
    Chicago, USA
    MS-Off Ver
    Office 365
    Posts
    220

    Re: Multiple IF AND function to assign discounts

    Thanks Pete!

+ 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] Add multiple discounts in a cell
    By karstens in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-27-2018, 10:30 AM
  2. [SOLVED] Assign area to postcode from multiple arrays function
    By gingerbug in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-17-2015, 10:29 AM
  3. formula to work out cost including multiple discounts
    By robholding in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-31-2014, 08:54 PM
  4. multiple % discounts off a base $ price that do not cascade.
    By metromale2705 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-03-2014, 07:12 PM
  5. Replies: 0
    Last Post: 04-24-2013, 12:49 PM
  6. Replies: 11
    Last Post: 08-22-2011, 12:40 PM
  7. How do I create a formula for multiple levels of discounts?
    By bearkm02 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-12-2006, 05:15 PM

Tags for this Thread

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