Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default too many levels of nesting

I know that I am exceeding my nesting levels. But can anyone provide a fomula
that would help me make all 12 months work? Here is the first 6 months
formula that I have:

=IF(MONTH(B4)=1,'Jan Draws'!G4,IF(MONTH(B4)=2,'Feb
Draws'!G4,IF(MONTH(B4)=3,'Mar Draws'!G4,IF(MONTH(B4)=4,'April
Draws'!G4,IF(MONTH(B4)=5,'May Draws'!G4,IF(MONTH(B4)=6,'June
Draws'!G4,IF(MONTH(B4)=7,'July Draws'!G4,"")))))))
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default too many levels of nesting

Try:

=CHOOSE(MONTH(B4),'Jan Draws'!G4,'Feb Draws'!G4,'Mar Draws'!G4,'April
Draws'!G4,'May Draws'!G4,'June Draws'!G4,'July Draws'!G4)

add the rest of the sheet references you need.


"Rookie" wrote:

I know that I am exceeding my nesting levels. But can anyone provide a fomula
that would help me make all 12 months work? Here is the first 6 months
formula that I have:

=IF(MONTH(B4)=1,'Jan Draws'!G4,IF(MONTH(B4)=2,'Feb
Draws'!G4,IF(MONTH(B4)=3,'Mar Draws'!G4,IF(MONTH(B4)=4,'April
Draws'!G4,IF(MONTH(B4)=5,'May Draws'!G4,IF(MONTH(B4)=6,'June
Draws'!G4,IF(MONTH(B4)=7,'July Draws'!G4,"")))))))

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 287
Default too many levels of nesting

If you use a consistent format for the month names, i.e. always the first 3
letters of each month, e.g. "Apr draws" or "Jun draws" etc. then you could
use the formula

=INDIRECT(TEXT(B4,"'mmm")&" draws'!G4")

"JMB" wrote:

Try:

=CHOOSE(MONTH(B4),'Jan Draws'!G4,'Feb Draws'!G4,'Mar Draws'!G4,'April
Draws'!G4,'May Draws'!G4,'June Draws'!G4,'July Draws'!G4)

add the rest of the sheet references you need.


"Rookie" wrote:

I know that I am exceeding my nesting levels. But can anyone provide a fomula
that would help me make all 12 months work? Here is the first 6 months
formula that I have:

=IF(MONTH(B4)=1,'Jan Draws'!G4,IF(MONTH(B4)=2,'Feb
Draws'!G4,IF(MONTH(B4)=3,'Mar Draws'!G4,IF(MONTH(B4)=4,'April
Draws'!G4,IF(MONTH(B4)=5,'May Draws'!G4,IF(MONTH(B4)=6,'June
Draws'!G4,IF(MONTH(B4)=7,'July Draws'!G4,"")))))))

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default too many levels of nesting

"daddylonglegs" wrote...
If you use a consistent format for the month names, i.e. always the first
3 letters of each month, e.g. "Apr draws" or "Jun draws" etc. then you
could use the formula

=INDIRECT(TEXT(B4,"'mmm")&" draws'!G4")

....

Yeah, but INDIRECT is a volatile function, so it recalculates whenever
anything triggers recalculation. If there'd be a lot of these calls, the
CHOOSE formula, though longer, would produce much faster recalculation
generally. Also, the CHOOSE formula would be easy to fill or copy/paste.
Yours isn't because you've hardcoded the cell address.


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default too many levels of nesting

Another way. Much shorter but uses a volatile function.

You'd have to standardize your sheet names, though. Some use the short month
name: Jan, Feb, Mar. And some use the long month name: April, June, July.
You'd have to make them all the same, either short or long. Then:

For the short month name:

=INDIRECT("'"&TEXT(MONTH(A1)*30,"mmm")&" Draws'!G4")

For the long month name:

=INDIRECT("'"&TEXT(MONTH(A1)*30,"mmmm")&" Draws'!G4")

--
Biff
Microsoft Excel MVP


"Rookie" wrote in message
...
I know that I am exceeding my nesting levels. But can anyone provide a
fomula
that would help me make all 12 months work? Here is the first 6 months
formula that I have:

=IF(MONTH(B4)=1,'Jan Draws'!G4,IF(MONTH(B4)=2,'Feb
Draws'!G4,IF(MONTH(B4)=3,'Mar Draws'!G4,IF(MONTH(B4)=4,'April
Draws'!G4,IF(MONTH(B4)=5,'May Draws'!G4,IF(MONTH(B4)=6,'June
Draws'!G4,IF(MONTH(B4)=7,'July Draws'!G4,"")))))))





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default too many levels of nesting

=INDIRECT("'"&TEXT(MONTH(A1)*30,"mmm")&" Draws'!G4")

Or, more simply:

=INDIRECT("'"&TEXT(A1,"mmm")&" Draws'!G4")

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Another way. Much shorter but uses a volatile function.

You'd have to standardize your sheet names, though. Some use the short
month name: Jan, Feb, Mar. And some use the long month name: April, June,
July. You'd have to make them all the same, either short or long. Then:

For the short month name:

=INDIRECT("'"&TEXT(MONTH(A1)*30,"mmm")&" Draws'!G4")

For the long month name:

=INDIRECT("'"&TEXT(MONTH(A1)*30,"mmmm")&" Draws'!G4")

--
Biff
Microsoft Excel MVP


"Rookie" wrote in message
...
I know that I am exceeding my nesting levels. But can anyone provide a
fomula
that would help me make all 12 months work? Here is the first 6 months
formula that I have:

=IF(MONTH(B4)=1,'Jan Draws'!G4,IF(MONTH(B4)=2,'Feb
Draws'!G4,IF(MONTH(B4)=3,'Mar Draws'!G4,IF(MONTH(B4)=4,'April
Draws'!G4,IF(MONTH(B4)=5,'May Draws'!G4,IF(MONTH(B4)=6,'June
Draws'!G4,IF(MONTH(B4)=7,'July Draws'!G4,"")))))))





  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default too many levels of nesting

Thanks for the formula. It seems to work for the first column. Do you have
any advice for a formula to insert the following months automatically
dpendant on the start date?

For Example: If May is the starting month and I want it to pull data from
all 12 months, then in column two I want June Data, then July Data etc.

I currently have a table made but it is ver time consuming and can get
confusing to other users (and myself:)
"T. Valko" wrote:

=INDIRECT("'"&TEXT(MONTH(A1)*30,"mmm")&" Draws'!G4")


Or, more simply:

=INDIRECT("'"&TEXT(A1,"mmm")&" Draws'!G4")

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Another way. Much shorter but uses a volatile function.

You'd have to standardize your sheet names, though. Some use the short
month name: Jan, Feb, Mar. And some use the long month name: April, June,
July. You'd have to make them all the same, either short or long. Then:

For the short month name:

=INDIRECT("'"&TEXT(MONTH(A1)*30,"mmm")&" Draws'!G4")

For the long month name:

=INDIRECT("'"&TEXT(MONTH(A1)*30,"mmmm")&" Draws'!G4")

--
Biff
Microsoft Excel MVP


"Rookie" wrote in message
...
I know that I am exceeding my nesting levels. But can anyone provide a
fomula
that would help me make all 12 months work? Here is the first 6 months
formula that I have:

=IF(MONTH(B4)=1,'Jan Draws'!G4,IF(MONTH(B4)=2,'Feb
Draws'!G4,IF(MONTH(B4)=3,'Mar Draws'!G4,IF(MONTH(B4)=4,'April
Draws'!G4,IF(MONTH(B4)=5,'May Draws'!G4,IF(MONTH(B4)=6,'June
Draws'!G4,IF(MONTH(B4)=7,'July Draws'!G4,"")))))))






  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default too many levels of nesting

If I understand what you want:

A1 = 5/1/2007

=INDIRECT("'"&TEXT((MONTH($A1)+COLUMNS($A:A)-1)*30,"mmm")&" Draws'!G4")

Copied across, will return: May Draws!G4, Jun Draws!G4, Jul Draws!G4, Aug
Draws!G4, etc

--
Biff
Microsoft Excel MVP


"Rookie" wrote in message
...
Thanks for the formula. It seems to work for the first column. Do you have
any advice for a formula to insert the following months automatically
dpendant on the start date?

For Example: If May is the starting month and I want it to pull data from
all 12 months, then in column two I want June Data, then July Data etc.

I currently have a table made but it is ver time consuming and can get
confusing to other users (and myself:)
"T. Valko" wrote:

=INDIRECT("'"&TEXT(MONTH(A1)*30,"mmm")&" Draws'!G4")


Or, more simply:

=INDIRECT("'"&TEXT(A1,"mmm")&" Draws'!G4")

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Another way. Much shorter but uses a volatile function.

You'd have to standardize your sheet names, though. Some use the short
month name: Jan, Feb, Mar. And some use the long month name: April,
June,
July. You'd have to make them all the same, either short or long. Then:

For the short month name:

=INDIRECT("'"&TEXT(MONTH(A1)*30,"mmm")&" Draws'!G4")

For the long month name:

=INDIRECT("'"&TEXT(MONTH(A1)*30,"mmmm")&" Draws'!G4")

--
Biff
Microsoft Excel MVP


"Rookie" wrote in message
...
I know that I am exceeding my nesting levels. But can anyone provide a
fomula
that would help me make all 12 months work? Here is the first 6 months
formula that I have:

=IF(MONTH(B4)=1,'Jan Draws'!G4,IF(MONTH(B4)=2,'Feb
Draws'!G4,IF(MONTH(B4)=3,'Mar Draws'!G4,IF(MONTH(B4)=4,'April
Draws'!G4,IF(MONTH(B4)=5,'May Draws'!G4,IF(MONTH(B4)=6,'June
Draws'!G4,IF(MONTH(B4)=7,'July Draws'!G4,"")))))))







Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sum sub levels. Jerome Excel Discussion (Misc queries) 5 April 2nd 06 03:24 AM
sum sub levels. Jerome Excel Worksheet Functions 3 April 1st 06 05:03 AM
sum sub levels. Jerome New Users to Excel 0 March 30th 06 03:36 PM
Levels in Subtotals KipNowlin Excel Worksheet Functions 6 July 14th 05 07:03 AM
VLOOKUP with more than 7 levels of IF AppraiserRon Excel Worksheet Functions 6 May 26th 05 09:15 PM


All times are GMT +1. The time now is 04:55 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"