Excel: Copying conditional data to new sheet
Closed
Laura
-
Jan 6, 2011 at 10:07 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Jan 7, 2011 at 08:54 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Jan 7, 2011 at 08:54 AM
Related:
- Excel: Copying conditional data to new sheet
- Excel mod apk for pc - Download - Spreadsheets
- Number to words in excel - Guide
- Excel marksheet - Guide
- Kernel for excel - Download - Backup and recovery
- Gif in excel - Guide
1 response
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Jan 6, 2011 at 10:24 AM
Jan 6, 2011 at 10:24 AM
Hi Laura,
I don't understand how a range of cells can ever be the same as the value of a single cell.
I could write a code for you which checks every cells in range L1:N9999 and when a cells matches the value of cell B1, copy it's entire row to the next sheet.
But keep in mind that if cell L1, M1 and N1 are all the same value as B1, the same row will be copied three times to the next sheet.
Also keep in mind that checking 30000 cells takes excel some time to "think".
Give me your thoughts on this.
Best regards,
Trowa
I don't understand how a range of cells can ever be the same as the value of a single cell.
I could write a code for you which checks every cells in range L1:N9999 and when a cells matches the value of cell B1, copy it's entire row to the next sheet.
But keep in mind that if cell L1, M1 and N1 are all the same value as B1, the same row will be copied three times to the next sheet.
Also keep in mind that checking 30000 cells takes excel some time to "think".
Give me your thoughts on this.
Best regards,
Trowa
Jan 6, 2011 at 10:47 AM
Cells L1, M1 and N1 will never be the same as they are populated by differing formulae (K1+2 / K1+4 / K1+6). It's only when one of them matches that the row should be copied.
Also, it would be at maximum 150 or so rows of data - less thinking time!
Laura
Jan 7, 2011 at 08:54 AM
OK, then try this code:
Does this code represent what you want to execute?
Best regards,
Trowa