+ Reply to Thread
Results 1 to 4 of 4

formula based on criteria

  1. #1
    Registered User
    Join Date
    09-07-2015
    Location
    UK
    MS-Off Ver
    2007
    Posts
    2

    formula based on criteria

    Hello,

    I'm pretty new to excel, and can do most basic functions. However can any one help to see if a the following can be achieved?

    I'm looking to use a sum formula based on certain condition. so For example I have 2 different customers who receive different discount. say customer 1 receives 10% and customer 2 receives 15%.

    is there any formula which would allow having a separate discount based on name inputted in cell b?
    A B C
    Sales Price - Customer - discount -
    1 - £10.00 - Customer 1 - In cell C is where I would have the formula to calculate - if cell b="customer1"Sales price*0.1, if cell b="customer2",Sales price*0.15

    many thanks,

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: formula based on criteria

    Here!

    =A2*VLOOKUP(B2,{"Customer1",0.1;"Customer2",0.15},2,0)

    Notice, I have hardcoded ranges.

    I would normally store this in an Excel Table, and use that as my Vlookup Range

    Customer1 10%
    Customer2 15%

    See the file attached..
    Attached Files Attached Files
    Last edited by NeedForExcel; 09-07-2015 at 07:20 AM.
    Cheers!
    Deep Dave

  3. #3
    Registered User
    Join Date
    09-07-2015
    Location
    UK
    MS-Off Ver
    2007
    Posts
    2

    Smile Re: formula based on criteria

    Fantastic. Many thanks for you swift help!!!

    Much appreciated.http://www.excelforum.com/images/icons/icon7.png

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: formula based on criteria

    Glad I could help!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Help with if formula based on 3 criteria
    By enhydra in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-16-2012, 09:17 PM
  2. Excel 2007 : IF Formula based on two criteria
    By Jackie414 in forum Excel General
    Replies: 2
    Last Post: 01-13-2012, 03:19 AM
  3. Formula to Sum based on 2 criteria
    By Ricardo9211 in forum Excel General
    Replies: 2
    Last Post: 12-28-2010, 02:09 PM
  4. Formula to get row# based on criteria
    By imt in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-12-2010, 03:51 PM
  5. If formula based on 3 criteria
    By jpruffle in forum Excel General
    Replies: 8
    Last Post: 07-14-2009, 05:47 PM
  6. Sum formula based on 2 criteria
    By hartski in forum Excel General
    Replies: 2
    Last Post: 02-21-2008, 11:48 AM
  7. Need formula based on criteria.
    By Me in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 02-06-2005, 09:06 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