+ Reply to Thread
Results 1 to 5 of 5

If Than formula

Hybrid View

  1. #1
    Registered User
    Join Date
    11-28-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    If Than formula

    How do I create an If Than formula? For example:

    If a contractor is going to paint your house, he has two methods of appling the paint 1. roller 2. spray. Each method has its on set of steps. How can I create a forumuls that will calculate the correct cells based on the application method used?

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: If Than formula

    IF statements follow this general pattern
    =IF(Logical statement which = true or false, if true do this, if false do this)
    So
    Let's say you're going to put either roller or spray in cell A1. If we use a roller, then we multiply the gallons of paint in cell A3 * 2, if we are using a roller, then we multiply the gallons of paint in A3 * 1.5.
    Our Formula can read
    = IF(A1 = "roller", A3* 2, A3 * 1.5)
    or
    =IF(A1 = "spray", A3 * 1.5, A3 *2)
    Both would give the same answer.
    Does that help?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    11-28-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: If Than formula

    Quote Originally Posted by ChemistB View Post
    IF statements follow this general pattern
    =IF(Logical statement which = true or false, if true do this, if false do this)
    So
    Let's say you're going to put either roller or spray in cell A1. If we use a roller, then we multiply the gallons of paint in cell A3 * 2, if we are using a roller, then we multiply the gallons of paint in A3 * 1.5.
    Our Formula can read
    = IF(A1 = "roller", A3* 2, A3 * 1.5)
    or
    =IF(A1 = "spray", A3 * 1.5, A3 *2)
    Both would give the same answer.
    Does that help?
    BRILLLIANT!!! This is exactly what I wanted to know.

    Thanx!!!

    Steve

  4. #4
    Registered User
    Join Date
    11-28-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Wink Re: If Than formula

    BRILLLIANT!!! This is exactly what I wanted to know.

    Thanx!

    Steve

  5. #5
    Forum Contributor
    Join Date
    11-05-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    229

    Re: If Than formula

    To learn more about the IF formula, go here.
    Taming the Excel dragon... www.TheExcelphile.com

+ 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