+ Reply to Thread
Results 1 to 5 of 5

Combined 'and', 'if' and 'or' formula

  1. #1
    Registered User
    Join Date
    11-14-2013
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2007
    Posts
    7

    Combined 'and', 'if' and 'or' formula

    Hi,

    I'm looking for some help writing a formula. Below is what I am trying to find out.

    I want the formula to look at cell AN2 and if it says Contract I want it to return the value Contract.

    If it doesn't, I want it to look at cell AO2; which contains a lookup formula, and if the cell contains a word and not #N/A, I want it to return Out of Contract, otherwise it should return Non-Contract.

    This is probably quite easy for most but I can't wrap my brain around it despite several attempts!

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Combined 'and', 'if' and 'or' formula

    Try this...

    =IF(AN2="Contract",AN2,IF(AO2="","",IF(NOT(ISNA(AO2)),"Out of Contract","Non-Contract")))


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Combined 'and', 'if' and 'or' formula

    Hi
    Try this formula
    =IF(AN2="Contract","Contract",IF(ISERROR(AO2),"Non-Contract","Out of Contract"))
    Appreciate the help? CLICK *

  4. #4
    Registered User
    Join Date
    11-14-2013
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Combined 'and', 'if' and 'or' formula

    Thanks for trying Sixt Sense but I was still receiving an error message for some.

    AZ-XL, thank you very much, this formula has worked.

  5. #5
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Combined 'and', 'if' and 'or' formula

    You are welcome. Thanx for feedback

+ 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. [SOLVED] need a combined formula
    By moin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-21-2013, 11:33 PM
  2. [SOLVED] If isnumber combined with then formula?
    By kerrya98 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-24-2013, 02:56 PM
  3. MIN And MAX Combined Formula
    By Delta88 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-08-2008, 03:16 PM
  4. Text and formula combined?
    By brendan76 in forum Excel General
    Replies: 2
    Last Post: 02-12-2008, 06:13 AM
  5. [SOLVED] IF and MAX combined formula
    By holyman in forum Excel General
    Replies: 6
    Last Post: 06-30-2006, 08:40 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