+ Reply to Thread
Results 1 to 4 of 4

[solved] Recognize the astirisk * as a character and not a random

  1. #1
    Forum Contributor
    Join Date
    01-06-2011
    Location
    cleveland
    MS-Off Ver
    Excel 2007
    Posts
    225

    [solved] Recognize the astirisk * as a character and not a random

    im working on a spreadsheet to manage some IP addresses and ive run into something that i cant seem to do (non VBA)

    im trying to set up a statement that if the cell contains any asterisks (such as 192.***.***.** or 212.***.***.** to name a few), to display a 0 in an adjacent cell, otherwise display the original ip address.

    but as the asterisk reads as a placeholder instead of a character i cant figure out how to code around this and every number that begins 192 and contains nothing but asterisks (a large number of cells) - are all being incorrectly processed.

    anybody have a simple solution?
    Last edited by kamelkid2; 10-28-2011 at 09:47 AM.

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Recognize the astirisk * as a character and not a random

    Hi,

    try to put a tilde ~ (alt+126) before the asterisk in the formulae


    I've tried also a formula like the following (no tilde):

    =IF(ISNUMBER(FIND("*",A2)),0,A2)



    Hope it helps

    Regards
    Last edited by canapone; 10-28-2011 at 09:44 AM. Reason: Correction and regards

  3. #3
    Forum Contributor
    Join Date
    01-06-2011
    Location
    cleveland
    MS-Off Ver
    Excel 2007
    Posts
    225

    Re: Recognize the astirisk * as a character and not a random

    awesome. both worked great (i went with the second in the end)

    just made my day a lot easier. thank you so much

  4. #4
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: [solved] Recognize the astirisk * as a character and not a random

    Hi, thank you for the feedback.

    I was to write tilde is very convenient using simple filters:

    Example, contains "~*" to filter all the strings containing asteriks.

    Regards

+ 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