Formula prob - or is it validation?

S

suewho

In cell A1 I have created a list with options - 1st quarter results, 2nd
quarter results, 3rd quarter results, 4th quarter results.
Cells A2, A3 & A4 are for the months of the quarter.
If I select "1st quarter in A1", I want A2 to read "Jan", A3 to read "Feb",
& A4 to read "Mar".
If I select 2nd quarter in A1, I want A2 to read "Apr", A3 to read "May" &
A4 to read "Jun".....and so on thru the 3rd and 4th quarters.
I have investigated IF statements, but they don't work...

I'm so stuck. Is anyone able to help
 
J

JLatham

Assuming that your list in A1 (created using data validation) has these
options/items:
1st Quarter
2nd Quarter
3rd Quarter
4th Quarter

Then these formulas should work
A2
=IF($A$1="1st Quarter","JAN",IF($A$1="2nd Quarter","APR",IF($A$1="3rd
Quarter","JUL",IF($A$1="4th Quarter","OCT",""))))
A3
=IF($A$1="1st Quarter","FEB",IF($A$1="2nd Quarter","MAY",IF($A$1="3rd
Quarter","AUG",IF($A$1="4th Quarter","NOV",""))))
A4
=IF($A$1="1st Quarter","MAR",IF($A$1="2nd Quarter","JUN",IF($A$1="3rd
Quarter","SEP",IF($A$1="4th Quarter","DEC",""))))
 
S

suewho

Ah - the absolute cell! I had the basic formula right but neglected to
"absolute" it. However, even absolute has not helped in this instance.... I
have a blank cell where I should have "Jan".
 
J

JLatham

Where I have put things like "1st Quarter" or "4th Quarter" in the formulas I
put up, you must enter exactly what shows up in your list. If you have
"First Quarter" then the formula should say "First Quarter" or whatever is
showing up in cell A1 for each choice.
 
S

suewho

Yes, I have done that.

JLatham said:
Where I have put things like "1st Quarter" or "4th Quarter" in the formulas I
put up, you must enter exactly what shows up in your list. If you have
"First Quarter" then the formula should say "First Quarter" or whatever is
showing up in cell A1 for each choice.
 
S

suewho

Ooops, I've just checked again....and my list says First Quarter....etc, and
my formula was 1st Quarter.
Problem solved! I've spent so long on this today, and you've fixed it in two
emails. Many Many MANY thanks!
 
J

JLatham

Sue, you are very, very welcome. Thanks for letting us know you have it
working now.
 
T

T. Valko

Hmmm...

I don't see Roger's reply in the thread but I see it quoted in your reply.

Try this:

Use the ordinal number to define the quarters. As the source for the drop
down use these:

1st Q (or Quarter)
2nd Q
3rd Q
4th Q

Then enter this formula in A2 and copy down to A4:

=TEXT((LEFT(A$1)*3-(ROWS(A2:A$4)-1))*30,"mmmm")

This will return the long month name like January. If you want the short
month name like Jan change "mmmm" to "mmm".
 
S

suewho

Many thanks to all who've responded. It's great to know there are still
people out there willing to lend their expertise to learners like myself.
 
T

T. Valko

You're welcome!

--
Biff
Microsoft Excel MVP


suewho said:
Many thanks to all who've responded. It's great to know there are still
people out there willing to lend their expertise to learners like myself.
 

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