+ Reply to Thread
Results 1 to 7 of 7

Match & copy specific ranges for each name to bottom based on cell value

  1. #1
    Forum Contributor
    Join Date
    05-25-2022
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    225

    Match & copy specific ranges for each name to bottom based on cell value

    Hello
    in LASTROW sheet into H2 cell I write the customer name should match with column C for SPLITTING sheet if they're matched then will brings the range is relating of the customer name as the example in RESULT1 sheet .if I write another customer name then will copy to the bottom as in RESULT2 sheet .
    if I write wrong name in H2 in lastrow sheet (the name is not existed in SPLITTING sheet) then pops message "the name is not available" and exit sub without do anything and if I write the same name has already existed then should pops message "the range for this name is already existed" and exit sub without do anything and if the H2 cell is empty then should delete all of ranges are existed in LASTROW sheet .
    thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,628

    Re: Match & copy specific ranges for each name to bottom based on cell value

    Try. I have changed the name of the sheet "LASTROW" as "SEARCH_NAME"
    \
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 02-19-2024 at 03:20 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  3. #3
    Forum Contributor
    Join Date
    05-25-2022
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    225

    Re: Match & copy specific ranges for each name to bottom based on cell value

    thanks, but still remain this
    if the H2 cell is empty then should delete all of ranges are existed in LASTROW sheet .
    when there is no any name in H2 I want deletion all of ranges have already existed in SEARCH_NAME

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,628

    Re: Match & copy specific ranges for each name to bottom based on cell value

    Code modified.
    Please Login or Register  to view this content.

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,336

    Re: Match & copy specific ranges for each name to bottom based on cell value

    Please Login or Register  to view this content.
    Last edited by sintek; 02-19-2024 at 09:02 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  6. #6
    Forum Contributor
    Join Date
    05-25-2022
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    225

    Re: Match & copy specific ranges for each name to bottom based on cell value

    excellent !
    thank you so much , guys!

  7. #7
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,336

    Re: Match & copy specific ranges for each name to bottom based on cell value

    ..............................
    THANKS.gif

+ 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] copy values from textbox to specific column based on match two comboboxes
    By ABDELFATTA in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-21-2021, 07:12 AM
  2. [SOLVED] split specific range of cell to multiple ranges based on two cells
    By ABDELFATTA in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 07-16-2021, 08:39 AM
  3. [SOLVED] Excel VBA to hide multiple ranges based on specific cell values
    By Stuepef in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-30-2018, 01:07 PM
  4. Replies: 5
    Last Post: 03-29-2018, 01:56 PM
  5. [SOLVED] loop through certain ranges and put down specific text based on previous cell with data
    By liz5818 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2013, 01:43 PM
  6. [SOLVED] 15USD - Copy certain ranges in standardised rows based on specific cell value to summary
    By dan.zrust in forum Excel Programming / VBA / Macros
    Replies: 30
    Last Post: 01-30-2013, 01:58 PM
  7. copy specific ranges based on certain values
    By WhiteKelso in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-06-2008, 09:55 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