I have a spreadsheet where each row corresponds to a specific month, by year, and there are 3 rows separating each year. The first month starts in Row 4.
Example:
Row 4 = January 2008
Row 5 = February 2008
Row 6 = March 2008
Row 7 = April 2008
Row 8 = May 2008
Row 9 = June 2008
Row 10 = July 2008
Row 11 = August 2008
Row 12 = September 2008
Row 13 = October 2008
Row 14 = November 2008
Row 15 = December 2008
Row 16 – Other data – should be ignored for this formula
Row 17 - Other data – should be ignored for this formula
Row 18 - Other data – should be ignored for this formula
Row 19 = January 2009
Row 20 = February 2009
Row 21 = March 2009
Row 22 = April 2009
Row 23 = May 2009
Row 24 = June 2009
Row 25 = July 2009
Row 26 = August 2009
Row 27 = September 2009
Row 28 = October 2009
Row 29 = November 2009
Row 30 = December 2009
Row 31 – Other data – should be ignored for this formula
Row 32 - Other data – should be ignored for this formula
Row 33 - Other data – should be ignored for this formula
Row 34 = January 2010
Row 35 = February 2010
In column G I have ‘monthly increase’ a currency value
In column H I have ‘monthly decrease’ a currency value
In cell N3 I have a numeric value.
I am looking to get a formula to put in column H which would take the current month in the year and subtract the value from N3 (as a month) to determine the G value.
Example assuming that N3 is 12:
H28 would be equal to G13 – October 2009 less 12 months equals October 2008
H30 would be equal to G15 – December 2009 less 12 months equals December 2008
Example assuming that N3 is 6:
H30 would be equal to G24 = December 2009 less 6 months equals June 2009.
H23 would be equal to G14 = May 2009 less 6 months equals November 2008
Example assuming that N3 = 9:
H30 would be equal to G22 = December 2009 less 9 months equals April 2009
I previously had an ‘OFFSET’ function that was working OK but I didn’t account for the 3 spaces in between each of the years. My ‘OFFSET’ also did not account for the fact that my first relevant row doesn’t start until Row #4. In other words it was taking Row 6 minus 9 and returning a negative row / error.
Is there any type of formula that I can use to accommodate this – even if I had to add some extra hidden columns and / or rows?
Thank you.
Example:
Row 4 = January 2008
Row 5 = February 2008
Row 6 = March 2008
Row 7 = April 2008
Row 8 = May 2008
Row 9 = June 2008
Row 10 = July 2008
Row 11 = August 2008
Row 12 = September 2008
Row 13 = October 2008
Row 14 = November 2008
Row 15 = December 2008
Row 16 – Other data – should be ignored for this formula
Row 17 - Other data – should be ignored for this formula
Row 18 - Other data – should be ignored for this formula
Row 19 = January 2009
Row 20 = February 2009
Row 21 = March 2009
Row 22 = April 2009
Row 23 = May 2009
Row 24 = June 2009
Row 25 = July 2009
Row 26 = August 2009
Row 27 = September 2009
Row 28 = October 2009
Row 29 = November 2009
Row 30 = December 2009
Row 31 – Other data – should be ignored for this formula
Row 32 - Other data – should be ignored for this formula
Row 33 - Other data – should be ignored for this formula
Row 34 = January 2010
Row 35 = February 2010
In column G I have ‘monthly increase’ a currency value
In column H I have ‘monthly decrease’ a currency value
In cell N3 I have a numeric value.
I am looking to get a formula to put in column H which would take the current month in the year and subtract the value from N3 (as a month) to determine the G value.
Example assuming that N3 is 12:
H28 would be equal to G13 – October 2009 less 12 months equals October 2008
H30 would be equal to G15 – December 2009 less 12 months equals December 2008
Example assuming that N3 is 6:
H30 would be equal to G24 = December 2009 less 6 months equals June 2009.
H23 would be equal to G14 = May 2009 less 6 months equals November 2008
Example assuming that N3 = 9:
H30 would be equal to G22 = December 2009 less 9 months equals April 2009
I previously had an ‘OFFSET’ function that was working OK but I didn’t account for the 3 spaces in between each of the years. My ‘OFFSET’ also did not account for the fact that my first relevant row doesn’t start until Row #4. In other words it was taking Row 6 minus 9 and returning a negative row / error.
Is there any type of formula that I can use to accommodate this – even if I had to add some extra hidden columns and / or rows?
Thank you.