+ Reply to Thread
Results 1 to 11 of 11

Creating IF formulas with parameters from 2 drop down menus

  1. #1
    Registered User
    Join Date
    07-16-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    5

    Creating IF formulas with parameters from 2 drop down menus

    Hey Room
    I am inputting a formula where I have 2 IF's. The first, based on the dropdown menu titled "Age" has dropdowns of '18-34' and '35+'. The answer to the formula will have different parameters if one or the other is chosen.

    The second dropdown box then multiplies the result as a percentage.
    It's values are:
    '0-30%'
    '31%-60%'
    '61%-75%+'

    So if dropdown box #1 selection is "18-34" then the formula is:
    B10=(B1*627)+(B1*B6*0.155)*3

    If dropdown box #1 selection is "35+" then the formula is:
    B10=(B1*627)+(B1*B6*0.155)+(B1*480)*3

    The second dropdown box then also comes into play:
    If '0-30%' is selected, then the result is B10*0.3
    '31%-60%' is selected, then the result is B10*0.6
    '61%-75%+' is selected, then the result is B10*0.75

    Help!!

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Creating IF formulas with parameters from 2 drop down menus

    your example has B5?

    =SUM((B5*627)+(B5*B6*0.155))
    should B5 be b1? or vice versa

    just to be clear

    is
    35+ is actually (1440 * b1) +(B1*627)+(B1*B6*0.155)
    < 35 is [(B1*627)+(B1*B6*0.155) ]x 3

    and then your result from above then x 0.3 or 0.6 or 0.75
    Last edited by humdingaling; 07-16-2013 at 03:46 AM.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    07-16-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    5

    Re: Creating IF formulas with parameters from 2 drop down menus

    My apologies... there is no B1

    Formulas should read B5

    35+ formula isn't 1440*B5... see revision below with added parenthesis... seeing why I need help now!!

    Formula when 35+ is selected is:
    B10=((B5*627)+(B5*B6*0.155)+(B5*480))*3

  4. #4
    Registered User
    Join Date
    06-08-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Creating IF formulas with parameters from 2 drop down menus

    Hi KamOnExcel,

    copy and past this formula in B10......

    =IF(B3="0-30%",IF(B2="<35",(B5*627)+(B5*B6*0.155)*3,(B5*627)+(B5*B6*0.155)+(B5*480)*3)*0.3,IF(B3="31%-60%",IF(B2="<35",(B5*627)+(B5*B6*0.155)*3,(B5*627)+(B5*B6*0.155)+(B5*480)*3)*0.6,IF(B3="61%-75%",IF(B2="<35",(B5*627)+(B5*B6*0.155)*3,(B5*627)+(B5*B6*0.155)+(B5*480)*3)*0.75,"")))

    Best of Luck
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-16-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    5

    Re: Creating IF formulas with parameters from 2 drop down menus

    Thanks mate - what a legend!!

    Ive just tested it and it all works except for:
    1. No values for 61-75% coming up
    2. I think the 35+ calculations are missing the *3 (these figures should always be greater than the 18-34 figures)

    Thanks again...

    My job tomorrow - sit down and try to unpack what you did and work this mother out!!

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Creating IF formulas with parameters from 2 drop down menus

    let me check again
    so under 35 is
    (B5*627)+(B5*B6*0.155)*3
    or that whole thing x 3?

  7. #7
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Creating IF formulas with parameters from 2 drop down menus

    anyways here is my solution
    basically vlookup on first dv x vlookup on second dv
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    07-16-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    5

    Re: Creating IF formulas with parameters from 2 drop down menus

    under 35 is
    ((B5*627)+(B5*B6*0.155))*3

    over 35 is
    ((B5*627)+(B5*B6*0.155)+(B5*480))*3

    So it is the whole thing x3

    To test:
    when B5=100 and B6=60000

    <35 and 0-30% selected B10 should = 893,430 (297,810x3)

    <35 and 31-60% selected B10 should =1,786,860 (595,620x3)

    <35 and 61-75% selected B10 should =2,233,575 (744,525x3)

    35+ and 0-30% selected B10 should =936,630 (312,210x3)

    35+ and 31-60% selected B10 should =1,873,260 (624,420x3)

    35+ and 61-75% selected B10 should =2,341,575 (780,525x3)

    Really appreciate your efforts with this btw

  9. #9
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Creating IF formulas with parameters from 2 drop down menus

    ok there is error in b15
    was picking up b1
    change it to =((B5*627)+(B6*B5*0.155))*3
    and the whole thing should work

    matched it with your test results
    Attached Files Attached Files
    Last edited by humdingaling; 07-16-2013 at 10:55 PM.

  10. #10
    Registered User
    Join Date
    07-16-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    5

    Re: Creating IF formulas with parameters from 2 drop down menus

    Humdingaling you are a legend!!

  11. #11
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Creating IF formulas with parameters from 2 drop down menus

    glad to help

    Thanks for the rep

+ 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. Creating A Report with 5 drop down menus
    By SakebR in forum Excel General
    Replies: 6
    Last Post: 01-27-2011, 12:04 PM
  2. Creating dependent drop-down menus
    By ajxxx in forum Excel General
    Replies: 1
    Last Post: 11-18-2008, 12:35 AM
  3. Creating a spreadsheet with drop down menus..
    By 85jt11 in forum Excel General
    Replies: 5
    Last Post: 06-24-2008, 11:14 AM
  4. Creating drop-down menus to source Chart?
    By lak556 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-01-2006, 12:30 PM
  5. Creating Buttons to navigate and drop down menus
    By ryan_dude in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 12-22-2005, 07:55 AM

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