+ Reply to Thread
Results 1 to 3 of 3

Combining Multiple if statements using logical operators

  1. #1
    Registered User
    Join Date
    01-24-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    1

    Combining Multiple if statements using logical operators

    Hello,

    I am working on a spreadsheet that compares volume weight to weight and based on the values the formula calculates a cost. Conditions are as follows:

    a)if weight is greater than volume weight, then multiply weight by 4.75
    b)if weight is greater than volume weight but, less than or equal to 2 then the value is 10
    c)if volume weight is greater than weight, then multiply volume weight by 4.75
    d)if volume weight is greater than weight but, less than or equal to 2 then the value is 10

    Where A2 is weight and F2 is volume weight in the spreadsheet:

    IF(A2>F2, A2*4.75, F2*4.75)
    IF(A2<=2, 10, A2*4.75)
    IF(F2<=2, 10, F2*4.75)

    How can I combine these three statements in to one cell to calculate the appropriate cost? Thanks for your assistance.

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Combining Multiple if statements using logical operators

    can you try this one.

    =IF(OR(A2<=2,F2<=2),10,MAX(A2,F2)*4.75)
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    07-19-2010
    Location
    Bucharest
    MS-Off Ver
    Office 2007
    Posts
    29

    Re: Combining Multiple if statements using logical operators

    To be honest, your verbal description on a,b,c,d is not matching what you did in your formulas. Based on what I understood from your verbal description try following;

    =IF(A2>F2,IF(A2-F2<=2,10,A2*4.75),IF(F2-A2<=2,10,F2*4.75))

    Hope this helps.

    tac

+ 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. Replies: 2
    Last Post: 05-13-2013, 02:41 AM
  2. [SOLVED] Can logical operators be used within Conditional Formatting?
    By Rumpa Biswas in forum Excel General
    Replies: 8
    Last Post: 12-03-2012, 03:23 AM
  3. Multiple Logical Operators
    By bluesstruggler in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-22-2011, 09:27 PM
  4. Syntax for Logical Operators to Limit Input?
    By DCSwearingen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-09-2006, 11:14 AM
  5. [SOLVED] Logical Function - Multiple IF statements
    By vnsrod2000 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-04-2005, 08:06 PM

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