+ Reply to Thread
Results 1 to 2 of 2

Use multiple criteria for a range

Hybrid View

  1. #1
    Registered User
    Join Date
    05-15-2012
    Location
    Oshawa, ON
    MS-Off Ver
    Excel 2010
    Posts
    86

    Use multiple criteria for a range

    Is there anyway I can have the following code use multiple numbers when executing the following procedure?

    HTML Code: 
    For example, I would like it to use not only "1100" but "1201" as well.

  2. #2
    Registered User
    Join Date
    06-11-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: Use multiple criteria for a range

    Dim prog As Long

    rcnt = Range("K" & Rows.Count).End(xlUp).Row

    For I = 4 To rcnt
    If Range("O" & I).Value = "1100" or Range("O" & I).Value = "1201" Then
    Range("Q" & I).Value = "15"
    Else
    Range("Q" & I).Value = ""
    End If
    Next

+ 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