Increasing Month only in formula

M

Malla

Kindly i need help on below:

i have a formula as "=Jan!G$2" in Cell "A1", i'm looking to have "=Feb!G$2"
in Cell "A2" and "=Mar!G$2" in Cell "A3" and so on by simple dragging.
is that possible?
 
R

Ron Rosenfeld

Kindly i need help on below:

i have a formula as "=Jan!G$2" in Cell "A1", i'm looking to have "=Feb!G$2"
in Cell "A2" and "=Mar!G$2" in Cell "A3" and so on by simple dragging.
is that possible?

If I understand you correctly, try:

A1: =INDIRECT(ADDRESS(2,7,2,,TEXT(DATE(,COLUMNS($A:A),1),"mmm")))

and drag right to L1

--ron
 
J

Jim Thomlinson

Yes and no. You will have to add a helper column with Jan, Feb, Mar, ... in
the cells.
Assuming that is in Cell B2, B3, ... then in A2 use the formula

=indirect(b2 & "!G2")
And drag down. Note that this formulas has a surprising amount of overhead
to it so if you have thousands of these you will notice taht you spread sheet
calculates slowly.
 
R

Ron Rosenfeld

If I understand you correctly, try:

A1: =INDIRECT(ADDRESS(2,7,2,,TEXT(DATE(,COLUMNS($A:A),1),"mmm")))

and drag right to L1

--ron

Sorry, I first thought you were filling columns.

Make this change:

=INDIRECT(ADDRESS(2,7,2,,TEXT(DATE(,rowS($1:1),1),"mmm")))

then fill down to A12.
--ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top