Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
SLP SLP is offline
external usenet poster
 
Posts: 58
Default nested if with named formula

Hi. I need to be able to figure out the number of working days per month
based on 17 individual work calendars. I have used Chip Pearson's workaround
for more than 7 nested ifs and it works great. Problem is I have three
named formula and when I do a nested if using the names, it doesn't work.
Works fine if I only use two named fomula. Anyone have any ideas? Oh, the
boss doesn't want me to use code -- just formulas. Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default nested if with named formula

Post your formula, input, expected and realized results

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"SLP" wrote in message ...
| Hi. I need to be able to figure out the number of working days per month
| based on 17 individual work calendars. I have used Chip Pearson's workaround
| for more than 7 nested ifs and it works great. Problem is I have three
| named formula and when I do a nested if using the names, it doesn't work.
| Works fine if I only use two named fomula. Anyone have any ideas? Oh, the
| boss doesn't want me to use code -- just formulas. Thanks in advance.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default nested if with named formula

Hi

You need to post some detail of what your data looks like, and the formula
you have used that doesn't work.

--
Regards
Roger Govier



"SLP" wrote in message
...
Hi. I need to be able to figure out the number of working days per month
based on 17 individual work calendars. I have used Chip Pearson's
workaround
for more than 7 nested ifs and it works great. Problem is I have three
named formula and when I do a nested if using the names, it doesn't work.
Works fine if I only use two named fomula. Anyone have any ideas? Oh,
the
boss doesn't want me to use code -- just formulas. Thanks in advance.



  #4   Report Post  
Posted to microsoft.public.excel.misc
SLP SLP is offline
external usenet poster
 
Posts: 58
Default nested if with named formula

Here is the formula for the range named: Cal1

=IF(N2="July to June","7/1/2008",(IF(N2="Oct to
Sept","10/1/2008",(IF(N2="Jan - Dec","1/1/2008",(IF(N2="Apr to
Mar","4/1/2008",(IF(N2="Agency","10/1/2008",(IF(N2=Agency2,
"10/1/2008",FALSE)))))))))))

Here is the formula for the range named: Cal2

=IF(N2="Agency3","10/1/2008",(IF(N2="Agency4","10/1/2008",(IF(N2="Agency5","10/1/2008",(IF(N2="Agency6","10/1/2008",(IF(N2="Agency7","10/1/2008",(IF(N2="Agency8","10/1/2008",FALSE)))))))))))

Here is the formula for the range named: Cal3:

=IF(N2="Agency9","10/1/2008",(IF(N2="Agency10","10/1/2008",(IF(N2="Summer","7/1/2008",(IF(N2="Winter","7/1/2008",FALSE)))))))

Please note: N2 is where the end user indicates what calendar is applied
for a person for the upcoming fiscal year. Even though some of the calendars
may have the same start date (which is what gets return), the number of
working days may differ in each month depending on what the position is.

So I need to know what calendar is used to determine the number of days per
month to determine the salary, FICA, suta, other benefits, etc per month per
person.

I was hoping this would work but it doesn't:

=IF(Cal1=Cal1,Cal1,(IF(Cal2=Cal2,cal2)))

It will evaluate the first part of the IF only.

Hope I was clear.



"SLP" wrote:

Hi. I need to be able to figure out the number of working days per month
based on 17 individual work calendars. I have used Chip Pearson's workaround
for more than 7 nested ifs and it works great. Problem is I have three
named formula and when I do a nested if using the names, it doesn't work.
Works fine if I only use two named fomula. Anyone have any ideas? Oh, the
boss doesn't want me to use code -- just formulas. Thanks in advance.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default nested if with named formula

Hi

Create a Table with your various parameters in column A, and their
corresponding dates in column B. This can be on another sheet e.g Sheet2
Then use
=VLOOKUP(N2,Sheet2!$A:$B,2,0)

--
Regards
Roger Govier



"SLP" wrote in message
...
Here is the formula for the range named: Cal1

=IF(N2="July to June","7/1/2008",(IF(N2="Oct to
Sept","10/1/2008",(IF(N2="Jan - Dec","1/1/2008",(IF(N2="Apr to
Mar","4/1/2008",(IF(N2="Agency","10/1/2008",(IF(N2=Agency2,
"10/1/2008",FALSE)))))))))))

Here is the formula for the range named: Cal2

=IF(N2="Agency3","10/1/2008",(IF(N2="Agency4","10/1/2008",(IF(N2="Agency5","10/1/2008",(IF(N2="Agency6","10/1/2008",(IF(N2="Agency7","10/1/2008",(IF(N2="Agency8","10/1/2008",FALSE)))))))))))

