+ Reply to Thread
Results 1 to 12 of 12

Transfer data from master sheet to sale purchase sheet

  1. #1
    Registered User
    Join Date
    12-12-2021
    Location
    pakistan
    MS-Off Ver
    2010
    Posts
    19

    Transfer data from master sheet to sale purchase sheet

    HI ALL
    i enter data in master sheet and want to send data from master sheet to sale / purchase sheet vba
    can any body help me to solve this
    Thanks
    sharing sample file

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Transfer data from master sheet to sale purchase sheet

    Thread moved to VBA section.

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Transfer data from master sheet to sale purchase sheet

    Post your workbook HERE, please. Don't open duplicate threads.

  4. #4
    Registered User
    Join Date
    12-12-2021
    Location
    pakistan
    MS-Off Ver
    2010
    Posts
    19

    Re: Transfer data from master sheet to sale purchase sheet

    ok its done by mistake trying to attach file but unable to attach

  5. #5
    Registered User
    Join Date
    12-12-2021
    Location
    pakistan
    MS-Off Ver
    2010
    Posts
    19

    Re: Transfer data from master sheet to sale purchase sheet

    posting sample file thanks
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Transfer data from master sheet to sale purchase sheet

    Non VBA

    In Purchase

    A4

    =IFERROR(INDEX(MASTER_SHEET!$A$6:$A$1000,AGGREGATE(15,6,ROW($A$1:$A$1000)/(MASTER_SHEET!$K$6:$K$1000<>""),ROWS($1:1))),"")

    in B4

    =IFERROR(INDEX(MASTER_SHEET!$B$6:$B$1000,AGGREGATE(15,6,ROW($A$1:$A$1000)/(MASTER_SHEET!$K$6:$K$1000<>""),ROWS($1:1))),"")

    Change highlighted range for other columns

    in SAles

    A4

    =IFERROR(INDEX(MASTER_SHEET!$A$6:$A$1000,AGGREGATE(15,6,ROW($A$1:$A$1000)/(MASTER_SHEET!$N$6:$N$1000<>""),ROWS($1:1))),"")

    in B4

    =IFERROR(INDEX(MASTER_SHEET!$B$6:$B$1000,AGGREGATE(15,6,ROW($A$1:$A$1000)/(MASTER_SHEET!$N$6:$N$1000<>""),ROWS($1:1))),"")


    Change highlighted range for other columns
    Attached Files Attached Files
    Last edited by JohnTopley; 12-19-2021 at 01:39 PM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  7. #7
    Registered User
    Join Date
    12-12-2021
    Location
    pakistan
    MS-Off Ver
    2010
    Posts
    19

    Re: Transfer data from master sheet to sale purchase sheet

    thanks for your reply i am using this for about 20-25 thousand rows, there for its slows down if possible pls give me this in vba

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Transfer data from master sheet to sale purchase sheet

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by JohnTopley; 12-20-2021 at 03:00 PM.

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

    Re: Transfer data from master sheet to sale purchase sheet

    Another Option...For this to work I made one small change...Changed tab Sales to Sale
    Please Login or Register  to view this content.

    @ John...
    Just a heads up...In the below declaration....Only c is declared as long...the rest take on default variant
    Please Login or Register  to view this content.
    Also a good idea to...at the start of your Excel VBA code, add the Option Explicit Statement...This forces you to declare all your variables....In your code if the statement was included it would point out the error of not declaring n1 and n2

    B3Gam.png
    Attached Files Attached Files
    Last edited by sintek; 12-21-2021 at 03:44 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!!!

  10. #10
    Registered User
    Join Date
    12-12-2021
    Location
    pakistan
    MS-Off Ver
    2010
    Posts
    19

    Re: Transfer data from master sheet to sale purchase sheet

    thanks is working awesome

  11. #11
    Registered User
    Join Date
    12-12-2021
    Location
    pakistan
    MS-Off Ver
    2010
    Posts
    19

    Re: Transfer data from master sheet to sale purchase sheet

    my thread is SOLVED but i dont know how to mark solved thanks

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

    Re: Transfer data from master sheet to sale purchase sheet

    Glad to have contributed...Tx for rep +
    Select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. Transfer data from Master Sheet to individual sheets
    By marquint in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-09-2016, 07:57 PM
  2. Transfer data from Master sheet to another sheet based on value.
    By TylerLuk1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-12-2015, 12:00 PM
  3. [SOLVED] Need macro that can transfer data to the next row of the master sheet
    By tantcu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-22-2013, 01:36 PM
  4. Replies: 6
    Last Post: 11-08-2013, 11:59 AM
  5. [SOLVED] Automatically transfer data from master sheet to others...
    By seanallen in forum Excel General
    Replies: 9
    Last Post: 04-10-2013, 06:33 PM
  6. Transfer data from master sheet to another
    By fresh2death in forum Excel General
    Replies: 1
    Last Post: 01-27-2012, 10:55 PM
  7. Transfer data from master sheet to different sheets.
    By liwle19 in forum Excel General
    Replies: 0
    Last Post: 04-12-2011, 12:55 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