+ Reply to Thread
Results 1 to 3 of 3

Date Time Field

Hybrid View

Guest Date Time Field 05-18-2006, 04:55 PM
Guest Re: Date Time Field 05-18-2006, 05:40 PM
Guest Re: Date Time Field 05-18-2006, 06:15 PM
  1. #1
    SJC
    Guest

    Date Time Field

    Is there a way to make the cost column do the following with a formula?

    Start Cost
    4/1/06 6:45 AM $10
    4/1/06 7:00 AM $8
    4/1/06 7:15 AM $6
    4/1/06 6:00 PM $10
    4/1/06 6:15 PM $8
    4/1/06 6:30 PM $6
    4/1/06 6:45 PM $6
    4/1/06 7:00 PM $6
    4/1/06 7:15 PM $6
    4/2/06 6:45 AM $10
    4/2/06 7:00 AM $8
    4/2/06 7:15 AM $6
    4/2/06 6:00 PM $10
    4/2/06 6:15 PM $8
    4/2/06 6:30 PM $6
    4/2/06 6:45 PM $6
    4/2/06 7:00 PM $6
    4/2/06 7:15 PM $6
    4/3/06 6:45 AM $10
    4/3/06 7:00 AM $8
    4/3/06 7:15 AM $6
    4/3/06 7:30 AM $6
    4/3/06 7:45 AM $6
    4/3/06 6:00 PM $10
    4/3/06 6:15 PM $8
    4/3/06 6:30 PM $6
    4/3/06 6:45 PM $6
    4/3/06 7:00 PM $6
    4/3/06 7:15 PM $6
    4/3/06 7:30 PM $6

    Basically I need to assign $10 cost to the first occurence in the AM and $10
    cost to the first occurence in the PM. Then, I have to assign $8 cost to the
    second occurence in the AM and $8 cost to the second occurence in the PM.
    Then, I have to assign $6 cost to every occurence 3rd, 4th, or so on.

  2. #2
    Dave O
    Guest

    Re: Date Time Field

    With headers in A1 and B1, a blank row 2, and Excel readable dates
    starting in A3, I used this formula to generate the same results as
    your sample data:
    =IF(INT(A3)<>INT(A2),10,IF(AND(MOD(A3,1)>=0.5,MOD(A2,1)<0.5),10,IF(B2=10,8,IF(B2=8,6,IF(B2=6,6)))))


  3. #3
    SJC
    Guest

    Re: Date Time Field

    Thanks Dave O. That works perfectly

    "Dave O" wrote:

    > With headers in A1 and B1, a blank row 2, and Excel readable dates
    > starting in A3, I used this formula to generate the same results as
    > your sample data:
    > =IF(INT(A3)<>INT(A2),10,IF(AND(MOD(A3,1)>=0.5,MOD(A2,1)<0.5),10,IF(B2=10,8,IF(B2=8,6,IF(B2=6,6)))))
    >
    >


+ 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