import data

C

cgkeel

I have a workbook with 6 worksheets. I need to pull
specific data from one sheet to one of the other 5. For
example: If O99 ="X" the I need all the data from row 99
to goto sheet A row 1(columns a-s), if O110 ="X" I need it
to goto sheet A row 2 and if O76="Y" I need it to goto
sheet B row 1 (columns a-s).

Thanks for your help.
 
M

Mike

Would this work?

Sheet1
O99 = X
P99 = Y
Q99 = Z....

Sheet2
A1 = IF(Sheet1!$O$99 = "X", Sheet1!A$99,"")
B1 = IF(Sheet1!$O$99 = "X", Sheet1!B$99,"").... Copy this formula across.

Depending how large this spreadsheet is, all these formulas could make the
file size very large. Or you could write a macro that would evaluate the
cell and copy/paste the values in the required cells.
 
H

Harlan Grove

I have a workbook with 6 worksheets. I need to pull
specific data from one sheet to one of the other 5. For
example: If O99 ="X" the I need all the data from row 99
to goto sheet A row 1(columns a-s), if O110 ="X" I need it
to goto sheet A row 2 and if O76="Y" I need it to goto
sheet B row 1 (columns a-s).

Unless your data as a whole would exceed 65,536 rows, the expedient way to do
this would be to combine all your data into a single table on yet another
worksheet, possibly add field names in the top row of this new worksheet and
also in the top rows of the destination worksheets (the ones where the data
should end up), then use an Advanced Filter to populate the destination
worksheets based on a criteria range for column O. Macros would be next best.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top