+ Reply to Thread
Results 1 to 8 of 8

how to add two if formula

  1. #1
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    how to add two if formula

    Individually both formula are working fine but How to implement both formula in single formula
    Please Login or Register  to view this content.
    i have tried something like this but not working
    Please Login or Register  to view this content.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,645

    Re: how to add two if formula

    Try this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: how to add two if formula

    Try it like this...

    =IF(COUNT(SEARCH({"TRE","MGW"},A1)),A1,"")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: how to add two if formula

    That won't work for the second SEARCH criteria, MGW.

    You'd have to do it like this:

    =IF(OR(ISNUMBER(SEARCH({"TRE","MGW"},A1))),A1,"")

  5. #5
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Re: how to add two if formula

    Hi, Tony
    Your solution is great. Thanks..

  6. #6
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Re: how to add two if formula

    Hi, Zbor
    your solution is not working, but i already got the solution from "Tony" is working fine for me.. thanks both of guys.

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: how to add two if formula

    You're welcome. Thanks for the feedback!

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,645

    Re: how to add two if formula

    Quote Originally Posted by nur2544 View Post
    Hi, Zbor
    your solution is not working, but i already got the solution from "Tony" is working fine for me.. thanks both of guys.
    Yes, I saw when I saw TV formula. I was writing without testing.
    But didn't edit since you got answer

+ 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