+ Reply to Thread
Results 1 to 2 of 2

Evaluate a formula contained in a different cell

  1. #1
    Registered User
    Join Date
    03-12-2015
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Office 2010
    Posts
    8

    Evaluate a formula contained in a different cell

    I would like to set up a spreadsheet to be used for making price quotes and/or sales orders. The sheet would have pricing formulas defined for a number of different product types. I would like to be able to evaluate these pricing formulas wherever that product type is listed on the quote. The formula would have absolute references to the Base and Variable price in the definition, but a relative reference for the variable.

    My price formulas would look something like this:

    A B C D E
    1 Product Type Base Price Variable Price Variable Price
    2 Type A 200 50 =$B$2+$C$2*D2
    3 Type B 300 60 =$B$3+$C$3*D3

    The Sales order itself would look like this:

    A B C
    1 Product Type Variable Price
    2 Type A x =(evaluate price for chosen product type and variable)
    3 Type B y =(evaluate price for chosen product type and variable)
    4 Type B z =(evaluate price for chosen product type and variable)

    Note: I have gotten this concept to work with an exceedingly complex IF/ELSE formula. It is very difficult to add new price definitions for new products. Anyone have any ideas to make my life a little simpler?

    I've attached a spreadsheet containing working price definitions.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Evaluate a formula contained in a different cell

    I presume x y and z are meant to be numbers - if so you can use this formula in J4:

    =VLOOKUP(H4,$B$4:$C$5,2,0) + VLOOKUP(H4,$B$4:$D$5,3,0)*IF(ISNUMBER(I4),I4,0)

    then copy down.

    Hope this helps.

    Pete

+ 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. Data validation overwrites formula contained in same cell
    By jdhill in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-10-2013, 11:10 PM
  2. Evaluate formula defined in another cell
    By kevintu888 in forum Excel General
    Replies: 5
    Last Post: 06-11-2012, 09:44 AM
  3. Formula using text contained in a cell as criteria
    By Darik777 in forum Excel General
    Replies: 3
    Last Post: 10-20-2010, 10:03 AM
  4. Getting a range from an array formula contained in a cell
    By kayard in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-10-2007, 04:08 PM
  5. I Need a formula to evaluate a cell with + or - values
    By Bob in Oklahoma in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-31-2005, 11:05 AM

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