+ Reply to Thread
Results 1 to 6 of 6

IF formula - 2 criteria

  1. #1
    Forum Contributor
    Join Date
    04-05-2013
    Location
    CT
    MS-Off Ver
    Excel 2010
    Posts
    360

    IF formula - 2 criteria

    How should i write this formula?

    If E6 = 1/2", AND G6=PVC-40 than = I6....(if not =0)

    E6 an G6 has to meet the criteria otherwise its 0.
    Last edited by adamheon; 03-18-2014 at 04:03 PM.

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

    Re: IF formula - 2 criteria

    Please Login or Register  to view this content.
    TMS: I forgot the bloody """

    If understand you correctly....not sure PVC-40 is a type of PVC or PVC Minus 40....
    Last edited by judgeh59; 03-18-2014 at 04:00 PM.
    Ernest

    Please consider adding a * if I helped

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

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,615

    Re: IF formula - 2 criteria

    If E6 = 1/2", AND G6=PVC-40 than = I6....(if not =0)

    Please Login or Register  to view this content.
    Note that, if the cell E6 actually has 1/2" with the double quote, you will need to double up in the formula.

    @judgeh59: I had to test it to check the format


    Regards, TMS
    Last edited by TMS; 03-18-2014 at 04:02 PM.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Contributor
    Join Date
    04-05-2013
    Location
    CT
    MS-Off Ver
    Excel 2010
    Posts
    360

    Re: IF formula - 2 criteria

    Thank you. Works perfect!

  5. #5
    Registered User
    Join Date
    06-07-2013
    Location
    WV USA
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: [SOLVED] IF formula - 2 criteria

    =IF(AND(LEFT(E6,3)="1/2",G6="PVC-40"),I6,0)

    the " after the 1/2" made it difficult that is why there is a left(e6,3) in there.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,615

    Re: [SOLVED] IF formula - 2 criteria

    You're welcome

+ 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] IF Formula returns #N/A even when criteria if criteria not met
    By Ellice16 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-11-2013, 10:51 PM
  2. [SOLVED] one formula value if critera A is met or a second formula value if criteria B is met
    By sland01 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-07-2013, 11:32 AM
  3. [SOLVED] Sumif Formula or Sumproduct Formula? Three Criteria.
    By oHUTCHYo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-28-2013, 10:50 AM
  4. SumIF formula with criteria is Text inside a Formula?
    By excellentlearner in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-25-2012, 06:40 PM
  5. Replies: 1
    Last Post: 05-16-2011, 05:00 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