Davealot
Member
Greetings,
I'm sure this is an easy fix, I just have trouble with the loop in the function. Looking to write up code to check a range, B:B, for a specific set of text (MID,1,9)="76200-tk8", if it meets that criteria to pull information from adjacent column for quantity, and to loop through until it no longer matches the text, so that I can drop an open order report full of part numbers to sum up the totals in one cell.
Column B would be the part numbers, Column C would be the open amount, and I would have a separate sheet that would count the total amount of qty, matching criteria in a single cell.
I can obviously do a "CountIf" function, then sum that up in a separate column, but why do that when I know code can do it? I just can't get the loop down pat yet. Any help?
I'm sure this is an easy fix, I just have trouble with the loop in the function. Looking to write up code to check a range, B:B, for a specific set of text (MID,1,9)="76200-tk8", if it meets that criteria to pull information from adjacent column for quantity, and to loop through until it no longer matches the text, so that I can drop an open order report full of part numbers to sum up the totals in one cell.
Column B would be the part numbers, Column C would be the open amount, and I would have a separate sheet that would count the total amount of qty, matching criteria in a single cell.
I can obviously do a "CountIf" function, then sum that up in a separate column, but why do that when I know code can do it? I just can't get the loop down pat yet. Any help?