+ Reply to Thread
Results 1 to 2 of 2

Adjusting formulas to work with data vallidation drop down lists

  1. #1
    Registered User
    Join Date
    08-10-2016
    Location
    US
    MS-Off Ver
    365
    Posts
    70

    Adjusting formulas to work with data vallidation drop down lists

    See attached spreadsheet.

    I had my original formula as follows:

    N27 Original Formula:

    =IF(M27>0,(IF(K27>0,(IF(M27=1,(IF(K27*2<=500000,ROUNDUP(K27*2,-3)*LOOKUP(AO27,{0,65,70},{1,0.65,0.5}),500000*LOOKUP(AO27,{0,65,70},{1,0.65,0.5}))),(IF(M27=2,(IF(K27*2<=200000,ROUNDUP(K27*2,-3)*LOOKUP(AO27,{0,65,70},{1,0.65,0.5}),200000*LOOKUP(AO27,{0,65,70},{1,0.65,0.5}))))))),"Add Salary")),)

    This fomula states that: If M26 has something in it, if the Person is an executive do this, If the person is an employee do this

    Instead of having to input a 1 or 2 in Column M, I want to put in a drop down menu which I have in row 25….

    How can I adjust the formulas in Columns N & O to work with the new data validation drop down ???
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Adjusting formulas to work with data vallidation drop down lists

    The simplest edit:

    =IF(M26>0,(IF(K26>0,(IF(M26="Executive",(IF(K26*2<=500000,ROUNDUP(K26*2,-3)*LOOKUP(AO26,{0,65,70},{1,0.65,0.5}),500000*LOOKUP(AO26,{0,65,70},{1,0.65,0.5}))),(IF(M26="Employee",(IF(K26*2<=200000,ROUNDUP(K26*2,-3)*LOOKUP(AO26,{0,65,70},{1,0.65,0.5}),200000*LOOKUP(AO26,{0,65,70},{1,0.65,0.5}))))))),"Add Salary")),)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. Replies: 1
    Last Post: 06-12-2014, 05:34 PM
  2. Cell drop down lists won't work when new row is inserted.
    By alexander.small in forum Excel General
    Replies: 2
    Last Post: 12-16-2013, 11:09 AM
  3. some drop down lists work, some do not
    By silverdan7 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-12-2013, 03:24 AM
  4. Drop down lists: including formulas
    By keepyournose14 in forum Excel General
    Replies: 5
    Last Post: 11-28-2008, 09:55 AM
  5. drop down lists and formulas
    By smithswood in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-01-2006, 03:22 AM
  6. formulas and drop down lists
    By drwrbrts in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-05-2006, 07:10 PM
  7. Why don't my drop down lists work on web?
    By santiam in forum Excel General
    Replies: 0
    Last Post: 03-14-2005, 10:01 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