LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
JN
 
Posts: n/a
Default IF and MIN functions

Hi,

I've been trying to fix the following formula but can't figure out why.

IF(OR(AG2<0,AE2<="07/29/05"),0,AG2*NETWORKDAYS(MIN(AE2,DATEVALUE("12/31/05")),"07/29/05")/NETWORKDAYS("07/29/05",AE2))

What I am trying to do here is if the "Amt remained" is less than 0, OR
"Date" is less than 07/29/05, I want colum AH to show 0. Otherwise, apply the
calculations, which splits the amount into 2005 and 2006. However, I can't
make the formula show 0 for the dates that is less than 07/29/05. I am not
sure if it has to do with the MIN().

AE AG AH
AI
Date Amt Remained 2005 Portion
2006 Portion
2 1/22/93 $66,102 $2,246
$63,856
3 7/31/06 $27,349 $11,587
$15,762


Thanks!

 
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



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