Copy cells from one sheet to another

%3CLINGO-SUB%20id%3D%22lingo-sub-1786539%22%20slang%3D%22en-US%22%3ECopy%20cells%20from%20one%20sheet%20to%20another%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1786539%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20guys%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20making%20an%20excel%20project%20for%20my%20work%20regarding%20inventory%20of%20items.%20I%20wanted%20to%20know%20how%20to%20copy%20certain%20rows%2Fcells%20from%20one%20sheet%20to%20another%20sheet.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESheet%201%20provides%20all%20the%20items%20and%20each%20item%20is%20classified%20as%20%22Good%22%20or%20%22Re-order%22%3C%2FP%3E%3CP%3EI%20want%20all%20items%20classified%20as%20%22Re-order%22%20to%20automatically%20be%20copied%20to%20Sheet%202%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESHEET%201%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sheet%201.PNG%22%20style%3D%22width%3A%20543px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F227078i7E91181EF70F1C4C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Sheet%201.PNG%22%20alt%3D%22Sheet%201.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESHEET%202%3A%20This%20is%20what%20I%20like%20to%20happen%2C%20it%20gives%20all%20the%20items%20with%20codes%20from%20the%20other%20sheet%20that%20needs%20to%20be%20re-ordered%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22SHEET%202.PNG%22%20style%3D%22width%3A%20367px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F227079iFB173F0EEFF536A5%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22SHEET%202.PNG%22%20alt%3D%22SHEET%202.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20suggestion%20and%20help%20are%20greatly%20appreciated.%20THank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1786539%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1786777%22%20slang%3D%22en-US%22%3ERe%3A%20Copy%20cells%20from%20one%20sheet%20to%20another%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1786777%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F834394%22%20target%3D%22_blank%22%3E%40purkeenjee%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhich%20Excel%20version%20you%20are%20using%3F%20Do%20you%20have%20access%20to%20the%20dynamic%20array%20formulas%3F%3C%2FP%3E%3CP%3EThere%20are%20two%20ways%20you%20can%20achieve%20this%2C%20Formulas%20and%20VBA%2C%20which%20way%20would%20you%20prefer%3F%3C%2FP%3E%3CP%3ECan%20you%20upload%20a%20sample%20workbook%20instead%20of%20an%20image%20to%20work%20with%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi guys,

 

I'm making an excel project for my work regarding inventory of items. I wanted to know how to copy certain rows/cells from one sheet to another sheet.

 

Sheet 1 provides all the items and each item is classified as "Good" or "Re-order"

I want all items classified as "Re-order" to automatically be copied to Sheet 2

 

SHEET 1:

Sheet 1.PNG

 

SHEET 2: This is what I like to happen, it gives all the items with codes from the other sheet that needs to be re-ordered

SHEET 2.PNG

 

Any suggestion and help are greatly appreciated. THank you!

5 Replies

@purkeenjee 

Which Excel version you are using? Do you have access to the dynamic array formulas?

There are two ways you can achieve this, Formulas and VBA, which way would you prefer?

Can you upload a sample workbook instead of an image to work with?

@Subodh_Tiwari_sktneer 

 

Thanks for your response. I've uploaded the excel file for you to check. I'm using Excel 2010, I know it's kind of outdated but it's the version we have in the hospital. I prefer formula rather than VBA as I'm not really trained for the latter.

 

Thanks again for your help. Any suggestion is appreciated

@purkeenjee 

 

=IF(ROW(Tabelle1!1:1)>COUNTIF(Tabelle1!$B$2:$B$20;">0");"";INDEX(Tabelle1!A:A;SMALL(IF(Tabelle1!$B$2:$B$20>0;ROW(Tabelle1!$2:$20));ROW(A1))))

Caution, matrix formula included!
The curly braces {} are not entered.
Exit the cell editor with Ctrl + Shift + Enter instead of Enter alone.

 

array examblearray examble

 

I would be happy to know if I could help.

 

Nikolino

I know I don't know anything (Socrates)

 

* Kindly Mark and Vote this reply if it helps please, as it will be beneficial to more Community members reading here.

Tabelle1 = Sheet 1
Tabelle 2 = Sheet 2

@purkeenjee 

Please try this Array Formula which requires confirmation with Ctrl+Shift+Enter instead of Enter alone.

 

On Ordering Sheet

In A5

=IFERROR(INDEX(ITEMS!B$5:B$38,SMALL(IF(ITEMS!$A$5:$A$38="Re-Order",ROW($A$5:$A$38)-ROW($A$5)+1),ROWS(A$5:A5))),"")

Confirm with Ctrl+Shift+Enter and then copy it across to next column and down the rows.

 

Or you may try this Regular Function which doesn't require any special keystroke.

In A

=IFERROR(INDEX(ITEMS!B$5:B$38,SMALL(IF(ITEMS!$A$5:$A$38="Re-Order",ROW($A$5:$A$38)-ROW($A$5)+1),ROWS(A$5:A5))),"")

and then copy it across to next column and down the rows.

 

The attached file contains both the formulas.