thakkarvamar
New Member
- Joined
- Sep 14, 2011
- Messages
- 19
Hi
I have current year endings for a few companies in yyyymm format (eg. 201103 for March 2011). I also have number of months in each company's accounting years for last 2 years. (Number of months may vary over time).
Based on this data i want to find out previous year endings in the same date format.
Sample data and output
Latest means current year and latest1 means previous year and so on
Company Latest Latest1 Latest2
A 201103
B 201103
C 201103
D 201103
E 201103
F 201106
G 201106
H 201106
NO OF MONTHS
Company LATEST LASTEST1
A 12 12
B 9 15
C 12 15
D 6 15
E 15 12
F 18 12
G 12 12
H 12 12
OUTPUT NEEDED
Company Latest Latest1 Latest2
A 201103 201003 200903
B 201103 201006 200903
C 201103 201003 200812
D 201103 201009 200906
E 201103 200912 200812
F 201106 200912 200812
G 201106 201006 200906
H 201106 201006 200906
How do I do this using formulae?
I have current year endings for a few companies in yyyymm format (eg. 201103 for March 2011). I also have number of months in each company's accounting years for last 2 years. (Number of months may vary over time).
Based on this data i want to find out previous year endings in the same date format.
Sample data and output
Latest means current year and latest1 means previous year and so on
Company Latest Latest1 Latest2
A 201103
B 201103
C 201103
D 201103
E 201103
F 201106
G 201106
H 201106
NO OF MONTHS
Company LATEST LASTEST1
A 12 12
B 9 15
C 12 15
D 6 15
E 15 12
F 18 12
G 12 12
H 12 12
OUTPUT NEEDED
Company Latest Latest1 Latest2
A 201103 201003 200903
B 201103 201006 200903
C 201103 201003 200812
D 201103 201009 200906
E 201103 200912 200812
F 201106 200912 200812
G 201106 201006 200906
H 201106 201006 200906
How do I do this using formulae?