+ Reply to Thread
Results 1 to 4 of 4

Need help building a complex(ish?) formula;

  1. #1
    Registered User
    Join Date
    02-01-2018
    Location
    Scarborough, England
    MS-Off Ver
    365
    Posts
    2

    Question Need help building a complex(ish?) formula;

    So basically - I have built a simple spreadsheet to display set prices at specific quantities for a supplier. I have added cells for the user to input different quantities between the set ones, for example, a price is set at 1000 in cell B20 and another for 1500 in B22. If I want to know what 1200 will cost I enter this into A21 using the formula set in B21 =(B22-B20)/(A22-A20)*(A21-A20)+B20.

    Now this works perfectly fine but that means I have a custom quantity row in between each set quantity row due to the difference in prices not being universal. Obviously this looks rather messy and I'd like a much cleaner version.
    From my knowledge should it not be possible to have a worksheet set up where I can just enter a quantity and it displays the price (using vlookup?).

    My idea is a formula that works along these lines;
    if cell value is great than (a) or less than(b) then ( subtract (acost) from (bcost) ) and divide by ( (b) minus (a)) then ( multiply cell value minus (a) ) plus (acost)

    Sorry if this is badly explained, if I can make it any clearer please let me know!

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Need help building a complex(ish?) formula;

    Yes that should be doable, but it's quite difficult to visualize your setup and possible solution.

    Can you attach a sample workbook?
    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    02-01-2018
    Location
    Scarborough, England
    MS-Off Ver
    365
    Posts
    2

    Re: Need help building a complex(ish?) formula;

    The example worksheet has three tabs;

    The first "Desired Calculator" is how I want it to look,
    The second "Set Prices" is the table I imagine would be used to draw data from using the vlookup function.
    The third "Current Calculator" is the table I am using at the moment.

    Just so you know what your looking at this is a table to show prices for specific printing processes over two sheet sizes.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Need help building a complex(ish?) formula;

    Please Login or Register  to view this content.

+ 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] Complex formula getting moer complex
    By Trebor777 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-02-2017, 01:39 PM
  2. Help Building a complex Macro
    By shane3200 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-04-2017, 12:00 PM
  3. building a revenue forecasting model and need calendar building help
    By miken33 in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 03-11-2013, 06:53 PM
  4. [SOLVED] building a complex formula with the IF statement and Mround function
    By echy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-04-2013, 12:24 PM
  5. [SOLVED] Building Complex Sales Projections - could use some help
    By stevecloudx in forum Excel General
    Replies: 8
    Last Post: 02-14-2013, 08:45 PM
  6. Replies: 2
    Last Post: 10-08-2012, 12:49 PM
  7. Replies: 0
    Last Post: 08-10-2006, 01:55 PM

Tags for this Thread

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