+ Reply to Thread
Results 1 to 11 of 11

a function to copy the things needed from one sheet to another. only the ones needed

  1. #1
    Registered User
    Join Date
    07-31-2015
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    35

    a function to copy the things needed from one sheet to another. only the ones needed

    greetings everyone, im having an issue with excel as usual i need to copy a part of a content that has information of sheet 1 to what is needed in sheet 2. its not easy to explain by typing, its explained all in the attachment. hopefully it wont confuse u here. the example there will make it clear. thanks.Book1.xlsx

  2. #2
    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
    30,684

    Re: a function to copy the things needed from one sheet to another. only the ones needed

    Basic formula ...

    =IFERROR(INDEX('Sheet 1'!$D$2:$J$2,SMALL(IF(('Sheet 1'!$D$4:$J$4<>0)*(MATCH($A$4,'Sheet 1'!$A$4,0)),COLUMN('Sheet 1'!$D$2:$J$2)-COLUMN('Sheet 1'!$D$2)+1,""),ROWS($1:1))),"")

    Enter with Ctrl+Shift+Enter

    Copy down

    Change BOLD ranges to reflect rows 3 and 4

    See attached
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-31-2015
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    35

    Re: a function to copy the things needed from one sheet to another. only the ones needed

    ive checked what u did and i thank u for that, but 1st i tried adding rows to the 1st sheet bcz we will have more measurement numbers and style numbers and i typed new measurement number and style number in it. in sheet 2, i changed the measurement number 5 to the new measurement number from a new row in sheet1, but the info didnt pop up. plz help me with this issue. thanks.
    Last edited by karim.zheng; 10-31-2015 at 02:30 AM.

  4. #4
    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
    30,684

    Re: a function to copy the things needed from one sheet to another. only the ones needed

    Add highlighted code to ALL formulae;

    =IFERROR(INDEX('Sheet 1'!$D$2:$J$2,SMALL(IF(('Sheet 1'!$D$4:$J$4<>0)*(MATCH($A$4,'Sheet 1'!$A$4,0) *(MATCH($B$4,'Sheet 1'!$B$4,0)) ),COLUMN('Sheet 1'!$D$2:$J$2)-COLUMN('Sheet 1'!$D$2)+1,""),ROWS($1:1))),"")

    However this will need amending (or changed completely) to handle multiple entries on Sheet1 so please post a file with more than one entry on sheet1.


    VBA might be the solution as the layout does not make it easy to extract the data from multiple entries..
    Last edited by JohnTopley; 10-31-2015 at 07:15 AM.

  5. #5
    Registered User
    Join Date
    07-31-2015
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    35

    Re: a function to copy the things needed from one sheet to another. only the ones needed

    ok ill send u the excel see sheet 3 its exactly like that. but theres a catch i dont kno if itll effect anything, theres the measurement number and style number some times we would change them and the numbers would change with them too. thank u and sorry for using ur time
    Attached Files Attached Files
    Last edited by karim.zheng; 10-31-2015 at 08:51 AM.

  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
    30,684

    Re: a function to copy the things needed from one sheet to another. only the ones needed

    This is completely different to your original posting.

    And I assume there are a number of "Measurement numbers" on sheet3?

    If so, I need to know how sheet 3 is formatted with more than one measurement number.

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,937

    Re: a function to copy the things needed from one sheet to another. only the ones needed

    c4=IFERROR(INDEX('Sheet 3'!$3:$3,SMALL(INDEX(((LEFT('Sheet 3'!$H$3:$QR$3,1)<>LEFT(C$2,1))+('Sheet 3'!$H$5:$QR$5=0))*10^10+COLUMN('Sheet 3'!$H$3:$QR$3),0),ROWS(C$4:C4))),"")
    d4=IFERROR(INDEX('Sheet 3'!$4:$4,SMALL(INDEX(((LEFT('Sheet 3'!$H$3:$QR$3,1)<>LEFT(C$2,1))+('Sheet 3'!$H$5:$QR$5=0))*10^10+COLUMN('Sheet 3'!$H$3:$QR$3),0),ROWS(C$4:C4))),"")
    e4=IFERROR(INDEX('Sheet 3'!$5:$5,SMALL(INDEX(((LEFT('Sheet 3'!$H$3:$QR$3,1)<>LEFT(C$2,1))+('Sheet 3'!$H$5:$QR$5=0))*10^10+COLUMN('Sheet 3'!$H$3:$QR$3),0),ROWS(C$4:C4))),"")
    Try this and copy across
    see attached file
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  8. #8
    Registered User
    Join Date
    07-31-2015
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    35

    Re: a function to copy the things needed from one sheet to another. only the ones needed

    sry abt that there was a misunderstanding, anyways this table has an index match formula. there would be only one row for the measurement number and style number. when we write 5 on the measurement number, the style number and other number to the right will pop up. but when we write for example 4, the things to the right will change. the style number and others will change. theyre taken from another refference. so basically we can say that we have only 1 measurement number.

  9. #9
    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
    30,684

    Re: a function to copy the things needed from one sheet to another. only the ones needed

    OK: nflSsles has provided the solution you require.

  10. #10
    Registered User
    Join Date
    07-31-2015
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    35

    Re: a function to copy the things needed from one sheet to another. only the ones needed

    yh but anyways i thank u both for the help and yh this was a headache. i really appreciate the help.

  11. #11
    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
    30,684

    Re: a function to copy the things needed from one sheet to another. only the ones needed

    Thanks for the feedback. Please marked as SOLVED ("Thread Tools" at top of thread).

    And credit to nflsaless for solution.

+ 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. VBA code needed to copy a cell data to other sheet
    By aakhan2011 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-20-2014, 10:55 AM
  2. VBA needed to copy only rows from sheet 3 meeting criterium YES and paste in sheet 4
    By Robert1311 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-24-2014, 10:33 AM
  3. [SOLVED] VBA help needed to AutoFilter with multiple criteria and copy to appropriate sheet
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-18-2014, 11:43 AM
  4. Copy row into the same sheet on value change - URGENT HELP NEEDED
    By i.rajput in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-11-2013, 10:40 AM
  5. Macro button needed to copy values from one sheet to another
    By Bertolt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2012, 08:56 AM
  6. DAverage Function help needed-verage shown on another sheet
    By xrayr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-26-2005, 12:05 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