I have below worksheet, where file 1, file 2 .... are the files places in a specific folder.
For section 1, I need to send an email by attaching the files, where it is marked as yes.
Here in this example, for section 1, I need to attach the files File 9 and File 10.
for section 2, I need to attach the file 2.
for section 3, I need to attach the files, file1, file 2 file 3 file 4 file 5 file 6 and so on..
| | File 1 | File 2 | File 3 | File 4 | File 5 | File 6 | File 7 | File 8 | File 9 | File 10 |
| Section 1 | | | | | | | | | Yes | Yes |
| Section 2 | | Yes | | | | | | | | |
| Section 3 | Yes | Yes | Yes | Yes | Yes | Yes | | | | |
| Section 4 | | | Yes | | | | | | | |
| Section 5 | | | Yes | | | | | | | |
| Section 6 | | | Yes | | | | | | | |
| Section 7 | | | Yes | | | | | | | |
| Section 8 | | | | | | Yes | Yes | | | |
| Section 9 | | | | | | | | Yes | Yes | |
| Section 10 | | | | | | | | | | |