Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ExcelMonkey
 
Posts: n/a
Default Semi Annual Counter

I am try to calculate semi annual masks in a model. My model has a switch
which turns the model into 1 of 4 modes (Annual, SA, Quaterly, Monthly) - the
first series. I want to be able to calculated the SA (Semi Annual) Period
Counter in all four scenarios. So when the first counter changes, I want to
semi annual counter to adjust as well.I know I have to use the MOD() function
but I can't seem to integrate so that it works in all four scenarios. The
idea being that is will use the series above it to generate the proper SA
periods. Can anyone provide a tip on this

The result should look like this below:

Annual Scenario
Annual Periods Couter 1 2 3 4 5 6 7
SA Periods Counter 2 2 2 2 2 2 2

SA Scenario
SA Periods Counter 1 2 3 4 5 6 7
SA Periods Counter 1 2 1 2 1 2 1

Quarterly Scenario
Quaterly Periods Counter1 2 3 4 5 6 7
SA Periods Counter 1 1 2 2 1 1 2

Monthly Scenario
Monthly Periods Counter 1 2 3 4 5 6 7
SA Periods Counter 1 1 1 1 1 1 2

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Herbert Seidenberg
 
Posts: n/a
Default Semi Annual Counter

Reduced to a general case, the task is to convert the
series {1,2,3,....,12} into

1 2 1 2 1 2 1 2 1 2 1 2
1 1 2 2 1 1 2 2 1 1 2 2
1 1 1 1 1 1 2 2 2 2 2 2

given a key of 2, 4 or 12.
For each row and its key, enter this array formula
=CEILING((MOD(series-1,key)+1)/key*2,1)

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
Future value plus annual contributions Ken Excel Worksheet Functions 3 March 19th 06 06:26 AM
Arrays Brendan Vassallo Excel Discussion (Misc queries) 4 February 23rd 06 02:27 AM
Referencing a newly created worksheet Charyn Excel Worksheet Functions 2 May 2nd 05 04:13 AM
Creating a counter that does not include hidden rows TechMGR Excel Discussion (Misc queries) 1 April 4th 05 10:11 PM
Increment a counter in Excel COSdl Excel Worksheet Functions 2 March 4th 05 09:47 PM


All times are GMT +1. The time now is 08:49 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"