Is there a way for me to do this in the VBA code without the need of the extra helper columnn with the formula?
I'm confident there is, but my VBA skills are lacking to say the least. I try to avoid adding new columns as well, especially with large datasets in the thousands, as formulas constantly updating with new changes slows down Excel.
I suspect that the cell value in the '
Record' column would need to be
renamed to reflect the number curently in the '
Count' column. You may not want your macro renaming
all of the values in the column, and just the new one being added.
This might be achieveable using a
Worksheet_Change sub routine. Hopefully this helps you look for a solution if the formula/helper column isn't optimal.
However, until a VBA expert in this forum comes along, you could use this to combine the results and then have your macro use that combined value for the timebeing.
I'm providing two examples:
TEXTJOIN and
CONCAT, depending on which version you are using.
If you use either of the two examples, you don't need my column '
C'. I'm combining the value in your '
Record' column with that formula from '
C' so you only need
one helper column.
If a MACRO is your desired approach, then don't mark this thread as SOLVED until a VBA expert provides one. Or, you can take this thread and create a new one converting this
Formula-based solution to a
Macro-based solution.
Either way, best of luck to you.