+ Reply to Thread
Results 1 to 13 of 13

Move data to other sheet on User input

  1. #1
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Move data to other sheet on User input

    Hello Experts,

    Need your help in building a formula or code to move data from "Input sheet" to "Final Sheet" on the basis of values specified in "Index Sheet".

    For example.. In Attached sheet

    User have mentioned Column Name ("Date")& Required Data from the column specified ("Date").
    Now on the basis of this parameters the rows should be moved to final sheet..

    USer Can select any column name & any value, if the data is present it will be moved to "Final Sheet" else not.

    Please suggest
    Last edited by Parth007; 12-01-2016 at 06:59 AM.
    Regards
    Parth

    I appreciate your feedback. Hit * if u Like.
    Rules - http://www.excelforum.com/forum-rule...rum-rules.html

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,886

    Re: Move data to other sheet on User input

    In your "Source" tab you have two dates in column E which are the same (20/10/2016). This means that your "Final" sheet should also include the data for EMPID1. Is this correct? In your sample file, this data is not included.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879
    Quote Originally Posted by Mumps1 View Post
    In your "Source" tab you have two dates in column E which are the same (20/10/2016). This means that your "Final" sheet should also include the data for EMPID1. Is this correct? In your sample file, this data is not included.
    Hello Mumps1,

    Yes it should include, sorry i missed to move that row in final sheet. Sorry about it.
    Last edited by Parth007; 11-28-2016 at 11:14 AM.

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,886

    Re: Move data to other sheet on User input

    Try:
    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Move data to other sheet on User input

    Other 1

    Please Login or Register  to view this content.
    Kind regards
    Leo

  6. #6
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: Move data to other sheet on User input

    Thanks Mumps1 & thanks LeoTaxi.. the code worked as charm..

    One question...

    now this code gives what we specify in required data.. what if we want data apart from what is not specified in required data?

  7. #7
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: Move data to other sheet on User input

    Quote Originally Posted by LeoTaxi View Post
    Other 1

    Please Login or Register  to view this content.
    Kind regards
    Leo
    Hi LeoTaxi, Columns may be more or less,
    & now this code gives what we specify in required data.. what if we want data apart from what is not specified in required data?
    Last edited by Parth007; 11-29-2016 at 06:20 AM.

  8. #8
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Move data to other sheet on User input

    For data not specified cange
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    for more or less Columns
    the array arr contains all Columns, so the array sn can be loaded with the same or less columns
    in exemple till 5, you can fill the sn(j,6) the sn(j,7) the sn(j,8) enz....

    in this case change also the number of Columns
    Please Login or Register  to view this content.
    Kind

  9. #9
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: Move data to other sheet on User input

    Ok Thanks.. will update accordingly

  10. #10
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: Move data to other sheet on User input

    I have this code ready.. attached is the Macro file..

    The code works perfectly for small(less) data.. but if columns are more or if rows are more then this macro code doesn't give correct answer..

    can anybody please suggest what needs to be done to rectify the code..

    attached is the macro

    Note : -
    1) CommandButton1(Move Required) - gives data what we specify in required data (Column E of Index Sheet)..
    2) CommandButton2(Move Difference) - gives data apart from what we specify in required data (Column E of Index Sheet)
    Last edited by Parth007; 12-01-2016 at 06:59 AM.

  11. #11
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Move data to other sheet on User input

    For variable qt Columns

    Please Login or Register  to view this content.
    Kind regards
    Leo

  12. #12
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Unhappy Re: Move data to other sheet on User input

    Forget code in # 11
    worst thing i ever made, i see now

    think this will do the job

    Please Login or Register  to view this content.
    Kind regards
    Leo
    Attached Files Attached Files

  13. #13
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: Move data to other sheet on User input

    Fabulous Leo... simply superb.. worked like charm.. thankfull to you

+ 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. Data from another sheet from user selected input
    By pandahugs in forum Excel General
    Replies: 1
    Last Post: 06-12-2015, 08:22 PM
  2. Replies: 4
    Last Post: 05-11-2014, 12:24 PM
  3. Replies: 4
    Last Post: 04-06-2014, 04:44 PM
  4. Data from another sheet between two user input dates
    By hassanmir in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-28-2013, 03:11 PM
  5. user form listbox value = workbook sheet and data input
    By lex8058 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-29-2012, 06:32 PM
  6. Using User Form to Select Data and Move to New Sheet
    By excelslizzard in forum Excel General
    Replies: 5
    Last Post: 05-09-2012, 02:18 PM
  7. Can I user input to seek out particular files and copy/move them?
    By silkworm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2006, 03:35 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