Results 1 to 3 of 3

Thread: Excel Function or VBA

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2002
    Location
    Virginia
    Posts
    88

    Excel Function or VBA

    Hello ,
    I would like to write an excel function or a VBA function in Excel, What it will do is:
    If the amount in column N is more that zero, Go and look at column D and E and F by choosing the latest date from these three columns and then putting the difference in dates between that latest date and Now in Column B. Hope that it make sense

    Thanks for any help .....

  2. #2
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    sounds like a normal EXCEL entry like:
    VB Code:
    1. If (N1>0; Now- (max(D1,E1,F1));empty)

    Note: I don'T have EXCEL on hand, so the formatting is definitley false, but you should get the point.

    put that code into cell b1
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2002
    Location
    Virginia
    Posts
    88

    Talking SOLVED

    Thank s a million , it did what i intended to have .

    thanks

Posting Permissions

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



Click Here to Expand Forum to Full Width