Here is the formula for the range named: Cal3:

=IF(N2="Agency9","10/1/2008",(IF(N2="Agency10","10/1/2008",(IF(N2="Summer","7/1/2008",(IF(N2="Winter","7/1/2008",FALSE)))))))

Please note: N2 is where the end user indicates what calendar is applied
for a person for the upcoming fiscal year. Even though some of the
calendars
may have the same start date (which is what gets return), the number of
working days may differ in each month depending on what the position is.

So I need to know what calendar is used to determine the number of days
per
month to determine the salary, FICA, suta, other benefits, etc per month
per
person.

I was hoping this would work but it doesn't:

=IF(Cal1=Cal1,Cal1,(IF(Cal2=Cal2,cal2)))

It will evaluate the first part of the IF only.

Hope I was clear.



"SLP" wrote:

Hi. I need to be able to figure out the number of working days per month
based on 17 individual work calendars. I have used Chip Pearson's
workaround
for more than 7 nested ifs and it works great. Problem is I have three
named formula and when I do a nested if using the names, it doesn't work.
Works fine if I only use two named fomula. Anyone have any ideas? Oh,
the
boss doesn't want me to use code -- just formulas. Thanks in advance.





  #6   Report Post  
Posted to microsoft.public.excel.misc
SLP SLP is offline
external usenet poster
 
Posts: 58
Default nested if with named formula

I was thinking about trying either VLookup or concantenating all 17 IFs.
I'll give them both a try. Thanks!

"Roger Govier" wrote:

Hi

Create a Table with your various parameters in column A, and their
corresponding dates in column B. This can be on another sheet e.g Sheet2
Then use
=VLOOKUP(N2,Sheet2!$A:$B,2,0)

--
Regards
Roger Govier



"SLP" wrote in message
...
Here is the formula for the range named: Cal1

=IF(N2="July to June","7/1/2008",(IF(N2="Oct to
Sept","10/1/2008",(IF(N2="Jan - Dec","1/1/2008",(IF(N2="Apr to
Mar","4/1/2008",(IF(N2="Agency","10/1/2008",(IF(N2=Agency2,
"10/1/2008",FALSE)))))))))))

Here is the formula for the range named: Cal2

=IF(N2="Agency3","10/1/2008",(IF(N2="Agency4","10/1/2008",(IF(N2="Agency5","10/1/2008",(IF(N2="Agency6","10/1/2008",(IF(N2="Agency7","10/1/2008",(IF(N2="Agency8","10/1/2008",FALSE)))))))))))

Here is the formula for the range named: Cal3:

=IF(N2="Agency9","10/1/2008",(IF(N2="Agency10","10/1/2008",(IF(N2="Summer","7/1/2008",(IF(N2="Winter","7/1/2008",FALSE)))))))

Please note: N2 is where the end user indicates what calendar is applied
for a person for the upcoming fiscal year. Even though some of the
calendars
may have the same start date (which is what gets return), the number of
working days may differ in each month depending on what the position is.

So I need to know what calendar is used to determine the number of days
per
month to determine the salary, FICA, suta, other benefits, etc per month
per
person.

I was hoping this would work but it doesn't:

=IF(Cal1=Cal1,Cal1,(IF(Cal2=Cal2,cal2)))

It will evaluate the first part of the IF only.

Hope I was clear.



"SLP" wrote:

Hi. I need to be able to figure out the number of working days per month
based on 17 individual work calendars. I have used Chip Pearson's
workaround
for more than 7 nested ifs and it works great. Problem is I have three
named formula and when I do a nested if using the names, it doesn't work.
Works fine if I only use two named fomula. Anyone have any ideas? Oh,
the
boss doesn't want me to use code -- just formulas. Thanks in advance.




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
Array as a "named range" - formula ok in cells, but error as "named range" tskogstrom Excel Discussion (Misc queries) 11 December 28th 06 04:44 PM
Help with formula €“ too many nested IFs Bob Excel Worksheet Functions 7 September 18th 06 06:53 PM
Nested Formula? cwilliams Excel Worksheet Functions 8 August 8th 06 07:41 PM
inserting a named range into new cells based on a named cell Peter S. Excel Discussion (Misc queries) 1 June 4th 06 03:53 AM
UPDATED - Referencing named Ranges within a Nested IF formula JTinAtlanta Excel Worksheet Functions 1 July 29th 05 11:46 PM


All times are GMT +1. The time now is 12:19 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"