+ Reply to Thread
Results 1 to 3 of 3

Add to previous price

  1. #1
    Registered User
    Join Date
    11-05-2008
    Location
    Florida
    Posts
    1

    Add to previous price

    I am working on a database for a store. For this store if a customer buys a shirt it is 14.00, If the customer wishes to have the shirt in color it is an additional 2.00, if they want in with long sleeves it is additional 3.00. I have all the information correct, I am just wondering what formula I use in the cells for color, sleeve, etc. to make this work? Thanks.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375
    Hi,

    there are several ways to solve this. It depends what input you expect in the columns for color and sleeve. If the user enters a Y or yes or something like that in column C for colour, then you could add another column next to it with a formula like

    =IF(C2="Y",2,0)

    and the same for sleeves. Then you just add up the columns with numbers.

    Or if you don't want extra columns, you could use a formula in your total column like below

    Column C has "y" for color, column D has "y" for sleeve, column B has standard price

    =B2+IF(C2="y",2,0)+IF(D2="y",3,0)

    Hope that helps

    Teylyn

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    You could also employ the suggestion above all in the one price cell, just eliminate the B column price and replace B2 with the price in the formula.
    Please Login or Register  to view this content.
    _________________
    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)

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