+ Reply to Thread
Results 1 to 12 of 12

IF Statement with AND

  1. #1
    Registered User
    Join Date
    01-07-2004
    Location
    Northern VA
    MS-Off Ver
    Excel 2010
    Posts
    7

    IF Statement with AND

    Hello,

    I am not very good when it comes to Excel and I'm hoping this will be an easy question for someone who knows Excel.

    I've attached an example Excel file.

    This is what I would like to accomplish. In Sheet 2 starting in Cell A2 have a formula or function that will do this:

    If in Sheet 1 "Team = Birds" and "Date Completed = blank" then display "Job Number"

    Thanks for any and all help!

    Q
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: IF Statement with AND

    In row 2

    =IF(AND(F2="Birds",G2=""),E2,"")

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    01-07-2004
    Location
    Northern VA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: IF Statement with AND

    Thank you Ace, that works when I paste it in cell H2 on the same worksheet but is there a way to have the same thing work from cell A2 in Sheet 2?

  4. #4
    Registered User
    Join Date
    06-28-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: IF Statement with AND

    Hi,

    Hope it works =IF(AND(F2>0,G2>0)," ",E2)

  5. #5
    Registered User
    Join Date
    01-07-2004
    Location
    Northern VA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: IF Statement with AND

    vijay_prabu_cwa thank you that works in the same sheet as well but not in sheet 2.

  6. #6
    Registered User
    Join Date
    01-07-2004
    Location
    Northern VA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: IF Statement with AND

    Also I've noticed that if I change "Team" to something other than Birds it doesn't change what is being returned.

  7. #7
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: IF Statement with AND

    In Sheet 2

    =IF(AND(Sheet1!F2="Birds",Sheet1!G2=""),Sheet1!E2,"")

  8. #8
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: IF Statement with AND

    it doesn't show which version of Excel your are using but here is another version

    Please Login or Register  to view this content.
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  9. #9
    Registered User
    Join Date
    01-07-2004
    Location
    Northern VA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: IF Statement with AND

    THANK YOU ACE! That works!

  10. #10
    Registered User
    Join Date
    01-07-2004
    Location
    Northern VA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: IF Statement with AND

    Thanks judgeh59, I'm using Excel 2010

  11. #11
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: IF Statement with AND

    nice...then the ISBLANK() could be used here and other places....you can also add that to your online info folks which syntax you have available....glad ACE could help....

    EDIT: I left off a few words....OOPS......good job at figuring that out....
    Last edited by judgeh59; 06-28-2013 at 04:01 PM. Reason: stupid

  12. #12
    Registered User
    Join Date
    01-07-2004
    Location
    Northern VA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: IF Statement with AND

    Ahhh I will change that now, thanks judgeh59.

+ 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