+ Reply to Thread
Results 1 to 15 of 15

Help with Data Validation

  1. #1
    Registered User
    Join Date
    03-23-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    7

    Help with Data Validation

    Hi,

    I need some assistance with the following.

    I have a spreadsheet which i use as a price list.

    Within the price list is a selling price for maintenance which is a % of the license cost.

    There is 3 different types of maintenance, each being a percentage.

    I need to, with data validation have the ability to pick the maintenance option and it should automaticly populate the tab with the correct amount by taking the selling price and multiplying it by the %.

    No matter which one of the 3 maintenance options I pick it should automaticly change the value

    Percentage
    Gold 18%
    Platinum 25%
    Silver 16%

    So, If I select silver for example, C6 has to automaticly calculate 16% * A9 and populate this in C9. Or, if I pick Gold from the dropdown it has to multiply A9 * 18%

    Hope this helpsCopy of Book1.xlsx

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Help with Data Validation

    Hi and welcome to the forum.

    In C9, try this and copy down.

    =IF(B9>0;(A9*(INDEX($B$2:$B$4;MATCH(B9;$A$2:$A$4);0))))

    Change the semi-colons to gomma, if you have to do this.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor
    Join Date
    05-14-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    187

    Re: Help with Data Validation

    Hi,

    Check the attached file and see if it works for you

    Regards,

    Veejar
    Attached Files Attached Files

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Help with Data Validation

    ..a little modified...

    =IF(B9="";0;(A9*(INDEX($B$2:$B$4;MATCH(B9;$A$2:$A$4);0))))


    Note: Of course you have same result, with a little modifies veejar's formula.

    =IF(B8="";0;A8*VLOOKUP($B8;$A$1:$B$3;2;0))
    Last edited by Fotis1991; 03-23-2012 at 04:49 AM. Reason: Note:

  5. #5
    Registered User
    Join Date
    03-23-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Help with Data Validation

    Hi Fotis, thanks for the reply,

    My sheet is a little different as there are some confidential information.

    I have changed the colums now to reflect this.

    =IF(E9="";0;(D9*(INDEX($E$2:$E$4;MATCH(E9;$A$2:$D$4);0))))

    E=the old B
    D= the old A
    F= the old C

    The formula you pasted does not seem to work, did I miss something?

    Again, thanks for the help

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Help with Data Validation

    ...The formula you pasted does not seem to work, did I miss something?
    Yes

    IF(E9="";0;(D9*(INDEX($E$2:$E$4;MATCH(E9;$D$2:$D$4);0))))

  7. #7
    Registered User
    Join Date
    03-23-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Help with Data Validation

    Book2.xlsx:-) I am blond sometimes

    Tried that, but still does not like the formula.

    I have attached a separate spreadsheet where they are in the same columns

    hope this helps

  8. #8
    Forum Contributor
    Join Date
    05-14-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    187

    Re: Help with Data Validation

    Hi,

    You can also try using a vlookup function as shown in the attached sheet

    Regards,

    Veejar
    Attached Files Attached Files

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Help with Data Validation

    Why? See the example...
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    03-23-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Help with Data Validation

    Fotis you are a star SIR - the pasting i did only pasted values not formulas :-) you are a star

  11. #11
    Registered User
    Join Date
    03-23-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Help with Data Validation

    Hi Fotis,

    In true blond spirit I forgot to add the option of 0% if they do not want the maintenance option.

    I changed my formulas but it does not want to show 0

    =IF(E13="",0,(D13*(INDEX($E$2:$E$5,MATCH(E13,$D$2:$D$5),0))))
    Attached Files Attached Files

  12. #12
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Help with Data Validation

    Try this

    =IF(OR(E13="";E13="None");0;(D13*(INDEX($E$2:$E$5;MATCH(E13;$D$2:$D$5);0))))

  13. #13
    Registered User
    Join Date
    03-23-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Help with Data Validation

    Hi, That is one complicated formula, but does not work. I copied and pasted it to F13

  14. #14
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Help with Data Validation

    Ii works fine.

    Pls don't say so easily, that "this don't work"

    Test it, work with it, modify it...and then you can say it..
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    03-23-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Help with Data Validation

    Hi Fotis, works fine - not sure why it didn't work thanks for all your help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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