I am trying to write a new function in VBA for excel that will count the occurrences of specific alpha-numeric codes in a column. There are so many variables that the regular excel formulas cannot handle the calculations.
The regular formula would look similar to this:
=sum(countif(Day,{"A01","A02","A03","A04","A05","B01","B02","B12","B13","B14",
"B15","C14","C17","C18","C19"}))
Day is already a defined range - basically a column C24:c195 and is a relative range dependent on the cell location of the function. There are over 60 alpha-numeric codes to be counted, I did not add them all here to save time.
I would call the function "Shift0700".
Any help would be great.
thanks,
The regular formula would look similar to this:
=sum(countif(Day,{"A01","A02","A03","A04","A05","B01","B02","B12","B13","B14",
"B15","C14","C17","C18","C19"}))
Day is already a defined range - basically a column C24:c195 and is a relative range dependent on the cell location of the function. There are over 60 alpha-numeric codes to be counted, I did not add them all here to save time.
I would call the function "Shift0700".
Any help would be great.
thanks,