+ Reply to Thread
Results 1 to 4 of 4

Thread: Using If statement with and/or

  1. #1
    Registered User
    Join Date
    02-13-2012
    Location
    MI
    MS-Off Ver
    Excel 2007
    Posts
    3

    Post Using If statement with and/or

    I need to create an 'if' statement that does the following...
    If E2>40, and F2 is MA or CA or GA or RI then"Check State" if not leave blank ("").
    Can you do an if statement with and and or in the same formula?
    Last edited by perryre; 02-14-2012 at 03:30 PM.

  2. #2
    Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    173

    Re: Using If statement with and/or

    im no expert but i would say that this should do your task

    =IF(AND(E2>40,OR(F2="MA",F2="CA",F2="GA",F2="RI")),"Check State","")

    i think

  3. #3
    Registered User
    Join Date
    02-13-2012
    Location
    MI
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Using If statement with and/or

    Thanks...I had the principle but the format was wrong - this works.

  4. #4
    Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    173

    Re: Using If statement with and/or

    glad you got it working

    if a my post helped can you hit the rep button (little star shape under the user details)

+ 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.2.0