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

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Wildcards only work with text, not numbers.
 
Upvote 0

Forum statistics

Threads
1,215,352
Messages
6,124,457
Members
449,161
Latest member
NHOJ

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