Question : New column (count) from existing data

Hello,
I have two columns with many rows. Column A is 'location' and column B is 'species'. I'd like create a third column 'number of locations'.  It would be the number of locations each species is in (I have included a sample spreadsheet). If possible it would be great if upper and lower cases didn't matter. I didn't create the spreadsheet and there are some locations and/or species that are typed differently (i.e. some in all caps, or first letter not capitalized).  Is this possible to do with a formula? If not the maybe a script.  I appreciate some level of explanantion of the code or formula so that I might begin to get a grasp on the situation.

Thanks,
JE

Answer : New column (count) from existing data

JE,

You can use this formula...

=COUNTIF(B:B,B2)

This will do what you are looking for.

Enclosed is your example workbook for your reference.

Saurabh...

Random Solutions  
 
programming4us programming4us