+ Reply to Thread
Results 1 to 5 of 5

Need to search numbers in a list

  1. #1
    Registered User
    Join Date
    02-05-2014
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    4

    Need to search numbers in a list

    Hi,

    I need to see if either of the two numbers exist in a list and if yes, then perform a function accordingly. The exact case is if 0 or "NA" exist in a list in range A1:A20, then I need to print message box with message that "Either of the two numbers exist". Not really sure how to write a small code in visual basic to do this. Any help would be greatly appreciated.

    Thanks.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Need to search numbers in a list

    Is the "NA" text or an error result from a formula e.g. #N/A
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    02-05-2014
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Need to search numbers in a list

    Its a text here

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Need to search numbers in a list

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-06-2014
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Need to search numbers in a list

    Something like this?


    Please Login or Register  to view this content.
    Last edited by KratjeBier2; 02-06-2014 at 02:52 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Search Group of Numbers in Cel Rangel and Highligh matched numbers.
    By david gonzalez in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-24-2013, 01:07 AM
  2. Search Multiple Worksheets Against List of Non-Exact Search Criteria?
    By thump4r in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-17-2010, 03:46 PM
  3. List Search Time & Then List Next Search Results on Next Available Line
    By R_S_6 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2009, 09:39 AM
  4. Replies: 0
    Last Post: 06-05-2006, 09:55 PM
  5. Replies: 2
    Last Post: 05-11-2006, 09:20 AM

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