See attached.
I used some Named Ranges to determine the individual group of like invoice numbers.
To create the Named Ranges...
Go to G2 and then go to Insert|Name|Define
Enter C_Start in Names in this workbook field and enter formula:
Then click Ok.
Re-invoke Insert|Name|Define and enter C_End in Names in this workbook with formula:
Then Click Ok.
In G2, Enter formula:
and copy down.
Note: The named ranges are dynamic allowing you to add more accounts to the bottom with adjusting formulas.. you just need to copy formula in G down..
Hope this does the trick.... it took a bit to think this one through.
Bookmarks