+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Function with three variables

  1. #1
    Registered User
    Join Date
    10-28-2010
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    2

    Function with three variables

    I am trying to find out how to build a formula that will support three variables. I have a pricing schedule where we purchase pipe based on its length and condition. If the pipe is more than 15' and straight and round we are paying $300, If it is more than 15' and damaged we are paying $200, and if it is less than 15' we pay $100. I can figure out half of the equation by doing an IF function, but I can't figure out a formula that will calculate this for me each time. Please let me know if anyone knows a solution.

    Thanks!
    Last edited by NBVC; 11-02-2010 at 04:50 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: Function with three variables

    =IF(A1<15,100,IF(B1="Damaged",200,300))

    This assumes A1 contains length (in feet) and B1 contains "Damaged" or otherwise to identify the quality.
    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
    Registered User
    Join Date
    10-28-2010
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Function with three variables

    That worked perfect! I just changed the damaged/condition column portion of the formula:
    =IF(A1<15,100,IF(B1=0,300,200)) This way if there was anything written in the condition column it would insert 200 but if it was blank it would insert the 300. Thank you so much for your help!

+ 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