+ Reply to Thread
Results 1 to 6 of 6

If statement with 6 conditions

Hybrid View

miss_gg If statement with 6 conditions 04-08-2020, 05:20 AM
XLent Re: If statement with 6... 04-08-2020, 05:42 AM
miss_gg Re: If statement with 6... 04-08-2020, 06:34 AM
mgselin Re: If statement with 6... 04-08-2020, 07:09 AM
XLent Re: If statement with 6... 04-08-2020, 07:20 AM
mgselin Re: If statement with 6... 04-08-2020, 07:37 AM
  1. #1
    Registered User
    Join Date
    04-12-2018
    Location
    London
    MS-Off Ver
    Excel 10
    Posts
    13

    If statement with 6 conditions

    Hi there,

    I'm trying to build a report template that identifies the amount threshold based on category of project, and applies the discount to it.

    There are 3 categories: fee, production and travel

    The discount should only apply to amounts associated with fee.

    Current 'If' formula I have in there takes into account invoice amounts only.
    I can't seem to figure out how to make it check the credit notes (ie. minus figures) and apply the same logic.

    I've attached a sample sheet; tab 1 - discount info, tab 2 - sample report sheet

    Could you help me with formula on column I?
    Attached Files Attached Files

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,706

    Re: If statement with 6 conditions

    perhaps just use the ABS and SIGN to simplify?

    Formula: copy to clipboard
    I2: =IF($D2<>"Fee",0,LOOKUP(ABS($H2),{0,350000,750000,1500000},{0,5,6,7}%)*SIGN($H2))
    copied down

  3. #3
    Registered User
    Join Date
    04-12-2018
    Location
    London
    MS-Off Ver
    Excel 10
    Posts
    13

    Re: If statement with 6 conditions

    Thanks, I tried it but it doesn't seem to read the values for Fee?
    It shows as #REF!
    Attachment 671291

  4. #4
    Registered User
    Join Date
    04-06-2020
    Location
    Minnesota
    MS-Off Ver
    2013
    Posts
    15

    Re: If statement with 6 conditions

    Try this formula out -

    Formula: copy to clipboard
    =IF(D2="Fee",IF(H2>=1500000, 7%, IF(H2>=750000, 6%, IF(H2>=350000, 5%, IF(H2>=1, 0%, IF(H2<=-1000000,-7%,IF(H2<=-750000,-6%,IF(H2<=-350000,-5%))))))), H2*0%)


    That is my best guess at what you are looking for.
    Last edited by mgselin; 04-08-2020 at 07:31 AM. Reason: Mistake in original formula

  5. #5
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,706

    Re: If statement with 6 conditions

    Quote Originally Posted by miss_gg View Post
    Thanks, I tried it but it doesn't seem to read the values for Fee?
    refer attached - original sample with formula in place (I2)
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-06-2020
    Location
    Minnesota
    MS-Off Ver
    2013
    Posts
    15

    Re: If statement with 6 conditions

    Quote Originally Posted by XLent View Post
    refer attached - original sample with formula in place (I2)
    I like the use of "SIGN." I have never used that function before, nor did I know it existed.

+ 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. If/And statement with more than two conditions
    By peeweelee in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-30-2019, 08:04 PM
  2. Replies: 2
    Last Post: 07-09-2015, 04:25 PM
  3. [SOLVED] IF Statement Using Several Conditions
    By DDM64 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-28-2013, 09:46 PM
  4. Using if statement with two conditions
    By fionn_ in forum Excel General
    Replies: 5
    Last Post: 07-03-2012, 09:43 AM
  5. @if statement with several conditions
    By grettagirl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2012, 12:52 PM
  6. if statement with conditions
    By maacmaac in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-09-2009, 08:38 PM

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