+ Reply to Thread
Results 1 to 5 of 5

Finding Text In a Range

  1. #1
    Forum Contributor
    Join Date
    11-11-2012
    Location
    Muscat, Oman
    MS-Off Ver
    Office 365
    Posts
    521

    Finding Text In a Range

    Dear Experts,

    I am looking for some help to write a code which will look for text “20PC” anywhere in the cell in range F to I for each row in the worksheet if found in any cell then In column S put “Promotion” else “Non Promotion” .


    Best Regards/VKS

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Finding Text In a Range

    Try this:

    Please Login or Register  to view this content.

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Finding Text In a Range

    Hi, VKS,

    define the column with the longest entries (here assumed to be Column A) for the number of rows:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  4. #4
    Forum Contributor
    Join Date
    11-11-2012
    Location
    Muscat, Oman
    MS-Off Ver
    Office 365
    Posts
    521

    Re: Finding Text In a Range

    Thanks a lot for your Help Stnkynts you have my Rep for this.

  5. #5
    Forum Contributor
    Join Date
    11-11-2012
    Location
    Muscat, Oman
    MS-Off Ver
    Office 365
    Posts
    521

    Re: Finding Text In a Range

    Thanks a lot for your Help HaHobe. You have my Rep for this.
    I think I also must share that my data has 300,000 plus rows and second option was bit faster than first.

+ 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. Finding the range of cells that contain specific text
    By WerdnaSbbig in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-13-2012, 10:33 AM
  2. Finding and converting text in a range
    By Rhapsodie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-11-2009, 03:57 PM
  3. Finding Text in a range
    By vikas.bhandari in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-29-2006, 11:13 AM
  4. Functions- Finding and counting specified text in cell range
    By holliedavis in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-24-2006, 04:30 PM
  5. Finding the Excat text in a range
    By schoujar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-26-2005, 01:46 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