+ Reply to Thread
Results 1 to 4 of 4

function that accounts for two different text strings

Hybrid View

  1. #1
    Registered User
    Join Date
    02-12-2009
    Location
    oslo, Norway
    MS-Off Ver
    Excel 2010
    Posts
    45

    function that accounts for two different text strings

    hello,

    I want to make an if function that accounts for two text strings;


    =if(b3="tekst1" OR "tekst2";"";b4+b5)

    My problem is that I do not know how to tell exel the OR function.

    Anyone? thanks!

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: function that accounts for two different text strings

    Hi,

    Try this,

    =IF(OR(b3="tekst1";"tekst2");"";b4+b5)
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: function that accounts for two different text strings

    Try this:
    =IF(OR(B3={"tekst1","tekst2"}),"",B4+B5)
    or...a variation of that...
    =IF(OR(B3="tekst"&{1,2}),"",B4+B5)
    Does that help?
    Last edited by Ron Coderre; 03-26-2009 at 09:53 AM. Reason: Added another variation
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Registered User
    Join Date
    02-12-2009
    Location
    oslo, Norway
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: function that accounts for two different text strings

    thnx guys,

    thw following works form me;

    =HVIS(ELLER(B3={"tekst1";"tekst2"});"";B4+B5)


    note that ; = , in the english version

+ 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