+ Reply to Thread
Results 1 to 10 of 10

Formula with multiple conditions, if met then apply various percentage formula

  1. #1
    Registered User
    Join Date
    04-01-2020
    Location
    Dublin, Ireland
    MS-Off Ver
    8
    Posts
    14

    Formula with multiple conditions, if met then apply various percentage formula

    Hi Guys,
    Hoping you can help out. I have attached a file. If conditions are met, I would like to apply a formula.
    eg B5,B7,B9 different options are selected from dropdown, a differing % will be applied depending on the options chosen. as per percent sheet.
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Formula with multiple conditions, if met then apply various percentage formula

    Your tables do not show how engine size is used to determine the %.

  3. #3
    Registered User
    Join Date
    04-01-2020
    Location
    Dublin, Ireland
    MS-Off Ver
    8
    Posts
    14
    Quote Originally Posted by 6StringJazzer View Post
    Your tables do not show how engine size is used to determine the %.
    Hi, the engine size is entered manually and then the table on percent sheet applies. Thanks

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Formula with multiple conditions, if met then apply various percentage formula

    There is nothing in the tables that indicates what % to use for commercial vehicles based on engine size. The table shows

    Car & 4x4 Derived Vans Light Commercial Vehicles Heavy Commercial Vehicles

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Formula with multiple conditions, if met then apply various percentage formula

    Here is the formula that takes care of Passenger cars. It will double in size to cover Commercial.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    04-01-2020
    Location
    Dublin, Ireland
    MS-Off Ver
    8
    Posts
    14

    Re: Formula with multiple conditions, if met then apply various percentage formula

    Thanks 6StringJazzer, that is super. You're right, I didn't consider the commercial vehicles. I will try and figure it out from your formula.

  7. #7
    Registered User
    Join Date
    04-01-2020
    Location
    Dublin, Ireland
    MS-Off Ver
    8
    Posts
    14

    Re: Formula with multiple conditions, if met then apply various percentage formula

    I tried to simplify the formula by taking out the IF B5=Passenger , and adding the commercial type vehicles to the ENGINE TYPE dropdown. However it tells me that I have entered too many arguments -
    =INDEX(IF(B9="2000<",Percent!$D$4:$D$7,Percent!$E$4:$E$7,Percent!$F$4:$F$7,Percent!$G$4:$G$7,Percent!$H$4:$H$7),MATCH($B$7&" Months",Percent!$C$4:$C$7,0))
    Attached Files Attached Files

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Formula with multiple conditions, if met then apply various percentage formula

    It is better design to use labeling consistently. This becomes cleaner if the labels in the dropdown all exactly match the labels in the table. See attached update.

    It's not really necessary but I made the second dropdown dependent on what was selected in the first one. Another way you could do it is to list all classes in the second dropdown, then you don't even need the first one anymore.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    04-01-2020
    Location
    Dublin, Ireland
    MS-Off Ver
    8
    Posts
    14

    Re: Formula with multiple conditions, if met then apply various percentage formula

    Thanks so much 6StringJazzer, I learnt so much from this. Works perfect.

  10. #10
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Formula with multiple conditions, if met then apply various percentage formula

    If your question has been answered please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved. Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this thread as solved..."

    If a member helped you solve your problem, consider adding to their reputation by clicking on the star icon addreputationiconsmall.jpg below their name.

+ 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. how to apply filter formula for multiple conditions
    By akshay6s in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-05-2020, 10:55 AM
  2. [SOLVED] Check Prices and apply markup percentage Formula
    By Bash66 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-14-2014, 09:38 PM
  3. [SOLVED] Apply formula only under certain conditions.
    By alexpsyched in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-02-2013, 01:16 PM
  4. How to apply a percentage formula across multiple cells/single worksheet
    By Hooliegirl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-01-2013, 09:20 AM
  5. Formula with several conditions to apply
    By DKAbi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-07-2012, 05:26 PM
  6. Formula with several conditions to apply
    By DKAbi in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 11-25-2012, 03:28 PM
  7. [SOLVED] Apply IF statement formula with multiple conditions
    By gtrstar in forum Excel General
    Replies: 10
    Last Post: 09-29-2012, 05:01 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