+ Reply to Thread
Results 1 to 11 of 11

Copy data from one worksheet to another worksheet based on criteria

  1. #1
    Registered User
    Join Date
    03-01-2015
    Location
    vasai
    MS-Off Ver
    2007
    Posts
    14

    Copy data from one worksheet to another worksheet based on criteria

    I am trying to track is when a Transaction Type is PO Receipt & PO Rcpt Adjust, that Transaction Type info is automatically pulled to separate sheet. The same thing for Transaction Type Intransit Receipt, Intransit Shipment & WIP component issue, that info will pull over to the another separate sheet. And for Transaction Type Miscellaneous receipt & Miscellaneous issue, that info will pull over to the another separate sheet.

    The same thing i have done manually in sheet Pur,Cons & Misc respectively.

    I am not sure if this can be done with a formula or if a macro is needed.

    The status on the Proposal Log tab will be manually updated by each estimator as the project award status is made known. I am just trying to have a semi-simple place to track this info.

    I am not sure if this can be done with a formula or if a macro is needed.
    Attached Files Attached Files
    Regards,

    Kunal Shah

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Copy data from one worksheet to another worksheet based on criteria

    For Pur:
    =IFERROR(INDEX('BG -1'!A:A,SMALL(INDEX((LEFT('BG -1'!$C$2:$C$47,2)<>"PO")*10^10+ROW('BG -1'!$C$2:$C$47),0),ROWS($1:1))),"")

    For Cons:
    =IFERROR(INDEX('BG -1'!A:A,SMALL(INDEX(((LEFT('BG -1'!$C$2:$C$47,2)="PO")+(LEFT('BG -1'!$C$2:$C$47,4)="misc"))*10^10+ROW('BG -1'!$C$2:$C$47),0),ROWS($1:1))),"")


    For Misc:
    =IFERROR(INDEX('BG -1'!A:A,SMALL(INDEX((LEFT('BG -1'!$C$2:$C$47,4)<>"Misc")*10^10+ROW('BG -1'!$C$2:$C$47),0),ROWS($1:1))),"")

    in all cases, copy across and down as far as needed.
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 10-14-2015 at 05:38 AM. Reason: Wrong formula for Cons!!!
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    03-01-2015
    Location
    vasai
    MS-Off Ver
    2007
    Posts
    14

    Re: Copy data from one worksheet to another worksheet based on criteria

    Thanks a lot Glenn. It works fine.
    But can you please brief this formula so i can add or delete some more criteria.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Copy data from one worksheet to another worksheet based on criteria

    For one criterion:

    INDEX(Range wanted, SMALL((Criterion)*10^10+Row(rows containing the criterion)),a counter that returns 1, 2, 3, etc)

    for multiple criteria, add another level of parentheses and use + between sets of criteria:
    INDEX(Range wanted, SMALL(((Criterion)+(Next criterion))*10^10+Row(rows containing the criterion)),a counter that returns 1, 2, 3, etc)

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Copy data from one worksheet to another worksheet based on criteria

    Thanks for the Rep. Much appreciated!!

  6. #6
    Registered User
    Join Date
    03-01-2015
    Location
    vasai
    MS-Off Ver
    2007
    Posts
    14

    Re: Copy data from one worksheet to another worksheet based on criteria

    Is there any VBA code possible for the same.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Copy data from one worksheet to another worksheet based on criteria

    Yes, but not from me. I'm no good with VBA. Best solution is to start a new post in the VBA sub-forum.

  8. #8
    Registered User
    Join Date
    03-01-2015
    Location
    vasai
    MS-Off Ver
    2007
    Posts
    14

    Re: Copy data from one worksheet to another worksheet based on criteria

    But this current post is already in VBA sub -forum.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Copy data from one worksheet to another worksheet based on criteria

    Oh. I didn't spot that. Apologies for wasting your time!!

  10. #10
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Copy data from one worksheet to another worksheet based on criteria

    Try this.

    Please Login or Register  to view this content.
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  11. #11
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Copy data from one worksheet to another worksheet based on criteria

    I see you marked this thread as solved.
    Did you see the code I wrote in post #10?

+ 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 data from one worksheet to another worksheet based on criteria
    By kunal Shah in forum Excel General
    Replies: 2
    Last Post: 10-14-2015, 06:22 AM
  2. Copy Data from one worksheet to another based on criteria VBA
    By craigg5 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-14-2015, 10:37 AM
  3. [SOLVED] Copy data from one row to another worksheet based on criteria
    By joeb23 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-27-2013, 02:16 AM
  4. VBA copy data to another worksheet based on criteria
    By wgaca07 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-29-2012, 07:51 PM
  5. Copy data from one worksheet to another one based two criteria
    By lagacey in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-07-2011, 12:12 PM
  6. Copy data from worksheet based on certain criteria
    By excelvb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-08-2011, 12:34 PM
  7. Macro to copy worksheet data to another worksheet based on criteria
    By excelvb in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-07-2011, 04:11 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