have column of years (numeric), would like tocount how many by decade.

mr_techie

New Member
Joined
Apr 27, 2012
Messages
8
Hi,

I am new to VBA, an thus may be a trivial question, but I haven;t founf an answer, yet.

I have a column of years, 1921 to 2011, and would like to find out hoe many are in each decade, ie >=1920 and <=1929, for each decade.

the column is in numeric form, but could be easily converted to text.

any help would be appreciated.

thanks in advance!!
 
Thanks that works, involves a lot more keying though. Not sure why the wildcards don't work in the Countif statement if anyone can answer that I would love to know
 
Upvote 0

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Wildcards only work with text, not numbers.
 
Upvote 0

Forum statistics

Threads
1,216,038
Messages
6,128,447
Members
449,453
Latest member
jayeshw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top