Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default nested datevalue if and statements

=if(and(B8datevalue("10/1/07"),B8<datevalue("11/30/08"),0,if(and(B8datevalue("10/1/06"),B8<datvalue("11/30/07"),k8,if(and(b8datevalue("10/1/05"),b8<datevalue("11/30/06"),(n8+k8)/2,(k8+n8+q8)/3))))))

if between dates 10/1/07 - 11/30/08, calc 0
if between dates 10/1/06 - 11/30/07, calc total from cell k8
if between dates 10/01/05 - 11/30/06, calc value (n8+k8)/2
otherwise calc (k8+n8+q8)/3

Formula isnt working - any help would be great...Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default nested datevalue if and statements

JoviGirl wrote:
=if(and(B8datevalue("10/1/07"),B8<datevalue("11/30/08"),0,if(and(B8datevalue("10/1/06"),B8<datvalue("11/30/07"),k8,if(and(b8datevalue("10/1/05"),b8<datevalue("11/30/06"),(n8+k8)/2,(k8+n8+q8)/3))))))

if between dates 10/1/07 - 11/30/08, calc 0
if between dates 10/1/06 - 11/30/07, calc total from cell k8
if between dates 10/01/05 - 11/30/06, calc value (n8+k8)/2
otherwise calc (k8+n8+q8)/3

Formula isnt working - any help would be great...Thanks in advance



Your ranges are overlapping. How would you deal with 10/30/06? Should it be k8
or (n8+k8)/2?
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default nested datevalue if and statements

Not sure if it was entered exactly as below, but corrected is:

=IF(AND(B8DATEVALUE("10/1/07"),B8<DATEVALUE("11/30/08")),0,IF(AND(B8DATEVALUE("10/1/06"),B8<DATEVALUE("11/30/07")),K8,IF(AND(B8DATEVALUE("10/1/05"),B8<DATEVALUE("11/30/06")),(N8+K8)/2,(K8+N8+Q8)/3)))

"JoviGirl" wrote:

=if(and(B8datevalue("10/1/07"),B8<datevalue("11/30/08"),0,if(and(B8datevalue("10/1/06"),B8<datvalue("11/30/07"),k8,if(and(b8datevalue("10/1/05"),b8<datevalue("11/30/06"),(n8+k8)/2,(k8+n8+q8)/3))))))

if between dates 10/1/07 - 11/30/08, calc 0
if between dates 10/1/06 - 11/30/07, calc total from cell k8
if between dates 10/01/05 - 11/30/06, calc value (n8+k8)/2
otherwise calc (k8+n8+q8)/3

Formula isnt working - any help would be great...Thanks in advance

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 55
Default nested datevalue if and statements

I fixed the formula .Your brackets were not correctly closed Copy this one
below
=IF(AND(B8DATEVALUE("10/1/07"),B8<DATEVALUE("11/30/08")),0,IF(AND(B8DATEVALUE("10/1/06"),B8<DATEVALUE("11/30/07")),K8,IF(AND(B8DATEVALUE("10/1/05"),B8<DATEVALUE("11/30/06")),(N8+K8)/2,(K8+N8+Q8)/3)))

"JoviGirl" wrote:

=if(and(B8datevalue("10/1/07"),B8<datevalue("11/30/08"),0,if(and(B8datevalue("10/1/06"),B8<datvalue("11/30/07"),k8,if(and(b8datevalue("10/1/05"),b8<datevalue("11/30/06"),(n8+k8)/2,(k8+n8+q8)/3))))))

if between dates 10/1/07 - 11/30/08, calc 0
if between dates 10/1/06 - 11/30/07, calc total from cell k8
if between dates 10/01/05 - 11/30/06, calc value (n8+k8)/2
otherwise calc (k8+n8+q8)/3

Formula isnt working - any help would be great...Thanks in advance

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default nested datevalue if and statements

Oh, and if you want, say, 10/1/07 to be included in the first set, use =,
not just . Same for all the rest.

"Sean Timmons" wrote:

Not sure if it was entered exactly as below, but corrected is:

=IF(AND(B8DATEVALUE("10/1/07"),B8<DATEVALUE("11/30/08")),0,IF(AND(B8DATEVALUE("10/1/06"),B8<DATEVALUE("11/30/07")),K8,IF(AND(B8DATEVALUE("10/1/05"),B8<DATEVALUE("11/30/06")),(N8+K8)/2,(K8+N8+Q8)/3)))

"JoviGirl" wrote:

=if(and(B8datevalue("10/1/07"),B8<datevalue("11/30/08"),0,if(and(B8datevalue("10/1/06"),B8<datvalue("11/30/07"),k8,if(and(b8datevalue("10/1/05"),b8<datevalue("11/30/06"),(n8+k8)/2,(k8+n8+q8)/3))))))

if between dates 10/1/07 - 11/30/08, calc 0
if between dates 10/1/06 - 11/30/07, calc total from cell k8
if between dates 10/01/05 - 11/30/06, calc value (n8+k8)/2
otherwise calc (k8+n8+q8)/3

Formula isnt working - any help would be great...Thanks in advance



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default nested datevalue if and statements

Thanks so much - It works....

"Sean Timmons" wrote:

Not sure if it was entered exactly as below, but corrected is:

=IF(AND(B8DATEVALUE("10/1/07"),B8<DATEVALUE("11/30/08")),0,IF(AND(B8DATEVALUE("10/1/06"),B8<DATEVALUE("11/30/07")),K8,IF(AND(B8DATEVALUE("10/1/05"),B8<DATEVALUE("11/30/06")),(N8+K8)/2,(K8+N8+Q8)/3)))

"JoviGirl" wrote:

=if(and(B8datevalue("10/1/07"),B8<datevalue("11/30/08"),0,if(and(B8datevalue("10/1/06"),B8<datvalue("11/30/07"),k8,if(and(b8datevalue("10/1/05"),b8<datevalue("11/30/06"),(n8+k8)/2,(k8+n8+q8)/3))))))

if between dates 10/1/07 - 11/30/08, calc 0
if between dates 10/1/06 - 11/30/07, calc total from cell k8
if between dates 10/01/05 - 11/30/06, calc value (n8+k8)/2
otherwise calc (k8+n8+q8)/3

Formula isnt working - any help would be great...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
Nested if statements JICDB Excel Worksheet Functions 2 November 20th 07 06:48 PM
Nested IF statements Karrisac15 New Users to Excel 1 July 19th 07 08:06 PM
Nested IF statements maacmaac Excel Discussion (Misc queries) 0 January 23rd 06 09:22 PM
Help with Nested If Statements THEFALLGUY Excel Discussion (Misc queries) 6 September 3rd 05 10:03 AM
Do I need nested IF statements? Jaramya Excel Worksheet Functions 1 November 5th 04 09:10 PM


All times are GMT +1. The time now is 02:41 AM.

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

About Us

"It's about Microsoft Excel"