Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
T De Villiers
 
Posts: n/a
Default Range Changes with the Months


=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


--
T De Villiers
------------------------------------------------------------------------
T De Villiers's Profile: http://www.excelforum.com/member.php...o&userid=26479
View this thread: http://www.excelforum.com/showthread...hreadid=398140

  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

T,

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

HTH,
Bernie
MS Excel MVP


"T De Villiers" wrote in message
...

=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


--
T De Villiers
------------------------------------------------------------------------
T De Villiers's Profile: http://www.excelforum.com/member.php...o&userid=26479
View this thread: http://www.excelforum.com/showthread...hreadid=398140



  #3   Report Post  
Ian
 
Posts: n/a
Default

=COUNTIF(CHOOSE(MONTH(NOW()),ref1,ref2,ref3,ref4,r ef5,ref6,ref7,ref8,Y9:BV9,AA9:BV9,AE9:BV9,AH9:BV9) ,"S")

Replace ref1 to ref8 to suit Jan to Aug

--
Ian
--
"T De Villiers"
wrote in message
...

=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


--
T De Villiers
------------------------------------------------------------------------
T De Villiers's Profile:
http://www.excelforum.com/member.php...o&userid=26479
View this thread: http://www.excelforum.com/showthread...hreadid=398140



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
Match function...random search? Les Excel Worksheet Functions 10 July 28th 05 11:54 AM
Why "datedif" function results sometimes negative numbers? Ambrosiy Excel Worksheet Functions 1 July 8th 05 11:29 AM
Define a range based on another named range Basil Excel Worksheet Functions 2 February 21st 05 01:47 PM
How do I create a range of months in Excel? Mo Excel Discussion (Misc queries) 5 December 14th 04 06:05 PM


All times are GMT +1. The time now is 12:56 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"