+ Reply to Thread
Results 1 to 5 of 5

IF AND formula

Hybrid View

  1. #1
    Registered User
    Join Date
    08-21-2007
    Posts
    90

    IF AND formula

    I am having problems working the "and" conditons in to my if-then-else formula

    Here all all the conditions I want in one formula :

    IF C8 = "M" AND B8< 2, U8
    IF C8 = "M" AND B8 >=2, V8

    IF C8 = "B" AND B8<2, Y8
    IF C8 = "B" AND B8>=2, Z8

    IF C8 = "R", O8

    IF C8 = "P", R8

    ELSE = 0

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Here's one way by using some helper cells, then finding the MAX
    Attached Files Attached Files
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,700
    Try

    =IF(C8="R",O8,IF(C8="P",R8,IF(C8="M",IF(B8<2,U8,V8),IF(C8="B",IF(B8<2,Y8,Z8)))))

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Well thought out Daddylonglegs

  5. #5
    Registered User
    Join Date
    08-21-2007
    Posts
    90

    Thank You

    DaddyLongLegs,

    Thanks, exactly what I needed. I was an IF and a comma wrong.

    J

+ 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