+ Reply to Thread
Results 1 to 4 of 4

Help Tidying up formula

  1. #1
    Paul
    Guest

    Help Tidying up formula

    Hi,

    I'm trying to minimise the size of a file by trimming down the formulae.
    Would anybody have any suggestions on the following

    =IF($E12="","",IF(Reintype($E12)="Assumed",VLOOKUP($B$6&G12,[Data.xls]DECAP_ALL2!A:W,17+($I12-1),FALSE),IF(Reintype($E12)="Ceded",VLOOKUP($B$6&$G12,[Data.xls]DECAP_ALL2!A:W,17+($I12-1),FALSE),"")))

    (note: "Reintype" is a user define function whcih tests to see if the
    content of Exx is within certain ranges of numbers

  2. #2
    Bob Phillips
    Guest

    Re: Help Tidying up formula

    One suggestion

    =IF($E12="","",IF(OR(Reintype($E12)="Assumed",Reintype($E12)="Ceded"),VLOOKU
    P($B$6&$G12,[Data.xls]DECAP_ALL2!A:W,17+($I12-1),FALSE),""))

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Paul" <[email protected]> wrote in message
    news:[email protected]...
    > Hi,
    >
    > I'm trying to minimise the size of a file by trimming down the formulae.
    > Would anybody have any suggestions on the following
    >
    >

    =IF($E12="","",IF(Reintype($E12)="Assumed",VLOOKUP($B$6&G12,[Data.xls]DECAP_
    ALL2!A:W,17+($I12-1),FALSE),IF(Reintype($E12)="Ceded",VLOOKUP($B$6&$G12,[Dat
    a.xls]DECAP_ALL2!A:W,17+($I12-1),FALSE),"")))
    >
    > (note: "Reintype" is a user define function whcih tests to see if the
    > content of Exx is within certain ranges of numbers




  3. #3
    Paul
    Guest

    Re: Help Tidying up formula



    "Bob Phillips" wrote:

    > One suggestion
    >
    > =IF($E12="","",IF(OR(Reintype($E12)="Assumed",Reintype($E12)="Ceded"),VLOOKU
    > P($B$6&$G12,[Data.xls]DECAP_ALL2!A:W,17+($I12-1),FALSE),""))
    >
    > --
    > HTH
    >
    > Bob Phillips
    >
    > (remove nothere from email address if mailing direct)
    >
    > "Paul" <[email protected]> wrote in message
    > news:[email protected]...
    > > Hi,
    > >
    > > I'm trying to minimise the size of a file by trimming down the formulae.
    > > Would anybody have any suggestions on the following
    > >
    > >

    > =IF($E12="","",IF(Reintype($E12)="Assumed",VLOOKUP($B$6&G12,[Data.xls]DECAP_
    > ALL2!A:W,17+($I12-1),FALSE),IF(Reintype($E12)="Ceded",VLOOKUP($B$6&$G12,[Dat
    > a.xls]DECAP_ALL2!A:W,17+($I12-1),FALSE),"")))
    > >
    > > (note: "Reintype" is a user define function whcih tests to see if the
    > > content of Exx is within certain ranges of numbers

    >
    >
    >


    Thanks for the reply Bob. I made a mistake in the formula though so I'll try
    that again. The difference is depending on whether the result is Assumed or
    Ceded there is a different lookup reference i.e. if assumed return index 15,
    if Ceded return index 17+($I12-1)

    The formula should have read:

    =IF($E12="","",IF(Reintype($E12)="Assumed",VLOOKUP($B$6&G12,[Data.xls]DECAP_ALL2!A:W,15,FALSE),IF(Reintype($E12)="Ceded",VLOOKUP($B$6&$G12,[Data.xls]DECAP_ALL2!A:W,17+($I12-1),FALSE),"")))

    Thanks Again



  4. #4
    vezerid
    Guest

    Re: Help Tidying up formula

    Paul,
    if the only options fo Reintype(E12) are blank, "Assumed" and "Ceded"
    then the following should do.

    =3DIF($E12=3D"","", VLOOKUP($B$6&G12,[Data.xls]DECAP=AD_ALL2!A:W,
    IF(Reintype($E12)=3D"Assumed", 15, 17+($I12-1)), FALSE))

    HTH
    Kostis Vezerides


+ 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