+ Reply to Thread
Results 1 to 8 of 8

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

  1. #1
    Registered User
    Join Date
    02-02-2008
    Posts
    78

    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
    Valued Forum Contributor Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    2,297

    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.

    I am proud that i am Greek.

    Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?

    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.

    Please,mark your thread [SOLVED] if you received your answer.


    My Avadar picture, is from Athens Acropolis.
    http://www.theacropolismuseum.gr

    http://www.visitgreece.gr/

  3. #3
    Forum Contributor
    Join Date
    08-22-2011
    Location
    Auckland
    MS-Off Ver
    Excel 2010
    Posts
    132

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

    Hi toplisek
    If I understood correctly
    =IF(RIGHT(A1,4)=".com",20,0)
    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
    Registered User
    Join Date
    02-02-2008
    Posts
    78

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

    Quote Originally Posted by Philb1 View Post
    =IF(RIGHT(A1,4)=".com",20,0)
    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
    Forum Contributor
    Join Date
    08-22-2011
    Location
    Auckland
    MS-Off Ver
    Excel 2010
    Posts
    132

    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
    Registered User
    Join Date
    02-02-2008
    Posts
    78

    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 Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,790

    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 a dabbler in Cisco
    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
    Registered User
    Join Date
    02-02-2008
    Posts
    78

    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.2.0