Copy rows conditionally to another sheet
Solved
Nai
Posted messages
709
Registration date
Status
Membre
Last intervention
-
Nai Posted messages 709 Registration date Status Membre Last intervention -
Nai Posted messages 709 Registration date Status Membre Last intervention -
Good evening community ^^
I initially looked for a way without a macro, but I couldn't find one. I would have preferred it, but macros do not bother me :)
I am therefore looking to copy rows containing an exact term from one sheet to another, for three different terms.
I found this, https://forums.commentcamarche.net/forum/affich-28651561-macro-excel-copier-une-ligne-sous-condition but I can't adapt it to my file
The idea is that when in column A of the "Subventions 2017" sheet it is strictly written "Associations subventionnées en 2016 sans demande 2017", the entire row should be copied and pasted into the first empty row of the "Subs 2016 sans demande 2017" sheet.
Continuing, still in column A of the "Subventions 2017" sheet, when it is strictly written "Associations subventionnées en 2016 avec demande 2017", the entire row should be copied and pasted into the first empty row of the "Subs 2016 et demande 2017" sheet.
The same goes for new applications.
It should be noted that associations whose content in column A changes from "pas de demande 2017" to "demande 2017" should be deleted from the "pas de demande" sheet and copied to the "demande 2017" sheet.
Thank you in advance for your help ^^
EDIT: the file in question: https://www.cjoint.com/c/FLmsEBjh7Ti
Configuration: Configuration: Windows 7 (64 bits)
Google Chrome (latest version)
Intel(R) Core(TM) i7 CPU
2.4GHz
Memory 8.00 Go
Best regards,
Naï
P.S.: I monitor all my unresolved topics, if you have a solution, I will definitely read it :)
I initially looked for a way without a macro, but I couldn't find one. I would have preferred it, but macros do not bother me :)
I am therefore looking to copy rows containing an exact term from one sheet to another, for three different terms.
I found this, https://forums.commentcamarche.net/forum/affich-28651561-macro-excel-copier-une-ligne-sous-condition but I can't adapt it to my file
The idea is that when in column A of the "Subventions 2017" sheet it is strictly written "Associations subventionnées en 2016 sans demande 2017", the entire row should be copied and pasted into the first empty row of the "Subs 2016 sans demande 2017" sheet.
Continuing, still in column A of the "Subventions 2017" sheet, when it is strictly written "Associations subventionnées en 2016 avec demande 2017", the entire row should be copied and pasted into the first empty row of the "Subs 2016 et demande 2017" sheet.
The same goes for new applications.
It should be noted that associations whose content in column A changes from "pas de demande 2017" to "demande 2017" should be deleted from the "pas de demande" sheet and copied to the "demande 2017" sheet.
Thank you in advance for your help ^^
EDIT: the file in question: https://www.cjoint.com/c/FLmsEBjh7Ti
Configuration: Configuration: Windows 7 (64 bits)
Google Chrome (latest version)
Intel(R) Core(TM) i7 CPU
2.4GHz
Memory 8.00 Go
Best regards,
Naï
P.S.: I monitor all my unresolved topics, if you have a solution, I will definitely read it :)
4 réponses
yg_be
Posted messages
23437
Registration date
Status
Contributeur
Last intervention
Ambassadeur
1 588
Do you want to copy the lines, or move them?
Just copy them. The associations listed in the Grants 2017 sheet must not disappear.
EDIT: I might also need to add or remove rows, but manually.