+ Reply to Thread
Results 1 to 16 of 16

i want to copy paste the values from one sheet to another

  1. #1
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    i want to copy paste the values from one sheet to another

    I have basic values in sheet named 'Basic"

    i have aggregate values in sheet named "Aggregate"

    The values shown in B5:D5 in sheet basic is an outcome of a formula.I want this values to be copied to E3:G3 in sheet named aggregate.

    likewise the values shown in B11:D11 in sheet Basic to be copied to E4:G4 in sheet aggregate.

    i can do this manually by copy and paste special-values.

    But is there any way to done it automatically by excel? thanks

    the sample file is attached.
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,628

    Re: i want to copy paste the values from one sheet to another

    Use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Watch about $'s and make sure months are always same and in same order.
    Meaning they must be one cell next to it as in Basic sheet.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: i want to copy paste the values from one sheet to another

    try this, copied down and across...
    =INDEX(BASIC!$B$3:$D$11,MATCH(AGGREGATE!$A3,BASIC!$A$3:$A$11,0),MATCH(AGGREGATE!E$2,BASIC!$B$2:$D$2,0))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: i want to copy paste the values from one sheet to another

    Also.....

    In E3 of Aggregate sheet

    Please Login or Register  to view this content.
    and copy across and down.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: i want to copy paste the values from one sheet to another

    thanks for the quick replies. i will check and inform the result. have a nice day.

  6. #6
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: i want to copy paste the values from one sheet to another

    Quote Originally Posted by sktneer View Post
    Also.....

    In E3 of Aggregate sheet

    Please Login or Register  to view this content.
    and copy across and down.
    just now i have checked it. it works as i wished.i dont have deep knowledge about the codes. but can you find time to explain the second part of the code which starts from $A3,...... you have given the absolute cell reference of A3 and the range being quoted as A3:A11. whereas i have data to be copied to in B5:D5 and B11:D11.

  7. #7
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: i want to copy paste the values from one sheet to another

    Quote Originally Posted by sktneer View Post
    Also.....

    In E3 of Aggregate sheet

    Please Login or Register  to view this content.
    and copy across and down.
    just now i have checked it. it works as i wished.i dont have deep knowledge about the codes. but can you find time to explain the second part of the code which starts from $A3,...... you have given the absolute cell reference of A3 and the range being quoted as A3:A11. whereas i have data to be copied to in B5:D5 and B11:D11.

  8. #8
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: i want to copy paste the values from one sheet to another

    The second part of the formula, which is MATCH($A3,BASIC!$A$3:$A$11,0), gives you the row number of the record for which there is a match for A3 of Aggregate sheet in the range A3:A11 of Basic sheet. It returns the row number then to the first part of the formula, which is INDEX(BASIC!B$3:B$11, to return the correct row from the range B3:B11 of Basic sheet.

  9. #9
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: i want to copy paste the values from one sheet to another

    =IFERROR (INDEX(BASIC!B$3:B$11,MATCH($A3,BASIC!$A$3:$A$11,0)),"'')
    when i copy pasted the formula from this site and applied on the excel it worked, but when i reentered the formula but it does not work. what has happened? a dollar sign on the left of the cell address shows that it is absolute cell reference($A$2) . but when the dollar sign is USED ONLY ONCE as in ($A2,B$2) what should it be called?

  10. #10
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: i want to copy paste the values from one sheet to another

    Quote Originally Posted by sumesh56 View Post
    =IFERROR (INDEX(BASIC!B$3:B$11,MATCH($A3,BASIC!$A$3:$A$11,0)),"'')
    when i copy pasted the formula from this site and applied on the excel it worked, but when i reentered the formula but it does not work. what has happened? a dollar sign on the left of the cell address shows that it is absolute cell reference($A$2) . but when the dollar sign is USED ONLY ONCE as in ($A2,B$2) what should it be called?
    i got it. $A1=Col A1 is locked(mixed cell reference). A$1=Row one is locked $A$3=absolute cell reference =Col and row are locked.

  11. #11
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: i want to copy paste the values from one sheet to another

    i want to apply the formula you suggested in a new sitauation. i applied this formula in H13 of sheet named TARGET.

    =IFERROR (INDEX(SOURCE!B$1:B$7,MATCH($A1,SOURCE!$A$1:$A$7,0)),"'')
    when i applied this formula in a new worksheet it does not give the expected result, instead it gives all the primary data also. where i went wrong?kindly explain. The sample file is attached.
    Attached Files Attached Files
    Last edited by sumesh56; 03-16-2014 at 03:37 AM.

  12. #12
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: i want to copy paste the values from one sheet to another

    Quote Originally Posted by zbor View Post
    Use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Watch about $'s and make sure months are always same and in same order.
    Meaning they must be one cell next to it as in Basic sheet.
    your formula works fine when applied to the file attached. But i want to apply this formula in a new sitauation. i changed some of the content to suit to the situation. but it doesnot give the required result. i applied the formula to clee c1 of sheet named target. it gives all the primary details also. kindly correct me. thanks. the sample file is attached.
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: i want to copy paste the values from one sheet to another

    Quote Originally Posted by FDibbins View Post
    try this, copied down and across...
    =INDEX(BASIC!$B$3:$D$11,MATCH(AGGREGATE!$A3,BASIC!$A$3:$A$11,0),MATCH(AGGREGATE!E$2,BASIC!$B$2:$D$2,0))
    Your formula worked on the initialy posted excel file. but i tried to apply it in a new situation and it does not work. kindly help. i have applied the formula on D20 of the target sheet.see attachment please.
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: i want to copy paste the values from one sheet to another

    Quote Originally Posted by sumesh56 View Post
    your formula works fine when applied to the file attached. But i want to apply this formula in a new sitauation. i changed some of the content to suit to the situation. but it doesnot give the required result. i applied the formula to clee c1 of sheet named target. it gives all the primary details also. kindly correct me. thanks. the sample file is attached.
    EUREKA!!!! at last i found out the mistake. for the last 48 hours i was testing and rechecking. now i got the idea.two mistakes i made. the labels in col A was not identical in all the two sheets, the labels was missing in target sheet,and the serious one, in the target sheet i was pasting the formula to some other rows that the one in the formula(this i couldnot find out a few seconds before), your formulas are working great, thanks to sktneer,zbor(so easy to type the formula) and FDibbins for helping me to solve the issue.
    Last edited by sumesh56; 03-17-2014 at 01:12 PM.

  15. #15
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: i want to copy paste the values from one sheet to another

    Quote Originally Posted by zbor View Post
    Use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Watch about $'s and make sure months are always same and in same order.
    Meaning they must be one cell next to it as in Basic sheet.
    zbor,

    I have tried your formula in a number of files and i got the result also. but one alarming thing. when i take the aggregate sheet from my computer and put in another one it shows unrecognised characters as if it lost the linked file(Basic). how to overcome this issue? what i want to know is how can i get the result independant of the basic file. one solution i did is prepared the same sheet template ,copy the whole content , and pasted to the new template! doing this in many sheets-indeed tiresome.kindly help by giving me directions. thanks

  16. #16
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: i want to copy paste the values from one sheet to another

    Quote Originally Posted by zbor View Post
    Use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Watch about $'s and make sure months are always same and in same order.
    Meaning they must be one cell next to it as in Basic sheet.
    zdor,

    I have tried your formula in a number of files and i got the result also. but one alarming thing. when i take the aggregate sheet from my computer and put in another one it shows unrecognised characters as if it lost the linked file(Basic). how to overcome this issue? what i want to know is how can i get the result independant of the basic file. one solution i did is prepared the same sheet template ,copy the whole content , and pasted to the new template! doing this in many sheets-indeed tiresome.kindly help by giving me directions. thanks

+ 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. Macro to copy sheet(s) and paste as values only
    By Greed in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-05-2014, 12:32 PM
  2. Copy unique values and paste to another sheet
    By GEMINI528 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-01-2013, 10:20 AM
  3. [SOLVED] should copy and paste the intersect values from sheet 1 to sheet 2
    By Apps in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 03-12-2013, 10:06 AM
  4. copy paste values to a new sheet
    By rainbow_1985 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-19-2009, 01:49 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