+ Reply to Thread
Results 1 to 3 of 3

VBA help

  1. #1
    Ken
    Guest

    VBA help

    I am designing a measurement spreadsheet with the
    following conditions:

    DESCRIPTION:
    For a Project, every Milestone is linked to another
    milestone.

    If Linking milestone 'ML' was completed on time, then
    check if this Milestone was completed on time too by
    comparing the number of days 'N' and the estimated number
    of days for Milestone 'E'.

    N= E "On Time"
    N > E "Over Time"
    N < E "Under Time"

    SO IT WOULD BE SOMETHING LIKE

    FOR SAME PROJECT NUMBER
    IF ML (Actual Date of Completion) = ML (Estimated Date of
    completion )

    THEN

    COMPARE N and E

    N= E "On Time"
    N > E "Over Time"
    N < E "Under Time"

    Thanks in advance.
    Ken

  2. #2
    JulieD
    Guest

    Re: VBA help

    Hi Ken

    are you looking for an IF statement that says

    =IF(A1=B1,"On Time",IF(A1>B1,"Over Time","Under Time"))

    where A1 has N it in and B1 has E

    or ???

    Cheers
    JulieD

    "Ken" <anonymous@discussions.microsoft.com> wrote in message
    news:2a0901c51dd7$2af30170$a601280a@phx.gbl...
    >I am designing a measurement spreadsheet with the
    > following conditions:
    >
    > DESCRIPTION:
    > For a Project, every Milestone is linked to another
    > milestone.
    >
    > If Linking milestone 'ML' was completed on time, then
    > check if this Milestone was completed on time too by
    > comparing the number of days 'N' and the estimated number
    > of days for Milestone 'E'.
    >
    > N= E "On Time"
    > N > E "Over Time"
    > N < E "Under Time"
    >
    > SO IT WOULD BE SOMETHING LIKE
    >
    > FOR SAME PROJECT NUMBER
    > IF ML (Actual Date of Completion) = ML (Estimated Date of
    > completion )
    >
    > THEN
    >
    > COMPARE N and E
    >
    > N= E "On Time"
    > N > E "Over Time"
    > N < E "Under Time"
    >
    > Thanks in advance.
    > Ken




  3. #3
    JE McGimpsey
    Guest

    Re: VBA help

    One way:

    =IF(MLAct=MLEst,CHOOSE(SIGN(N-E)+2,"Under","On","Over")&" Time","")

    In article <2a0901c51dd7$2af30170$a601280a@phx.gbl>,
    "Ken" <anonymous@discussions.microsoft.com> wrote:

    > I am designing a measurement spreadsheet with the
    > following conditions:
    >
    > DESCRIPTION:
    > For a Project, every Milestone is linked to another
    > milestone.
    >
    > If Linking milestone 'ML' was completed on time, then
    > check if this Milestone was completed on time too by
    > comparing the number of days 'N' and the estimated number
    > of days for Milestone 'E'.
    >
    > N= E "On Time"
    > N > E "Over Time"
    > N < E "Under Time"
    >
    > SO IT WOULD BE SOMETHING LIKE
    >
    > FOR SAME PROJECT NUMBER
    > IF ML (Actual Date of Completion) = ML (Estimated Date of
    > completion )
    >
    > THEN
    >
    > COMPARE N and E
    >
    > N= E "On Time"
    > N > E "Over Time"
    > N < E "Under Time"
    >
    > Thanks in advance.
    > Ken


+ 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