+ Reply to Thread
Results 1 to 8 of 8

Find the row number with a partial match to text in column A

  1. #1
    Forum Contributor
    Join Date
    06-25-2013
    Location
    Longview, TX
    MS-Off Ver
    MS365
    Posts
    338

    Find the row number with a partial match to text in column A

    Hello,
    I have a worksheet that I need to sort by column A. That's working fine, but then I need to take the block or rows where the text in A starts with IFS. The text in the rest of the cell will vary. So, I need to get the row number of the first and last occurence of IFS..... in column A.

    Most of the rows start with IFS, but there are always some that don't

    I have tried every syntax I can think of, googled and searched this forum until I'm blue in the face and can NOT solve this. I'm sure it's very simple, but, apparently, so am I, LOL!

    Here is my most recent attempt:

    Please Login or Register  to view this content.
    This one highlights the last row and says "Object Required"

    I will really appreciate any help on this!

    Jenny

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Find the row number with a partial match to text in column A

    Give this a go

    Please Login or Register  to view this content.
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Forum Contributor
    Join Date
    06-25-2013
    Location
    Longview, TX
    MS-Off Ver
    MS365
    Posts
    338

    Re: Find the row number with a partial match to text in column A

    Perfect! Thank you!
    (See, I knew I was just overlooking something. DUHHH!)

    Thanks very much; works great!

    Jenny

  4. #4
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Find the row number with a partial match to text in column A

    glad I could help and thanks for the rep points....

  5. #5
    Forum Contributor
    Join Date
    06-25-2013
    Location
    Longview, TX
    MS-Off Ver
    MS365
    Posts
    338

    Re: Find the row number with a partial match to text in column A

    One other question:
    Sometimes, but not always, there will be a row(s) that, after the sort, ends up before the IFS rows. I tried Cutting all the IFS rows and inserting them after row 1, but it won't let me do that. So, alternatively, is there a way to see if there are rows between row 1 and the first IFS row and, if found, insert them after the last IFS row?

    Thanks again,
    Jenny

    Never mind; I figured it out. Just had to add this:
    Please Login or Register  to view this content.
    Last edited by zookeepertx; 10-10-2014 at 01:21 PM.

  6. #6
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Find the row number with a partial match to text in column A

    so I'm making this up as I go along because I don't know what your data really looks like...so the first code was "Presorting" and this code is PostSorting...

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    06-25-2013
    Location
    Longview, TX
    MS-Off Ver
    MS365
    Posts
    338

    Re: Find the row number with a partial match to text in column A

    Awesome! Thanks!

    Jenny

  8. #8
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Find the row number with a partial match to text in column A

    no problem

+ 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. Search variable number of sheets to find partial match on name
    By carolmwondering in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-19-2014, 01:44 PM
  2. [SOLVED] Match partial text when partial text is not exact
    By NamiSama in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-21-2014, 07:18 PM
  3. Replies: 5
    Last Post: 02-13-2014, 05:37 PM
  4. Find Partial Text Match between Two Columns of data
    By samybelen in forum Excel General
    Replies: 1
    Last Post: 10-23-2013, 01:45 PM
  5. Replies: 16
    Last Post: 04-20-2010, 01:27 PM

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