+ Reply to Thread
Results 1 to 5 of 5

Simplify Formula Help

  1. #1
    Daveo
    Guest

    Simplify Formula Help

    Hi there,

    Can anyone help me in simplifying the following formula:

    =IF(AND('Shift Entry'!$I6="Y",(AND((OR('Shift Entry'!$E6<=1,'Shift
    Entry'!$E6<2)))),('Shift Entry'!$F6>1)),1,IF(AND('Shift
    Entry'!$V6="Y",(AND((OR('Shift Entry'!$R6<=1,'Shift
    Entry'!$R6<2)))),('Shift Entry'!$S6>1)),1,IF(AND('Shift
    Entry'!$AI6="Y",(AND((OR('Shift Entry'!$AE6<=1,'Shift
    Entry'!$AE6<2)))),('Shift Entry'!$AF6>1)),1,IF(AND('Shift
    Entry'!$AV6="Y",(AND((OR('Shift Entry'!$AR6<=1,'Shift
    Entry'!$AR6<2)))),('Shift Entry'!$AS6>1)),1,0))))

    Many thanks - David


  2. #2
    Arvi Laanemets
    Guest

    Re: Simplify Formula Help

    Hi

    =MIN(1,AND('Shift Entry'!$I6="Y",'Shift Entry'!$E6<2,'Shift
    Entry'!$F6>1)+AND('Shift Entry'!$V6="Y",'Shift Entry'!$R6<2,'Shift
    Entry'!$S6>1)+AND('Shift Entry'!$AI6="Y",'Shift Entry'!$AE6<2,'Shift
    Entry'!$AF6>1)+AND('Shift Entry'!$AV6="Y",'Shift Entry'!$AR6<2,'Shift
    Entry'!$AS6>1))


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )



    "Daveo" <[email protected]> wrote in message
    news:[email protected]...
    > Hi there,
    >
    > Can anyone help me in simplifying the following formula:
    >
    > =IF(AND('Shift Entry'!$I6="Y",(AND((OR('Shift Entry'!$E6<=1,'Shift
    > Entry'!$E6<2)))),('Shift Entry'!$F6>1)),1,IF(AND('Shift
    > Entry'!$V6="Y",(AND((OR('Shift Entry'!$R6<=1,'Shift
    > Entry'!$R6<2)))),('Shift Entry'!$S6>1)),1,IF(AND('Shift
    > Entry'!$AI6="Y",(AND((OR('Shift Entry'!$AE6<=1,'Shift
    > Entry'!$AE6<2)))),('Shift Entry'!$AF6>1)),1,IF(AND('Shift
    > Entry'!$AV6="Y",(AND((OR('Shift Entry'!$AR6<=1,'Shift
    > Entry'!$AR6<2)))),('Shift Entry'!$AS6>1)),1,0))))
    >
    > Many thanks - David
    >




  3. #3
    Arvi Laanemets
    Guest

    Re: Simplify Formula Help

    Another one

    =OR(AND('Shift Entry'!$I6="Y",'Shift Entry'!$E6<2,'Shift
    Entry'!$F6>1),AND('Shift Entry'!$V6="Y",'Shift Entry'!$R6<2,'Shift
    Entry'!$S6>1),AND('Shift Entry'!$AI6="Y",'Shift Entry'!$AE6<2,'Shift
    Entry'!$AF6>1),AND('Shift Entry'!$AV6="Y",'Shift Entry'!$AR6<2,'Shift
    Entry'!$AS6>1))

    , which returns TRUE/FALSE, or

    =OR(AND('Shift Entry'!$I6="Y",'Shift Entry'!$E6<2,'Shift
    Entry'!$F6>1),AND('Shift Entry'!$V6="Y",'Shift Entry'!$R6<2,'Shift
    Entry'!$S6>1),AND('Shift Entry'!$AI6="Y",'Shift Entry'!$AE6<2,'Shift
    Entry'!$AF6>1),AND('Shift Entry'!$AV6="Y",'Shift Entry'!$AR6<2,'Shift
    Entry'!$AS6>1))*1

    , which returns 0/1


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )



    "Daveo" <[email protected]> wrote in message
    news:[email protected]...
    > Hi there,
    >
    > Can anyone help me in simplifying the following formula:
    >
    > =IF(AND('Shift Entry'!$I6="Y",(AND((OR('Shift Entry'!$E6<=1,'Shift
    > Entry'!$E6<2)))),('Shift Entry'!$F6>1)),1,IF(AND('Shift
    > Entry'!$V6="Y",(AND((OR('Shift Entry'!$R6<=1,'Shift
    > Entry'!$R6<2)))),('Shift Entry'!$S6>1)),1,IF(AND('Shift
    > Entry'!$AI6="Y",(AND((OR('Shift Entry'!$AE6<=1,'Shift
    > Entry'!$AE6<2)))),('Shift Entry'!$AF6>1)),1,IF(AND('Shift
    > Entry'!$AV6="Y",(AND((OR('Shift Entry'!$AR6<=1,'Shift
    > Entry'!$AR6<2)))),('Shift Entry'!$AS6>1)),1,0))))
    >
    > Many thanks - David
    >




  4. #4
    Daveo
    Guest

    Re: Simplify Formula Help

    Perfect - Thanks Arvi!


  5. #5
    Harlan Grove
    Guest

    Re: Simplify Formula Help

    Arvi Laanemets wrote...
    >Another one
    >
    >=OR(
    >AND('Shift Entry'!$I6="Y",'Shift Entry'!$E6<2,'Shift Entry'!$F6>1),
    >AND('Shift Entry'!$V6="Y",'Shift Entry'!$R6<2,'Shift Entry'!$S6>1),
    >AND('Shift Entry'!$AI6="Y",'Shift Entry'!$AE6<2,'Shift Entry'!$AF6>1),
    >AND('Shift Entry'!$AV6="Y",'Shift Entry'!$AR6<2,'Shift Entry'!$AS6>1)
    >)

    ....

    If you want short as short as possible,

    =OR((T(OFFSET('Shift Entry'!I6,0,{0,13,26,39}))="Y")
    *(N(OFFSET('Shift Entry'!E6,0,{0,13,26,39}))<2)
    *(N(OFFSET('Shift Entry'!F6,0,{0,13,26,39}))>1))


+ 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