Calculating every Quarter or Half year from today

alabatusa

New Member
Joined
Nov 8, 2009
Messages
9
Hi All

I am trying to calculate given a varying starting day, the fall of every quarter or half year.

e.g. 1

month= 1 (Jan)
Type = quarter
Next quarter = 4 (april)

Similarly
e.g. 2
Date = 1 Feb
Type = quarter
Next quarter = 5( may)

or
Similarly
Date = 1 Feb
Type = semi annual
Next quarter = 7 (july)

Basically i need a formula given starting month to determine if the cell given falls on quarter on semi annual anniversary

such that over a calender year i would get the following for example 2.

Month123456789101112
Flag010010010010

<tbody>
</tbody>

and similarly for EG 3. would return a 1 for month of Feb and July


My inputs are Month begin and quarterly/semi annual input as (3,6)
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Try something like this.

Excel 2016 (Windows) 32 bit
A
B
C
D
E
F
G
H
I
J
K
L
M
1
Date
2​
2
Typequarter
3
Next Quarter
5​
4
5
Month
1​
2​
3​
4​
5​
6​
7​
8​
9​
10​
11​
12​
6
Flag
0​
1​
0​
0​
1​
0​
0​
1​
0​
0​
1​
0​
Sheet: Sheet11

Excel 2016 (Windows) 32 bit
B
3
=IF(B2="quarter",B1+3,IF(B2="semi",B1+6,"check type"))​
Sheet: Sheet11
Excel 2016 (Windows) 32 bit
B
6
=IF($B$2="quarter",IF(MOD(B$5-$B$1,3)=0,1,0),IF($B$2="semi",IF(MOD(B$5-$B$1,6)=0,1,0),"check type"))​
Sheet: Sheet11
 
Upvote 0

Forum statistics

Threads
1,215,368
Messages
6,124,521
Members
449,169
Latest member
mm424

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