+ Reply to Thread
Results 1 to 4 of 4

Problem with multiple IF condition

  1. #1
    Registered User
    Join Date
    08-22-2012
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    3

    Post Problem with multiple IF condition

    I am trying to create a formula that looks at multiple cells for a text string, "Fatal Error." If that string is present in any of the cells it would replace the contents of the cell with text. If that string isn't present it would do a math calculation on those cells. I was able to make it work but only checking one cell:

    =IF(G31="Fatal Error","FATAL ERROR",(G14+G22+G29+G33+G38))

    Any ideas how to make this work?

  2. #2
    Registered User
    Join Date
    08-15-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Problem with multiple IF condition

    =IF(COUNTIF(31:31,"fatal error")>0,"FATAL ERROR",SUM(G14,G22,G29,G33,G38))

    You can change the 31:31 to specific cells if you want.

  3. #3
    Registered User
    Join Date
    08-22-2012
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    3

    Thumbs up Re: Problem with multiple IF condition

    Thank you. That solved my problem!

  4. #4
    Registered User
    Join Date
    08-22-2012
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Problem with multiple IF condition

    I have a variation that didn't work.

    =IF(COUNTIF((G16,G24,G31,G35,G40),"FATAL ERROR")>0,"FATAL ERROR",SUM(G16,U24,U31,G35,G40))

    Anytime one of the first set of cells has the text "fatal error" the field displays "#VALUE!" instead of the desired text "FATAL ERROR".

+ 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