+ Reply to Thread
Results 1 to 5 of 5

Formula to calculate price based on sheet2

  1. #1
    Forum Contributor
    Join Date
    04-21-2009
    Location
    USA
    MS-Off Ver
    2007
    Posts
    101

    Formula to calculate price based on sheet2

    Ok, I'm trying to modify the formula below and I'm not sure if it's even possible (although knowing you guys, I'm sure it is ). I've been using the following formula for a while and it works great, but I need to add to it if possible.

    =IF(ISNUMBER(MATCH(A2,'Price Overrides'!$A$2:$A$400,0)),ROUND(CHOOSE(MATCH(VLOOKUP(A2,'Price Overrides'!$A$2:$C$400,3,0),{"Add";"Subtract";"Divide By";"Multiply By";"Exactly"},0),C2+VLOOKUP(A2,'Price Overrides'!$A$2:$D$400,4,0),C2-VLOOKUP(A2,'Price Overrides'!$A$2:$D$400,4,0),C2/VLOOKUP(A2,'Price Overrides'!$A$2:$D$400,4,0),C2*VLOOKUP(A2,'Price Overrides'!$A$2:$D$400,4,0),VLOOKUP(A2,'Price Overrides'!$A$2:$D$400,4,0))*10+0.01,0)/10-0.01,C2)

    Currently the formula looks to the 'Price Overrides' sheet to calculate if it should Add, Subtract, Divide By or Multiply By the retail price. I would like to take this one step further and have the formula also calculate based on my choice of the Retail or Cost. In other words, to have the formula for example add $2 onto the Retail, or multiply by 2 on the Cost.

    An example of what I'm trying to achieve can be seen from the spreadsheet below:

    \1


    On the first tab (Scan Genius Import), Column 'D' is where the formula is being calculated. Column 'C' is my retail, and Column 'B' is my cost.

    One the second tab (Price Overrides), Column 'D' is my denominator, Column 'C' decides the equation (+,-,x, etc), and Column 'B' is the one I want to have added to my existing formula, so I can choose either the Retail or the Cost.


    Also attached below is the working spreadsheet!
    Attached Files Attached Files
    Last edited by aharvestofhealth; 12-31-2009 at 02:20 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula to calculate price based on sheet2

    Please download spreadsheets directly into the forum.... Don't use outside sources.

    Edit your post.. click Go Advanced, click the paperclip icon and then Browse and Upload the file.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    04-21-2009
    Location
    USA
    MS-Off Ver
    2007
    Posts
    101

    Re: Formula to calculate price based on sheet2

    Ok, thanks! Didn't know I could do that!

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula to calculate price based on sheet2

    Getting ugly... but try:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    04-21-2009
    Location
    USA
    MS-Off Ver
    2007
    Posts
    101

    Re: Formula to calculate price based on sheet2

    Perfect! Works exactly how I wanted! I don't know how you do it...anyway Happy New Year!

+ 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