+ Reply to Thread
Results 1 to 8 of 8

How to set value if there is found some word?

  1. #1
    Forum Contributor
    Join Date
    02-02-2008
    Location
    EU
    MS-Off Ver
    MS Excel 2007 Professional version
    Posts
    214

    How to set value if there is found some word?

    How to set value if there is found some word?

    In example: I have column with word .COM
    I like to set value in another column if there is found .COM like 20 USD.

    Is this possible to achieve IF sentence?

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to set value if there is found some word?

    Hi

    If i understoond well your point,then,
    You can try this:

    =IF(A1=".COM";".COM like 20 USD.";"")

    iS THIS WHAT ARE YOU LOOKING FOR?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Valued Forum Contributor
    Join Date
    08-22-2011
    Location
    Auckland
    MS-Off Ver
    Excel 2019
    Posts
    716

    Re: How to set value if there is found some word?

    Hi toplisek
    If I understood correctly
    Please Login or Register  to view this content.
    You can have whatever you like in the cell & if it ends with .com you will get a result, or a 0 if it's missing. If you don't want the 0, substitute it with ""
    Cheers

  4. #4
    Forum Contributor
    Join Date
    02-02-2008
    Location
    EU
    MS-Off Ver
    MS Excel 2007 Professional version
    Posts
    214

    Re: How to set value if there is found some word?

    Quote Originally Posted by Philb1 View Post
    Please Login or Register  to view this content.
    This is correct way. Issue is that it sounds an error when input for this formula.
    Excel refuses to show 20 as an error inside function.
    What is wrong? Do you have working excel with this function to test input?

  5. #5
    Valued Forum Contributor
    Join Date
    08-22-2011
    Location
    Auckland
    MS-Off Ver
    Excel 2019
    Posts
    716

    Re: How to set value if there is found some word?

    Hi Topsilek
    Have a look at the file attached
    Cheers
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    02-02-2008
    Location
    EU
    MS-Off Ver
    MS Excel 2007 Professional version
    Posts
    214

    Re: How to set value if there is found some word?

    This works. Thanks. Just this. How to set OR between different IF sentences as it is quite complex.
    =IF(RIGHT(R3;4)=".com";$W$9;"0");IF(RIGHT(R3;4)=".net";$X$9;"0")

    Notice .com and .net

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to set value if there is found some word?

    =IF(RIGHT(R3;4)=".com";$W$9;IF(RIGHT(R3;4)=".net";$X$9;"0"))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  8. #8
    Forum Contributor
    Join Date
    02-02-2008
    Location
    EU
    MS-Off Ver
    MS Excel 2007 Professional version
    Posts
    214

    Re: How to set value if there is found some word?

    This is great. Thanks.

+ 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