+ Reply to Thread
Results 1 to 6 of 6

Trying to pull date from field getting error.

  1. #1
    Bill R
    Guest

    Trying to pull date from field getting error.

    =IF(ISBLANK(Dec!E2),YTD!F12,(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2005,1,1),X1,FALSE)))*(360))*(F13)),"",(SUM((F32)/(DAYS360(DATE(2005,1,1),X1,FALSE))))*(360))*(F13)))

    This is my formula, and it works but instead of entering the date (2005,1,1)
    manually I want it to pull from cell (H2) but when I reference (H2) I get an
    error message telling me that I have too many arguments. How can I make this
    work?

  2. #2
    Registered User
    Join Date
    08-24-2005
    Posts
    33
    does 'datevalue (h2)' help?

    It gets rid of the need to split up months and stuff.

    Differences between datevalues give you the number of days.

  3. #3
    bj
    Guest

    RE: Trying to pull date from field getting error.

    did you enter
    ....360(H2,X1...
    or ...360(date(H2),X1...

    Why are you using the ...Sum...


    "Bill R" wrote:

    > =IF(ISBLANK(Dec!E2),YTD!F12,(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2005,1,1),X1,FALSE)))*(360))*(F13)),"",(SUM((F32)/(DAYS360(DATE(2005,1,1),X1,FALSE))))*(360))*(F13)))
    >
    > This is my formula, and it works but instead of entering the date (2005,1,1)
    > manually I want it to pull from cell (H2) but when I reference (H2) I get an
    > error message telling me that I have too many arguments. How can I make this
    > work?


  4. #4
    Bill R
    Guest

    RE: Trying to pull date from field getting error.

    When I do as you suggest I get a message telling me that I am using too many
    arguments. The SUM is being used because I need the sum of the formula.

    "bj" wrote:

    > did you enter
    > ...360(H2,X1...
    > or ...360(date(H2),X1...
    >
    > Why are you using the ...Sum...
    >
    >
    > "Bill R" wrote:
    >
    > > =IF(ISBLANK(Dec!E2),YTD!F12,(IF(ISERROR(SUM(((F32)/(DAYS360(DATE(2005,1,1),X1,FALSE)))*(360))*(F13)),"",(SUM((F32)/(DAYS360(DATE(2005,1,1),X1,FALSE))))*(360))*(F13)))
    > >
    > > This is my formula, and it works but instead of entering the date (2005,1,1)
    > > manually I want it to pull from cell (H2) but when I reference (H2) I get an
    > > error message telling me that I have too many arguments. How can I make this
    > > work?


  5. #5
    Bill R
    Guest

    Re: Trying to pull date from field getting error.

    The last part of the formula dosen't work when I replace 'date' with
    'datavalue'. There has got to be a way to code the formula to simple take the
    '2005,1,1' from the H2 field and insert it into the formula. Any other ideas?


    "gearoi" wrote:

    >
    > does 'datevalue (h2)' help?
    >
    > It gets rid of the need to split up months and stuff.
    >
    > Differences between datevalues give you the number of days.
    >
    >
    > --
    > gearoi
    > ------------------------------------------------------------------------
    > gearoi's Profile: http://www.excelforum.com/member.php...o&userid=26576
    > View this thread: http://www.excelforum.com/showthread...hreadid=401924
    >
    >


  6. #6
    Registered User
    Join Date
    08-24-2005
    Posts
    33
    datevalue, not datavalue

    try that.

+ 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