If I understand correctly this can be easily solved without VBA or UDF with a simple SUMPRODUCT function
See attached
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
|