|
By:
this seems difficult
super easy if you write a VBA function, but I wouldn't go there unless you were confident with macros. |
|
By:
Probably easier with VBA but as long as you know how to enter the data as an array you could use a simple formula like this to count any' duplicates in the range A1 to A3000, obviously change6 the cell references to what you need, the countblank bit is there as any empty cells in the range would be treated as a match so we take them off the sum
=SUM(IF(A1:A3000 = B1:B3000, 1, 0))-COUNTBLANK(A1:A3000) Just remember excel has to treat the data as an array you you can't just type in the formula and hit ENTER you have to get excel to treat it as an array by pressing CTRL-SHIFT together then ENTER. |
|
By:
I was attempting SUM(A1:A3000 = B1:B3000) in an array formula, but couldn't get there
nice solution from Ghetto Joe |
|
By:
Hi guys, thanks for the responses. I don't know much about VBA so will have to investigate this but at least i have a bit of a starting point now.
Cheers |
|
By:
Ahh genius, finally figured out what you were saying, didn't really know anything about ARRAY. I'd seen it mentioned in the boxes when you click on the function button for various formulas but I just assumed it was a jazzy term for a load of cells. Anyway got it working now so thanks for that. I think VBA is beyond me so great to have a non VBA solution.
Thanks |