+ Reply to Thread
Results 1 to 1 of 1

find if number is a match

Hybrid View

  1. #1
    Registered User
    Join Date
    09-28-2012
    Location
    boston
    MS-Off Ver
    Excel 2010
    Posts
    42

    find if number is a match

    Trying to find if the number entered in the input box "num_cmp" is => Cells(i, 2) AND <= Cells(i, 3) ? So basically if "num_cmp" is with the range of the numbers in Cells(i, 2)) or Cells(i, 3)) or an extact match of Cells(i, 2)) or Cells(i, 3)) . should be easy but I'm stuck?


    num_cmp = InputBox("Please enter number:")

    If num_cmp = "" Then
    
    Exit Sub
    End If
    
    
        i = 1
        num = 0
    
     Do While Not IsEmpty(Cells(i, 2))
           
            div = Cells(i, 2)
            
            lne = Cells(i, 3)
    Last edited by nikko50; 03-18-2013 at 03:13 PM.

+ 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