+ Reply to Thread
Results 1 to 29 of 29

First part of "IF" function returns false even if true. ??

  1. #1
    Bill R
    Guest

    Re: First part of "IF" function returns false even if true. ??

    Thanks, but my formula does work now. I am just trying to find an eaisier way
    to copy it now.
    Here is what I have done to try to help it copy better:

    =IF((Fin3_enddate=DATE(2005,12,31)),(IF(ISERROR(SUM((F32)/(DAYS360(Fin3_startdate,$X1,FALSE)))*(365))*(F13),"",(SUM(((F32)/(DAYS360(Fin3_startdate,$X1,FALSE)))*(365))*(F13)))),F12)

    "RFJ" wrote:

    > You're trying to compare a cell which is formatted as a date with a multiple
    > division (12 divided by 31 divided by 2005) so it will never work
    >
    > A quick workaround is to put your date in another cell, say z99 and then
    > change your formula to
    >
    > If((O12=Z99,true,false)
    >
    >
    > "Bill R" <BillR@discussions.microsoft.com> wrote in message
    > news:7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com...
    > > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)))),F12)
    > >
    > > The first part of the formula, (O12=12/31/2005), returns false even if
    > > it's
    > > true. The rest of the formula works great.
    > >
    > > Any suggestions?
    > >

    >
    >
    >


  2. #2
    JE McGimpsey
    Guest

    Re: First part of "IF" function returns false even if true. ??

    Unless O12 = 0.0001930657227898, the comparison will always be false.

    12 divided by 31 divided by 2005 = 0.000193...

    You could force XL to parse as a date by enclosing "12/31/2005" in
    quotes, or you could use the DATE function:

    IF(O12=DATE(2005,12,31),....


    In article <7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com>,
    Bill R <BillR@discussions.microsoft.com> wrote:

    > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE
    > )))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*
    > (F13)))),F12)
    >
    > The first part of the formula, (O12=12/31/2005), returns false even if it's
    > true. The rest of the formula works great.
    >
    > Any suggestions?


  3. #3
    RFJ
    Guest

    Re: First part of "IF" function returns false even if true. ??

    You're trying to compare a cell which is formatted as a date with a multiple
    division (12 divided by 31 divided by 2005) so it will never work

    A quick workaround is to put your date in another cell, say z99 and then
    change your formula to

    If((O12=Z99,true,false)


    "Bill R" <BillR@discussions.microsoft.com> wrote in message
    news:7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com...
    > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)))),F12)
    >
    > The first part of the formula, (O12=12/31/2005), returns false even if
    > it's
    > true. The rest of the formula works great.
    >
    > Any suggestions?
    >




  4. #4
    Bill R
    Guest

    Re: First part of "IF" function returns false even if true. ??

    Works great! Thanks! One more question,please. When I copy the formula to
    other cells the cell references that refer to dates are not correct. How can
    I fix it? I am pulling the dates from a list on the same sheet. Thanks again.

    Here is the final working formula:
    =IF((O12=DATE(2005,12,31)),(IF(ISERROR(SUM((F32)/(DAYS360(N12,$X1,FALSE)))*(365))*(F13),"",(SUM(((F32)/(DAYS360(N12,$X1,FALSE)))*(365))*(F13)))),F12)

    "JE McGimpsey" wrote:

    > Unless O12 = 0.0001930657227898, the comparison will always be false.
    >
    > 12 divided by 31 divided by 2005 = 0.000193...
    >
    > You could force XL to parse as a date by enclosing "12/31/2005" in
    > quotes, or you could use the DATE function:
    >
    > IF(O12=DATE(2005,12,31),....
    >
    >
    > In article <7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com>,
    > Bill R <BillR@discussions.microsoft.com> wrote:
    >
    > > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE
    > > )))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*
    > > (F13)))),F12)
    > >
    > > The first part of the formula, (O12=12/31/2005), returns false even if it's
    > > true. The rest of the formula works great.
    > >
    > > Any suggestions?

    >


  5. #5
    Bill R
    Guest

    Re: First part of "IF" function returns false even if true. ??

    Thanks, but my formula does work now. I am just trying to find an eaisier way
    to copy it now.
    Here is what I have done to try to help it copy better:

    =IF((Fin3_enddate=DATE(2005,12,31)),(IF(ISERROR(SUM((F32)/(DAYS360(Fin3_startdate,$X1,FALSE)))*(365))*(F13),"",(SUM(((F32)/(DAYS360(Fin3_startdate,$X1,FALSE)))*(365))*(F13)))),F12)

    "RFJ" wrote:

    > You're trying to compare a cell which is formatted as a date with a multiple
    > division (12 divided by 31 divided by 2005) so it will never work
    >
    > A quick workaround is to put your date in another cell, say z99 and then
    > change your formula to
    >
    > If((O12=Z99,true,false)
    >
    >
    > "Bill R" <BillR@discussions.microsoft.com> wrote in message
    > news:7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com...
    > > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)))),F12)
    > >
    > > The first part of the formula, (O12=12/31/2005), returns false even if
    > > it's
    > > true. The rest of the formula works great.
    > >
    > > Any suggestions?
    > >

    >
    >
    >


  6. #6
    JE McGimpsey
    Guest

    Re: First part of "IF" function returns false even if true. ??

    Unless O12 = 0.0001930657227898, the comparison will always be false.

    12 divided by 31 divided by 2005 = 0.000193...

    You could force XL to parse as a date by enclosing "12/31/2005" in
    quotes, or you could use the DATE function:

    IF(O12=DATE(2005,12,31),....


    In article <7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com>,
    Bill R <BillR@discussions.microsoft.com> wrote:

    > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE
    > )))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*
    > (F13)))),F12)
    >
    > The first part of the formula, (O12=12/31/2005), returns false even if it's
    > true. The rest of the formula works great.
    >
    > Any suggestions?


  7. #7
    RFJ
    Guest

    Re: First part of "IF" function returns false even if true. ??

    You're trying to compare a cell which is formatted as a date with a multiple
    division (12 divided by 31 divided by 2005) so it will never work

    A quick workaround is to put your date in another cell, say z99 and then
    change your formula to

    If((O12=Z99,true,false)


    "Bill R" <BillR@discussions.microsoft.com> wrote in message
    news:7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com...
    > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)))),F12)
    >
    > The first part of the formula, (O12=12/31/2005), returns false even if
    > it's
    > true. The rest of the formula works great.
    >
    > Any suggestions?
    >




  8. #8
    Bill R
    Guest

    Re: First part of "IF" function returns false even if true. ??

    Works great! Thanks! One more question,please. When I copy the formula to
    other cells the cell references that refer to dates are not correct. How can
    I fix it? I am pulling the dates from a list on the same sheet. Thanks again.

    Here is the final working formula:
    =IF((O12=DATE(2005,12,31)),(IF(ISERROR(SUM((F32)/(DAYS360(N12,$X1,FALSE)))*(365))*(F13),"",(SUM(((F32)/(DAYS360(N12,$X1,FALSE)))*(365))*(F13)))),F12)

    "JE McGimpsey" wrote:

    > Unless O12 = 0.0001930657227898, the comparison will always be false.
    >
    > 12 divided by 31 divided by 2005 = 0.000193...
    >
    > You could force XL to parse as a date by enclosing "12/31/2005" in
    > quotes, or you could use the DATE function:
    >
    > IF(O12=DATE(2005,12,31),....
    >
    >
    > In article <7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com>,
    > Bill R <BillR@discussions.microsoft.com> wrote:
    >
    > > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE
    > > )))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*
    > > (F13)))),F12)
    > >
    > > The first part of the formula, (O12=12/31/2005), returns false even if it's
    > > true. The rest of the formula works great.
    > >
    > > Any suggestions?

    >


  9. #9
    Bill R
    Guest

    Re: First part of "IF" function returns false even if true. ??

    Thanks, but my formula does work now. I am just trying to find an eaisier way
    to copy it now.
    Here is what I have done to try to help it copy better:

    =IF((Fin3_enddate=DATE(2005,12,31)),(IF(ISERROR(SUM((F32)/(DAYS360(Fin3_startdate,$X1,FALSE)))*(365))*(F13),"",(SUM(((F32)/(DAYS360(Fin3_startdate,$X1,FALSE)))*(365))*(F13)))),F12)

    "RFJ" wrote:

    > You're trying to compare a cell which is formatted as a date with a multiple
    > division (12 divided by 31 divided by 2005) so it will never work
    >
    > A quick workaround is to put your date in another cell, say z99 and then
    > change your formula to
    >
    > If((O12=Z99,true,false)
    >
    >
    > "Bill R" <BillR@discussions.microsoft.com> wrote in message
    > news:7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com...
    > > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)))),F12)
    > >
    > > The first part of the formula, (O12=12/31/2005), returns false even if
    > > it's
    > > true. The rest of the formula works great.
    > >
    > > Any suggestions?
    > >

    >
    >
    >


  10. #10
    RFJ
    Guest

    Re: First part of "IF" function returns false even if true. ??

    You're trying to compare a cell which is formatted as a date with a multiple
    division (12 divided by 31 divided by 2005) so it will never work

    A quick workaround is to put your date in another cell, say z99 and then
    change your formula to

    If((O12=Z99,true,false)


    "Bill R" <BillR@discussions.microsoft.com> wrote in message
    news:7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com...
    > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)))),F12)
    >
    > The first part of the formula, (O12=12/31/2005), returns false even if
    > it's
    > true. The rest of the formula works great.
    >
    > Any suggestions?
    >




  11. #11
    Bill R
    Guest

    Re: First part of "IF" function returns false even if true. ??

    Works great! Thanks! One more question,please. When I copy the formula to
    other cells the cell references that refer to dates are not correct. How can
    I fix it? I am pulling the dates from a list on the same sheet. Thanks again.

    Here is the final working formula:
    =IF((O12=DATE(2005,12,31)),(IF(ISERROR(SUM((F32)/(DAYS360(N12,$X1,FALSE)))*(365))*(F13),"",(SUM(((F32)/(DAYS360(N12,$X1,FALSE)))*(365))*(F13)))),F12)

    "JE McGimpsey" wrote:

    > Unless O12 = 0.0001930657227898, the comparison will always be false.
    >
    > 12 divided by 31 divided by 2005 = 0.000193...
    >
    > You could force XL to parse as a date by enclosing "12/31/2005" in
    > quotes, or you could use the DATE function:
    >
    > IF(O12=DATE(2005,12,31),....
    >
    >
    > In article <7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com>,
    > Bill R <BillR@discussions.microsoft.com> wrote:
    >
    > > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE
    > > )))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*
    > > (F13)))),F12)
    > >
    > > The first part of the formula, (O12=12/31/2005), returns false even if it's
    > > true. The rest of the formula works great.
    > >
    > > Any suggestions?

    >


  12. #12
    JE McGimpsey
    Guest

    Re: First part of "IF" function returns false even if true. ??

    Unless O12 = 0.0001930657227898, the comparison will always be false.

    12 divided by 31 divided by 2005 = 0.000193...

    You could force XL to parse as a date by enclosing "12/31/2005" in
    quotes, or you could use the DATE function:

    IF(O12=DATE(2005,12,31),....


    In article <7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com>,
    Bill R <BillR@discussions.microsoft.com> wrote:

    > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE
    > )))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*
    > (F13)))),F12)
    >
    > The first part of the formula, (O12=12/31/2005), returns false even if it's
    > true. The rest of the formula works great.
    >
    > Any suggestions?


  13. #13
    Bill R
    Guest

    Re: First part of "IF" function returns false even if true. ??

    Works great! Thanks! One more question,please. When I copy the formula to
    other cells the cell references that refer to dates are not correct. How can
    I fix it? I am pulling the dates from a list on the same sheet. Thanks again.

    Here is the final working formula:
    =IF((O12=DATE(2005,12,31)),(IF(ISERROR(SUM((F32)/(DAYS360(N12,$X1,FALSE)))*(365))*(F13),"",(SUM(((F32)/(DAYS360(N12,$X1,FALSE)))*(365))*(F13)))),F12)

    "JE McGimpsey" wrote:

    > Unless O12 = 0.0001930657227898, the comparison will always be false.
    >
    > 12 divided by 31 divided by 2005 = 0.000193...
    >
    > You could force XL to parse as a date by enclosing "12/31/2005" in
    > quotes, or you could use the DATE function:
    >
    > IF(O12=DATE(2005,12,31),....
    >
    >
    > In article <7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com>,
    > Bill R <BillR@discussions.microsoft.com> wrote:
    >
    > > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE
    > > )))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*
    > > (F13)))),F12)
    > >
    > > The first part of the formula, (O12=12/31/2005), returns false even if it's
    > > true. The rest of the formula works great.
    > >
    > > Any suggestions?

    >


  14. #14
    RFJ
    Guest

    Re: First part of "IF" function returns false even if true. ??

    You're trying to compare a cell which is formatted as a date with a multiple
    division (12 divided by 31 divided by 2005) so it will never work

    A quick workaround is to put your date in another cell, say z99 and then
    change your formula to

    If((O12=Z99,true,false)


    "Bill R" <BillR@discussions.microsoft.com> wrote in message
    news:7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com...
    > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)))),F12)
    >
    > The first part of the formula, (O12=12/31/2005), returns false even if
    > it's
    > true. The rest of the formula works great.
    >
    > Any suggestions?
    >




  15. #15
    Bill R
    Guest

    Re: First part of "IF" function returns false even if true. ??

    Thanks, but my formula does work now. I am just trying to find an eaisier way
    to copy it now.
    Here is what I have done to try to help it copy better:

    =IF((Fin3_enddate=DATE(2005,12,31)),(IF(ISERROR(SUM((F32)/(DAYS360(Fin3_startdate,$X1,FALSE)))*(365))*(F13),"",(SUM(((F32)/(DAYS360(Fin3_startdate,$X1,FALSE)))*(365))*(F13)))),F12)

    "RFJ" wrote:

    > You're trying to compare a cell which is formatted as a date with a multiple
    > division (12 divided by 31 divided by 2005) so it will never work
    >
    > A quick workaround is to put your date in another cell, say z99 and then
    > change your formula to
    >
    > If((O12=Z99,true,false)
    >
    >
    > "Bill R" <BillR@discussions.microsoft.com> wrote in message
    > news:7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com...
    > > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)))),F12)
    > >
    > > The first part of the formula, (O12=12/31/2005), returns false even if
    > > it's
    > > true. The rest of the formula works great.
    > >
    > > Any suggestions?
    > >

    >
    >
    >


  16. #16
    JE McGimpsey
    Guest

    Re: First part of "IF" function returns false even if true. ??

    Unless O12 = 0.0001930657227898, the comparison will always be false.

    12 divided by 31 divided by 2005 = 0.000193...

    You could force XL to parse as a date by enclosing "12/31/2005" in
    quotes, or you could use the DATE function:

    IF(O12=DATE(2005,12,31),....


    In article <7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com>,
    Bill R <BillR@discussions.microsoft.com> wrote:

    > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE
    > )))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*
    > (F13)))),F12)
    >
    > The first part of the formula, (O12=12/31/2005), returns false even if it's
    > true. The rest of the formula works great.
    >
    > Any suggestions?


  17. #17
    Bill R
    Guest

    Re: First part of "IF" function returns false even if true. ??

    Works great! Thanks! One more question,please. When I copy the formula to
    other cells the cell references that refer to dates are not correct. How can
    I fix it? I am pulling the dates from a list on the same sheet. Thanks again.

    Here is the final working formula:
    =IF((O12=DATE(2005,12,31)),(IF(ISERROR(SUM((F32)/(DAYS360(N12,$X1,FALSE)))*(365))*(F13),"",(SUM(((F32)/(DAYS360(N12,$X1,FALSE)))*(365))*(F13)))),F12)

    "JE McGimpsey" wrote:

    > Unless O12 = 0.0001930657227898, the comparison will always be false.
    >
    > 12 divided by 31 divided by 2005 = 0.000193...
    >
    > You could force XL to parse as a date by enclosing "12/31/2005" in
    > quotes, or you could use the DATE function:
    >
    > IF(O12=DATE(2005,12,31),....
    >
    >
    > In article <7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com>,
    > Bill R <BillR@discussions.microsoft.com> wrote:
    >
    > > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE
    > > )))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*
    > > (F13)))),F12)
    > >
    > > The first part of the formula, (O12=12/31/2005), returns false even if it's
    > > true. The rest of the formula works great.
    > >
    > > Any suggestions?

    >


  18. #18
    RFJ
    Guest

    Re: First part of "IF" function returns false even if true. ??

    You're trying to compare a cell which is formatted as a date with a multiple
    division (12 divided by 31 divided by 2005) so it will never work

    A quick workaround is to put your date in another cell, say z99 and then
    change your formula to

    If((O12=Z99,true,false)


    "Bill R" <BillR@discussions.microsoft.com> wrote in message
    news:7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com...
    > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)))),F12)
    >
    > The first part of the formula, (O12=12/31/2005), returns false even if
    > it's
    > true. The rest of the formula works great.
    >
    > Any suggestions?
    >




  19. #19
    JE McGimpsey
    Guest

    Re: First part of "IF" function returns false even if true. ??

    Unless O12 = 0.0001930657227898, the comparison will always be false.

    12 divided by 31 divided by 2005 = 0.000193...

    You could force XL to parse as a date by enclosing "12/31/2005" in
    quotes, or you could use the DATE function:

    IF(O12=DATE(2005,12,31),....


    In article <7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com>,
    Bill R <BillR@discussions.microsoft.com> wrote:

    > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE
    > )))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*
    > (F13)))),F12)
    >
    > The first part of the formula, (O12=12/31/2005), returns false even if it's
    > true. The rest of the formula works great.
    >
    > Any suggestions?


  20. #20
    Bill R
    Guest

    Re: First part of "IF" function returns false even if true. ??

    Thanks, but my formula does work now. I am just trying to find an eaisier way
    to copy it now.
    Here is what I have done to try to help it copy better:

    =IF((Fin3_enddate=DATE(2005,12,31)),(IF(ISERROR(SUM((F32)/(DAYS360(Fin3_startdate,$X1,FALSE)))*(365))*(F13),"",(SUM(((F32)/(DAYS360(Fin3_startdate,$X1,FALSE)))*(365))*(F13)))),F12)

    "RFJ" wrote:

    > You're trying to compare a cell which is formatted as a date with a multiple
    > division (12 divided by 31 divided by 2005) so it will never work
    >
    > A quick workaround is to put your date in another cell, say z99 and then
    > change your formula to
    >
    > If((O12=Z99,true,false)
    >
    >
    > "Bill R" <BillR@discussions.microsoft.com> wrote in message
    > news:7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com...
    > > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)))),F12)
    > >
    > > The first part of the formula, (O12=12/31/2005), returns false even if
    > > it's
    > > true. The rest of the formula works great.
    > >
    > > Any suggestions?
    > >

    >
    >
    >


  21. #21
    Bill R
    Guest

    Re: First part of "IF" function returns false even if true. ??

    Works great! Thanks! One more question,please. When I copy the formula to
    other cells the cell references that refer to dates are not correct. How can
    I fix it? I am pulling the dates from a list on the same sheet. Thanks again.

    Here is the final working formula:
    =IF((O12=DATE(2005,12,31)),(IF(ISERROR(SUM((F32)/(DAYS360(N12,$X1,FALSE)))*(365))*(F13),"",(SUM(((F32)/(DAYS360(N12,$X1,FALSE)))*(365))*(F13)))),F12)

    "JE McGimpsey" wrote:

    > Unless O12 = 0.0001930657227898, the comparison will always be false.
    >
    > 12 divided by 31 divided by 2005 = 0.000193...
    >
    > You could force XL to parse as a date by enclosing "12/31/2005" in
    > quotes, or you could use the DATE function:
    >
    > IF(O12=DATE(2005,12,31),....
    >
    >
    > In article <7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com>,
    > Bill R <BillR@discussions.microsoft.com> wrote:
    >
    > > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE
    > > )))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*
    > > (F13)))),F12)
    > >
    > > The first part of the formula, (O12=12/31/2005), returns false even if it's
    > > true. The rest of the formula works great.
    > >
    > > Any suggestions?

    >


  22. #22
    JE McGimpsey
    Guest

    Re: First part of "IF" function returns false even if true. ??

    Unless O12 = 0.0001930657227898, the comparison will always be false.

    12 divided by 31 divided by 2005 = 0.000193...

    You could force XL to parse as a date by enclosing "12/31/2005" in
    quotes, or you could use the DATE function:

    IF(O12=DATE(2005,12,31),....


    In article <7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com>,
    Bill R <BillR@discussions.microsoft.com> wrote:

    > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE
    > )))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*
    > (F13)))),F12)
    >
    > The first part of the formula, (O12=12/31/2005), returns false even if it's
    > true. The rest of the formula works great.
    >
    > Any suggestions?


  23. #23
    RFJ
    Guest

    Re: First part of "IF" function returns false even if true. ??

    You're trying to compare a cell which is formatted as a date with a multiple
    division (12 divided by 31 divided by 2005) so it will never work

    A quick workaround is to put your date in another cell, say z99 and then
    change your formula to

    If((O12=Z99,true,false)


    "Bill R" <BillR@discussions.microsoft.com> wrote in message
    news:7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com...
    > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)))),F12)
    >
    > The first part of the formula, (O12=12/31/2005), returns false even if
    > it's
    > true. The rest of the formula works great.
    >
    > Any suggestions?
    >




  24. #24
    Bill R
    Guest

    Re: First part of "IF" function returns false even if true. ??

    Thanks, but my formula does work now. I am just trying to find an eaisier way
    to copy it now.
    Here is what I have done to try to help it copy better:

    =IF((Fin3_enddate=DATE(2005,12,31)),(IF(ISERROR(SUM((F32)/(DAYS360(Fin3_startdate,$X1,FALSE)))*(365))*(F13),"",(SUM(((F32)/(DAYS360(Fin3_startdate,$X1,FALSE)))*(365))*(F13)))),F12)

    "RFJ" wrote:

    > You're trying to compare a cell which is formatted as a date with a multiple
    > division (12 divided by 31 divided by 2005) so it will never work
    >
    > A quick workaround is to put your date in another cell, say z99 and then
    > change your formula to
    >
    > If((O12=Z99,true,false)
    >
    >
    > "Bill R" <BillR@discussions.microsoft.com> wrote in message
    > news:7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com...
    > > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)))),F12)
    > >
    > > The first part of the formula, (O12=12/31/2005), returns false even if
    > > it's
    > > true. The rest of the formula works great.
    > >
    > > Any suggestions?
    > >

    >
    >
    >


  25. #25
    Bill R
    Guest

    Re: First part of "IF" function returns false even if true. ??

    Thanks, but my formula does work now. I am just trying to find an eaisier way
    to copy it now.
    Here is what I have done to try to help it copy better:

    =IF((Fin3_enddate=DATE(2005,12,31)),(IF(ISERROR(SUM((F32)/(DAYS360(Fin3_startdate,$X1,FALSE)))*(365))*(F13),"",(SUM(((F32)/(DAYS360(Fin3_startdate,$X1,FALSE)))*(365))*(F13)))),F12)

    "RFJ" wrote:

    > You're trying to compare a cell which is formatted as a date with a multiple
    > division (12 divided by 31 divided by 2005) so it will never work
    >
    > A quick workaround is to put your date in another cell, say z99 and then
    > change your formula to
    >
    > If((O12=Z99,true,false)
    >
    >
    > "Bill R" <BillR@discussions.microsoft.com> wrote in message
    > news:7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com...
    > > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)))),F12)
    > >
    > > The first part of the formula, (O12=12/31/2005), returns false even if
    > > it's
    > > true. The rest of the formula works great.
    > >
    > > Any suggestions?
    > >

    >
    >
    >


  26. #26
    RFJ
    Guest

    Re: First part of "IF" function returns false even if true. ??

    You're trying to compare a cell which is formatted as a date with a multiple
    division (12 divided by 31 divided by 2005) so it will never work

    A quick workaround is to put your date in another cell, say z99 and then
    change your formula to

    If((O12=Z99,true,false)


    "Bill R" <BillR@discussions.microsoft.com> wrote in message
    news:7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com...
    > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)))),F12)
    >
    > The first part of the formula, (O12=12/31/2005), returns false even if
    > it's
    > true. The rest of the formula works great.
    >
    > Any suggestions?
    >




  27. #27
    Bill R
    Guest

    Re: First part of "IF" function returns false even if true. ??

    Works great! Thanks! One more question,please. When I copy the formula to
    other cells the cell references that refer to dates are not correct. How can
    I fix it? I am pulling the dates from a list on the same sheet. Thanks again.

    Here is the final working formula:
    =IF((O12=DATE(2005,12,31)),(IF(ISERROR(SUM((F32)/(DAYS360(N12,$X1,FALSE)))*(365))*(F13),"",(SUM(((F32)/(DAYS360(N12,$X1,FALSE)))*(365))*(F13)))),F12)

    "JE McGimpsey" wrote:

    > Unless O12 = 0.0001930657227898, the comparison will always be false.
    >
    > 12 divided by 31 divided by 2005 = 0.000193...
    >
    > You could force XL to parse as a date by enclosing "12/31/2005" in
    > quotes, or you could use the DATE function:
    >
    > IF(O12=DATE(2005,12,31),....
    >
    >
    > In article <7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com>,
    > Bill R <BillR@discussions.microsoft.com> wrote:
    >
    > > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE
    > > )))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*
    > > (F13)))),F12)
    > >
    > > The first part of the formula, (O12=12/31/2005), returns false even if it's
    > > true. The rest of the formula works great.
    > >
    > > Any suggestions?

    >


  28. #28
    JE McGimpsey
    Guest

    Re: First part of "IF" function returns false even if true. ??

    Unless O12 = 0.0001930657227898, the comparison will always be false.

    12 divided by 31 divided by 2005 = 0.000193...

    You could force XL to parse as a date by enclosing "12/31/2005" in
    quotes, or you could use the DATE function:

    IF(O12=DATE(2005,12,31),....


    In article <7885A0AF-0FAB-46E9-B182-047D6F5ECF5C@microsoft.com>,
    Bill R <BillR@discussions.microsoft.com> wrote:

    > =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE
    > )))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*
    > (F13)))),F12)
    >
    > The first part of the formula, (O12=12/31/2005), returns false even if it's
    > true. The rest of the formula works great.
    >
    > Any suggestions?


  29. #29
    Bill R
    Guest

    First part of "IF" function returns false even if true. ??

    =IF((O12=12/31/2005),(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)),"",(SUM(((F32)/(DAYS360(DATE(2004,12,31),X1,FALSE)))*(360))*(F13)))),F12)

    The first part of the formula, (O12=12/31/2005), returns false even if it's
    true. The rest of the formula works great.

    Any suggestions?


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1