+ Reply to Thread
Results 1 to 14 of 14

Copy data from one sheet into another based on some criteria without using VB

  1. #1
    Registered User
    Join Date
    11-21-2012
    Location
    Hyderabad
    MS-Off Ver
    Excel 2012
    Posts
    6

    Copy data from one sheet into another based on some criteria without using VB

    Hi,

    I have a workbook which has sheets named Zone A, Zone B and Summary. Zone A and Zone B has same columns but different data. I have to pull the respective records from Zone A and Zone B sheet based on column ''Joined in Dept".
    I don't have to pull all the columns. I have to pull only few columns data from sheets Zone A and Zone and show it in Summary Sheet. I should do this by writing a formula but not any code.

    Please find the sample sheet attached.

    Can anyone please let me know how can this be achieved.
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy data from one sheet into another based on some criteria without using VB

    Is this a homework /assignment question?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy data from one sheet into another based on some criteria without using VB

    I have to pull only few columns data from sheets Zone A and Zone ? Which columns

    based on column ''Joined in Dept". So when do you pull/push data from this column, when it is Sales, or QA, etc?

  4. #4
    Registered User
    Join Date
    11-21-2012
    Location
    Hyderabad
    MS-Off Ver
    Excel 2012
    Posts
    6

    Re: Copy data from one sheet into another based on some criteria without using VB

    I want Date, Name of the Person, Joined in Dept., Remarks, Percentage and Referrer columns data to be pulled from Zone A and Zone B based on value 'QA' in 'Joined in Dept' column.

    @ rlu1201
    Right now i am preparing the 'Summary' sheet manually by copying the data of each row from Zone A and Zone B sheets and pasting it in Summary sheet. I want to do this automatically by writing formula. I tried to do this by 'If' function but i could not succeed in this.

  5. #5
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Copy data from one sheet into another based on some criteria without using VB

    Hello:

    Please find attached sheet....

    Riz
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-21-2012
    Location
    Hyderabad
    MS-Off Ver
    Excel 2012
    Posts
    6

    Re: Copy data from one sheet into another based on some criteria without using VB

    Thanks Rizmomin...
    Could you please let me know if there is any possibility of avoiding blank records(Row 13, Row 16-21, Row 24) in between data records(Row 12, Row 14-15 etc) in the "Summary" sheet?

    Thanks again for your help!!

  7. #7
    Registered User
    Join Date
    11-21-2012
    Location
    Hyderabad
    MS-Off Ver
    Excel 2012
    Posts
    6

    Re: Copy data from one sheet into another based on some criteria without using VB

    No updates??

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy data from one sheet into another based on some criteria without using VB

    without using VB?
    If you want macro, I can provide you with one.

  9. #9
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Copy data from one sheet into another based on some criteria without using VB

    Hi AB33:

    I still like to see the VB Code macro.
    Please post the macro.


    Thank U

    Riz

  10. #10
    Registered User
    Join Date
    11-21-2012
    Location
    Hyderabad
    MS-Off Ver
    Excel 2012
    Posts
    6

    Re: Copy data from one sheet into another based on some criteria without using VB

    I will upload this excel to Google Docs i.e i am using Google Doc spreadsheet. So can you please provide me javascript which can do this job.

  11. #11
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Copy data from one sheet into another based on some criteria without using VB

    Hi :

    Please upload the excel file within this forum.
    At the right hand side next to Post Quick Reply, there is GO ADVANCED.
    Press that and then go down you will see Manage attachments.
    Press that and upload the upload..
    Will see if i can help.

    Thanks.
    Riz

  12. #12
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Copy data from one sheet into another based on some criteria without using VB

    Hi:

    Hello:

    Please refer to attahced Summary sheet.
    I have added dropdown list in cell C8, you can choose either Sales, QA, Development from here.
    Once the data is populated, copy A12:F31 to DeleteRows sheet staring in Cell A1...
    After copying, press Delete Rows Button and see teh result.

    Riz
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    11-21-2012
    Location
    Hyderabad
    MS-Off Ver
    Excel 2012
    Posts
    6

    Re: Copy data from one sheet into another based on some criteria without using VB

    After copying A12:F31 rows data from sheet "Summary" to "DeleteRows" sheet, if i click on Delete button, i am getting a popupwith message 400(screenshot attached)...
    Attached Images Attached Images

  14. #14
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Copy data from one sheet into another based on some criteria without using VB

    Hello:

    Hello:

    Please refer to attached sheet.
    GO to FinalResult Tab.
    First press CopyPaste Button and then Delete Rows Button.

    If you need to change the rows to be copyied then change in the code.
    Current i am copying A12:F100 from Summary tab.


    As i mentioned earlier, choose QA or other from dropdownlist in cell C8 in Summary tab.

    I hope this is ok for you.

    Riz
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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