I have a requirement, I have an Excel with values JIRA ID, Defect ID, Duplicate ID, Duplicate
-In JIRA ID column I have all ALM defect ids which has linked JIRA IDs marked.
-I need to take all ALM id which has JIRA ID marked on JIRA ID Column.
-put it against respective JIRA ID on Duplicated ID column separated with (,).
-mark the JIRA id as duplicate
you could try what follows
it makes use of a "helper" range, occupying one column only and starting from a cell two columns at the right and two rows below your data
CurrentRegion
(i.e. as per your data example, the "helper" range would be from cell F19 downwards). If you have relevant data in such localized data, you should change code accordingly