+ Reply to Thread
Results 1 to 5 of 5

Code:help

  1. #1
    Greg Brow
    Guest

    Code:help


    How can I make this work,

    =IF(ISBLANK(F17),"",IF((G17-F17)*24<5,(G17-F17)*24,IF((G17-F17)*24>8,(G17-F17)*24-1,(G17-F17)*24-0.5)))

    1st part works perfectly and the line below works aswell can someone please
    tell me how to make the two into the same code please

    =if(G18="Off line",7,"")

    Thanks in Advance

    Greg



  2. #2
    Markus Scheible
    Guest

    help

    Hi Greg,

    try posting this in

    excel.worksheet.functions (12132)

    because this is the VBA newsgroup.


    Best

    Markus

    >-----Original Message-----
    >
    >How can I make this work,
    >
    >=IF(ISBLANK(F17),"",IF((G17-F17)*24<5,(G17-F17)*24,IF

    ((G17-F17)*24>8,(G17-F17)*24-1,(G17-F17)*24-0.5)))
    >
    >1st part works perfectly and the line below works aswell

    can someone please
    >tell me how to make the two into the same code please
    >
    >=if(G18="Off line",7,"")
    >
    >Thanks in Advance
    >
    >Greg
    >
    >
    >.
    >


  3. #3
    Tom Ogilvy
    Guest

    re: Code:help

    It depends on how you want the rules to be evaluated, but

    the second one says to display 7 or "". How does that relate to the first
    one which only shows a "" when F17 is blank.


    =if(G18="Off
    line",7,IF(ISBLANK(F17),"",IF((G17-F17)*24<5,(G17-F17)*24,IF((G17-F17)*24>8,
    (G17-F17)*24-1,(G17-F17)*24-0.5))))

    might be one way, but it is a wild guess since you provide no basis for
    determining how to combine them.

    --
    Regards,
    Tom Ogilvy



    "Greg Brow" <[email protected]> wrote in message
    news:[email protected]...
    >
    > How can I make this work,
    >
    >

    =IF(ISBLANK(F17),"",IF((G17-F17)*24<5,(G17-F17)*24,IF((G17-F17)*24>8,(G17-F1
    7)*24-1,(G17-F17)*24-0.5)))
    >
    > 1st part works perfectly and the line below works aswell can someone

    please
    > tell me how to make the two into the same code please
    >
    > =if(G18="Off line",7,"")
    >
    > Thanks in Advance
    >
    > Greg
    >
    >




  4. #4
    Greg Brow
    Guest

    re: Code:help

    I did after this one I realised after the fact

    Greg

    "Markus Scheible" <[email protected]> wrote in message
    news:[email protected]...
    > Hi Greg,
    >
    > try posting this in
    >
    > excel.worksheet.functions (12132)
    >
    > because this is the VBA newsgroup.
    >
    >
    > Best
    >
    > Markus
    >
    >>-----Original Message-----
    >>
    >>How can I make this work,
    >>
    >>=IF(ISBLANK(F17),"",IF((G17-F17)*24<5,(G17-F17)*24,IF

    > ((G17-F17)*24>8,(G17-F17)*24-1,(G17-F17)*24-0.5)))
    >>
    >>1st part works perfectly and the line below works aswell

    > can someone please
    >>tell me how to make the two into the same code please
    >>
    >>=if(G18="Off line",7,"")
    >>
    >>Thanks in Advance
    >>
    >>Greg
    >>
    >>
    >>.
    >>




  5. #5
    Greg Brow
    Guest

    re: Code:help

    Thank you Tom

    It worked great

    Greg

    "Tom Ogilvy" <[email protected]> wrote in message
    news:[email protected]...
    > It depends on how you want the rules to be evaluated, but
    >
    > the second one says to display 7 or "". How does that relate to the first
    > one which only shows a "" when F17 is blank.
    >
    >
    > =if(G18="Off
    > line",7,IF(ISBLANK(F17),"",IF((G17-F17)*24<5,(G17-F17)*24,IF((G17-F17)*24>8,
    > (G17-F17)*24-1,(G17-F17)*24-0.5))))
    >
    > might be one way, but it is a wild guess since you provide no basis for
    > determining how to combine them.
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    >
    >
    > "Greg Brow" <[email protected]> wrote in message
    > news:[email protected]...
    >>
    >> How can I make this work,
    >>
    >>

    > =IF(ISBLANK(F17),"",IF((G17-F17)*24<5,(G17-F17)*24,IF((G17-F17)*24>8,(G17-F1
    > 7)*24-1,(G17-F17)*24-0.5)))
    >>
    >> 1st part works perfectly and the line below works aswell can someone

    > please
    >> tell me how to make the two into the same code please
    >>
    >> =if(G18="Off line",7,"")
    >>
    >> Thanks in Advance
    >>
    >> Greg
    >>
    >>

    >
    >




+ 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