+ Reply to Thread
Results 1 to 3 of 3

If a string contains @

  1. #1
    Registered User
    Join Date
    01-15-2009
    Location
    england
    MS-Off Ver
    Excel 2010
    Posts
    37

    If a string contains @

    Hi there.
    I am trying to write in VB some code that will enter a number in a column if a cell has some data in it and one character is an @.
    Please see attached spreasheet for idea.
    Thanks

    Mark
    Attached Files Attached Files

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,260

    Re: If a string contains @

    You could just use a formula in column AD:
    =IF(ISNUMBER(FIND("@",O2)),1,0)

    If you actually need VB, then try:
    Please Login or Register  to view this content.
    Last edited by romperstomper; 09-30-2009 at 08:47 AM. Reason: Added code version.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    01-15-2009
    Location
    england
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: If a string contains @

    Thanks for that.

    All sorted!

    Mark

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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