+ Reply to Thread
Results 1 to 11 of 11

Help with formula and mutiple conditions

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-03-2009
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    184

    Help with formula and mutiple conditions

    Hi All,


    Need help with a formula for a cell that meets multiple condition.


    B2 = Fail, if any cells between C4:C70 = fail and C2 = Vacant else B2 = C2


    Thanks

    Madison

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Help with formula and mutiple conditions

    Hi,

    Maybe

    Formula: copy to clipboard
    =IF(AND(COUNTIF(C4:C70,"fail")>0,C2="Vacant"),"Fail",C2)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    12-03-2009
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: Help with formula and mutiple conditions

    Thank you Richard, that's working great.

    Madison

  4. #4
    Forum Contributor
    Join Date
    12-03-2009
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: Help with formula and mutiple conditions

    Turns out I forgot one more criteria.

    B2 = Fail, if any cells between C4:C70 = fail and C2 = Vacant else B2 = C2

    and

    B2 = PASS, if all cells between C4:C70 = PASS and C2 = Vacant else B2 = C2

    Thanks,

    Madison

  5. #5
    Forum Contributor
    Join Date
    12-03-2009
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: Help with formula and mutiple conditions

    anyone, much appreciated.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Help with formula and mutiple conditions

    Both those two criteria rely on C2 being Vacant, but what's the result if C2 is something other than vacant?

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Help with formula and mutiple conditions

    Assuming that C4:C70 is either "PASS" or "fail", try this:

    =IF(C2="Vacant",IF(COUNTIF(C4:C70,"fail"),"Fail","PASS"),C2)

  8. #8
    Forum Contributor
    Join Date
    12-03-2009
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: Help with formula and mutiple conditions

    I'm trying 63falcondude's formula now.

  9. #9
    Forum Contributor
    Join Date
    12-03-2009
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: Help with formula and mutiple conditions

    63falcondude's formula is working. Thanks to the both of you guys. Much appreciated. Madison.

  10. #10
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Help with formula and mutiple conditions

    Glad we could help.

+ 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. [Moved to VBA] INDEX MATCH Mutiple worksheet and returns mutiple row
    By joelimzh in forum Excel Programming / VBA / Macros
    Replies: 28
    Last Post: 11-20-2017, 01:33 AM
  2. [SOLVED] COUNTIF mutiple criteria in a single range, but with mutiple ranges.
    By Janbi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-19-2016, 06:31 AM
  3. Mutiple SUMIF conditions - help needed please
    By iantix in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-18-2016, 05:03 AM
  4. [SOLVED] Trouble calculating Overtime for Mutiple Rates and Employees [Many Conditions]
    By itsavvy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-24-2013, 08:48 AM
  5. [SOLVED] Count records that meet mutiple conditions in multiple sheets
    By RogerRangeRover in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-28-2012, 06:56 AM
  6. Conditional formating, mutiple variables, mutiple sheets
    By Adam_D in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2012, 06:47 AM
  7. Replies: 0
    Last Post: 01-06-2012, 07:09 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