IF VALUE EQUALS X THEN COPY PASTE ROW TO NEW SHEET
Help!.. I would like to know how to copy paste from one sheet to another within the same file using the IF function.
Basically, looking a thousands of columns, if I want to copy specific rows (A15:K15), (B15:K15) etc.. of "sheet 1" to "sheet 2" only if (employee number) D15 = 11 (of sheet 1).
I would like the rows to follow in "sheet 2" and not appear at row 1500 if there is only 20 rows that were copied.
Does this make any sense? If VBA is needed... what would the code look like?
Thanks,
Tigershark
»
- tigershark45_can's blog
- Login or register to post comments
- 46606 reads
Copying certain rows
Hi,
It can be done with formulas alone but it will require somewhat complex formulas as well as formulas in additional helper columns. Let me know if you need to do it that way
Your VBA question
If you do want to use VBA, the code could look something like this:
Need information about this without VBA
Been searching for vlookup and everything I find has pointed to VBA scripts.
I however have a copy of excel of sorts which does not support VBA scripting.
I have a similar situation,
What I have are 2 sets of import data.
One in a particular format which corresponds to what are called MLS numbers. I have sorted these in a particualr order, but the second list has these numbers, not in the same cells nor are they in the same order.
What I would like to do is correspond these particular numbers in a list, sort them so they are the same but match the first column.
Then taking the newly sorted list, generate the corresponding data from an array, each of the 11 files has their own row, but the data goes from lets say A1 through FZ12
If the second set of data has a sorted value of 2 in the row value then I want to be able to populate A2 through FZ2 in A30, then the second set of data which is property sorted, the A7 through FZ7 would then be populated in Cells A3:FZ3 and so on.
This was the only thread all day long I have found which mentions doing it via formulas without VBA scripting like all the other sites I have found.
Thank you very much in advance for any help.
filter
more on autofilter:
excelexperts.com/Teach-Yourself-Excel-Lesson-21-Filter-Data