Range Changes with the Months

  • Thread starter Thread starter T De Villiers
  • Start date Start date
T

T De Villiers

=countif(Y9:BV9,"S")

I need this range to vary with changing months, many thanks

so in Sep it becomes =countif(Y9:BV9,"S")
so in Oct it becomes =countif(AA9:BV9,"S")
so in Nov it becomes =countif(AE9:BV9,"S")
so in Dec it becomes =countif(AH9:BV9,"S")
 
T,

What rule do you use to determine the range? Are there labels in another row, or dates?

HTH,
Bernie
MS Excel MVP
 
=COUNTIF(CHOOSE(MONTH(NOW()),ref1,ref2,ref3,ref4,ref5,ref6,ref7,ref8,Y9:BV9,AA9:BV9,AE9:BV9,AH9:BV9),"S")

Replace ref1 to ref8 to suit Jan to Aug
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top