+ Reply to Thread
Results 1 to 4 of 4

Calculating a price per item with markup for two fields

  1. #1
    Registered User
    Join Date
    12-03-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    27

    Question Calculating a price per item with markup for two fields

    Hi everyone,
    Im having a real drama gettin my spreadsheet to do what i want it to, if you can help that would be so awesome

    Basically my spreadsheet look like this:

    C D E F G H
    itemA priceA itemB priceB %increase SalePrice


    I have two items, they can be sold seperatley or together.
    If I have an ItemA AND an ItemB this formula works to calculate the base sale price (per item befor i calculate a total)
    =(((C3/C3*D3)*G3/100)+D3)+(((E3/E3*F3)*G3/100)+F3)
    however if there is only one of the two items being sold, and one of these columns =0, my formula doesnt work
    Can anyone Help me decipher this conundrum and offer me some help?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Calculating a price per item with markup for two fields

    This is a bit clunky, but it works....
    =IF(C3="",0,(((C3/C3*D3)*G3/100)+D3))+IF(E3="",0,(((E3/E3*F3)*G3/100)+F3))

    If you have 2007 or later, you can shorten that to...
    =IFERROR((((C3/C3*D3)*G3/100)+D3),0)+IFERROR((((E3/E3*F3)*G3/100)+F3),0)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    12-03-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Calculating a price per item with markup for two fields

    Thank you so much, CHAMPION!

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Calculating a price per item with markup for two fields

    Happy to help and thanks for the feedback

+ 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. [SOLVED] How do you use a scaling price markup within a single cell?
    By Nutts32 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-17-2012, 11:55 PM
  2. Margin/price markup as %
    By andycannon in forum Excel General
    Replies: 5
    Last Post: 06-17-2010, 06:30 AM
  3. Replies: 2
    Last Post: 06-02-2010, 03:34 PM
  4. Price List markup with multiple variables
    By YT2009 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-12-2009, 04:16 PM
  5. Calculating Markup For Retail Price
    By gaspower in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-13-2007, 07:16 PM

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