Closed Thread
Results 1 to 4 of 4

Discount Formula

  1. #1
    Dave
    Guest

    Discount Formula

    A1 is Price
    A2 we would enter letters A - G
    A3 If A2 is A multiply A1 by 50%
    If A2 is B multiply A1 by 55%
    etcetera
    I Can't seem to create a formula that works.
    --
    Dave1125

  2. #2
    Dominic
    Guest

    RE: Discount Formula

    Dave,

    I would probably use a Vlookup table to accomplish this.

    For example:

    G1: A
    G2: B
    G3: C
    etc.

    H1: .5
    H2: .55
    H3: .6
    etc.

    A3: =A1 * VLookup(A2,G1:H7,2,False)

    Does that work?

    "Dave" wrote:

    > A1 is Price
    > A2 we would enter letters A - G
    > A3 If A2 is A multiply A1 by 50%
    > If A2 is B multiply A1 by 55%
    > etcetera
    > I Can't seem to create a formula that works.
    > --
    > Dave1125


  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    If each letter increases the % by 5 as per your example...

    =A1*(0.5+0.05*(CODE(A2)-65))

  4. #4
    Dominic
    Guest

    Re: Discount Formula

    Nice.



    "daddylonglegs" wrote:

    >
    > If each letter increases the % by 5 as per your example...
    >
    > =A1*(0.5+0.05*(CODE(A2)-65))
    >
    >
    > --
    > daddylonglegs
    > ------------------------------------------------------------------------
    > daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
    > View this thread: http://www.excelforum.com/showthread...hreadid=542299
    >
    >


Closed 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