Hi,
I need a macro that compares a range in column H with a range in column E (in same sheet) and if same text then put "pass" in column F otherwise put "fail".
If cells in column H are blank then don't put anything (so either skip comparison or put """").
See example below:
I know this can easily be done with an Excel formula but I need a macro as this VBA code will go into a larger tool that will use this function so Excel formula would be of no use.
Many Thanks,
N.
I need a macro that compares a range in column H with a range in column E (in same sheet) and if same text then put "pass" in column F otherwise put "fail".
If cells in column H are blank then don't put anything (so either skip comparison or put """").
See example below:
Column E | Column F | Column H | |
John | pass | John | |
Mike | pass | Mike | |
Luke | fail | XXX | |
Alex | pass | Alex | |
Sam | pass | Sam | |
Luke | fail | XXX | |
David | pass | David | |
Sam | pass | Sam | |
Oscar | pass | Oscar | |
Elliot | fail | XXX | |
Steve | pass | Steve | |
Jack | pass | Jack | |
I know this can easily be done with an Excel formula but I need a macro as this VBA code will go into a larger tool that will use this function so Excel formula would be of no use.
Many Thanks,
N.