+ Reply to Thread
Results 1 to 6 of 6

find, if match, then cut, offset. if not match, then cut and offset

  1. #1
    Registered User
    Join Date
    04-10-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    76

    find, if match, then cut, offset. if not match, then cut and offset

    Hi guys,

    I've got one issue that I can figure out for three days. Of got a sheet with 4 columns. What I want is that the sheet searches for string Prov in column B. If he finds it (For example in B7), then he needs to match A7 with A6. If there's a match, than he needs to cut the whole 7th row and place it in F6 (offset 4,-1).

    If he finds the the word Prov in column B but doesn't get a match between B7 and B6, then he needs to cut from A7 to D7 and past in F7.

    I hope that it's clear. I've added an example to the post.

    Thanks guys.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: find, if match, then cut, offset. if not match, then cut and offset

    Try this:
    Please Login or Register  to view this content.

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

    Re: find, if match, then cut, offset. if not match, then cut and offset

    Another one...

    Please Login or Register  to view this content.
    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.

  4. #4
    Registered User
    Join Date
    04-10-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: find, if match, then cut, offset. if not match, then cut and offset

    Quote Originally Posted by StephenR View Post
    Try this:
    Please Login or Register  to view this content.
    I've danced for 10 minutes in the cafeteria because of hapiness : D Thanks Stephen, it works great : D

  5. #5
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: find, if match, then cut, offset. if not match, then cut and offset

    My pleasure. Wish I'd been there to see that.

  6. #6
    Registered User
    Join Date
    04-10-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: find, if match, then cut, offset. if not match, then cut and offset

    Quote Originally Posted by AlphaFrog View Post
    Another one...

    Please Login or Register  to view this content.
    I haven't tried yours yet but thanks for all the effort. Yours a bit more difficult to understand : ( BUT it looks great. I will keep yours for in case...

    once again, thanks for all the effort.

+ 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] Dynamic Name Range using Offset&Match with Match based off a different column
    By mdlpjr in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-16-2013, 06:33 PM
  2. [SOLVED] .Find to Match with Activecell.Offset
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-16-2013, 11:08 AM
  3. [SOLVED] index match with row information offset from the match cell
    By smls in forum Excel General
    Replies: 7
    Last Post: 08-30-2012, 09:48 AM
  4. Replies: 2
    Last Post: 03-16-2012, 12:03 PM
  5. using .find to match offset value + box value
    By D_Rennie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-23-2009, 03:26 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