Hi,
Any help would be appreciated on this as i want to move away from functions.
Basically, i would like to add vba code, simialr to the countif one below, that will count the number of unique items in column B on sheets 2 (named wt) if the the cell value in columns c is equal to the cell value in sheets 1 (named ws) cell b6 (these are text)
Then in another cell on sheet 1 i would like to know what the highest unique item is ( i.e if Dog is the most frequent then the cell value in sheets 1 cell d8 = Dog)..
Thanks in advance
Blunder1
Any help would be appreciated on this as i want to move away from functions.
Basically, i would like to add vba code, simialr to the countif one below, that will count the number of unique items in column B on sheets 2 (named wt) if the the cell value in columns c is equal to the cell value in sheets 1 (named ws) cell b6 (these are text)
Code:
ws.Range("d7") = WorksheetFunction.CountIf(wt.Range("D:D"), ws.Range("b6").Value)
Thanks in advance
Blunder1