Hi all,
I am brand new to VBA and only just beginning to learn.
I have 13 columns of data in an Excel sheet. Row numbers vary from 40,000 to 500,000.
Column 13 (M) may contain duplicates which I want to count in column 14 (N) and paste to a new sheet (not delete).
I had attempted to name the range in column M(13) then reference range in a countif or vlookup but since the volume of data varies wildy, I couldn't figure out how to name the range dynamically without referencing the specific cell ranges (M2:M44927) - I need to run this report daily but would prefer to automate with a module (not within an activated worksheet).
Would anyone have some VBA code I could re-use to do this?
I am brand new to VBA and only just beginning to learn.
I have 13 columns of data in an Excel sheet. Row numbers vary from 40,000 to 500,000.
Column 13 (M) may contain duplicates which I want to count in column 14 (N) and paste to a new sheet (not delete).
I had attempted to name the range in column M(13) then reference range in a countif or vlookup but since the volume of data varies wildy, I couldn't figure out how to name the range dynamically without referencing the specific cell ranges (M2:M44927) - I need to run this report daily but would prefer to automate with a module (not within an activated worksheet).
Would anyone have some VBA code I could re-use to do this?