+ Reply to Thread
Results 1 to 6 of 6

Indirect Reference

  1. #1
    Danny Lewis
    Guest

    Indirect Reference

    Good morning all

    I did in fact post a question about this yesterday afternoon but I didn't
    really get the answers I needed and I wondered if anyone could help me out,
    because it's drive me insane.

    Along the top of a set of data run period numbers, eg. P0701, P0702, P0703
    and so on.

    Below that I have a formula which CURRENTLY looks like this under P0703:

    =SUMPRODUCT(('[Incidents period0703.xls]DATA'!$G$8:$G$2000=$C4)*('[Incidents
    period0703.xls]DATA'!$W$8:$W$2000="Mainline"))

    It looks up data in a period's file, in this case, Incidents period0703.

    How can I alter this formula so it reads from the column header the file
    it's supposed to be reading from, rather than me changing it every period?

    Many thanks in advance for you help,

    Danny


  2. #2
    Danny Lewis
    Guest

    RE: Indirect Reference

    No worries, solved it with

    =SUMPRODUCT((INDIRECT("'[Incidents
    period"&RIGHT(AF$3,4)&".xls]DATA'!$G$8:$G$2000")=$C4)*(INDIRECT("'[Incidents
    period"&RIGHT(AF$3,4)&".xls]DATA'!$W$8:$W$2000")=$AT$1))



    "Danny Lewis" wrote:

    > Good morning all
    >
    > I did in fact post a question about this yesterday afternoon but I didn't
    > really get the answers I needed and I wondered if anyone could help me out,
    > because it's drive me insane.
    >
    > Along the top of a set of data run period numbers, eg. P0701, P0702, P0703
    > and so on.
    >
    > Below that I have a formula which CURRENTLY looks like this under P0703:
    >
    > =SUMPRODUCT(('[Incidents period0703.xls]DATA'!$G$8:$G$2000=$C4)*('[Incidents
    > period0703.xls]DATA'!$W$8:$W$2000="Mainline"))
    >
    > It looks up data in a period's file, in this case, Incidents period0703.
    >
    > How can I alter this formula so it reads from the column header the file
    > it's supposed to be reading from, rather than me changing it every period?
    >
    > Many thanks in advance for you help,
    >
    > Danny
    >


  3. #3
    Bob Phillips
    Guest

    Re: Indirect Reference

    What answer do you need? I mentioned that INDIRECT will not work with closed
    workbooks. Will yours never be closed, in which case you can use

    =SUMPRODUCT((INDIRECT("'[Incidents
    period"&H1&".xls]DATA'!$G$8:$G$2000")=$C4)*
    (INDIRECT("'[Incidents period"&H1&".xls]DATA'!$W$8:$W$2000")="Mainline"))

    If it will be closed, then you need another solution. Laurent Longre has a
    an INDIRECT.EXT function within his MOREFUNC addin at
    http://xcell05.free.fr/english/, I haven't used it but I assume it will work
    with ranges.

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "Danny Lewis" <DannyLewis@discussions.microsoft.com> wrote in message
    news:8856D135-4DEF-47C9-8902-5611509F7B67@microsoft.com...
    > Good morning all
    >
    > I did in fact post a question about this yesterday afternoon but I didn't
    > really get the answers I needed and I wondered if anyone could help me

    out,
    > because it's drive me insane.
    >
    > Along the top of a set of data run period numbers, eg. P0701, P0702, P0703
    > and so on.
    >
    > Below that I have a formula which CURRENTLY looks like this under P0703:
    >
    > =SUMPRODUCT(('[Incidents

    period0703.xls]DATA'!$G$8:$G$2000=$C4)*('[Incidents
    > period0703.xls]DATA'!$W$8:$W$2000="Mainline"))
    >
    > It looks up data in a period's file, in this case, Incidents period0703.
    >
    > How can I alter this formula so it reads from the column header the file
    > it's supposed to be reading from, rather than me changing it every period?
    >
    > Many thanks in advance for you help,
    >
    > Danny
    >




  4. #4
    Danny Lewis
    Guest

    Re: Indirect Reference

    =SUMPRODUCT((INDIRECT.EXT("'[Incidents
    period"&RIGHT(AF$3,4)&".xls]DATA'!$G$8:$G$2000")=$C4)*(INDIRECT.EXT("'[Incidents period"&RIGHT(AF$3,4)&".xls]DATA'!$W$8:$W$2000")=$AT$1))

    Thanks Bob - I did actually try INDIRECT.EXT, as above, having installed the
    morefunc, however it returns a #VALUE! error!



    "Bob Phillips" wrote:

    > What answer do you need? I mentioned that INDIRECT will not work with closed
    > workbooks. Will yours never be closed, in which case you can use
    >
    > =SUMPRODUCT((INDIRECT("'[Incidents
    > period"&H1&".xls]DATA'!$G$8:$G$2000")=$C4)*
    > (INDIRECT("'[Incidents period"&H1&".xls]DATA'!$W$8:$W$2000")="Mainline"))
    >
    > If it will be closed, then you need another solution. Laurent Longre has a
    > an INDIRECT.EXT function within his MOREFUNC addin at
    > http://xcell05.free.fr/english/, I haven't used it but I assume it will work
    > with ranges.
    >
    > --
    > HTH
    >
    > Bob Phillips
    >
    > (replace somewhere in email address with gmail if mailing direct)
    >
    > "Danny Lewis" <DannyLewis@discussions.microsoft.com> wrote in message
    > news:8856D135-4DEF-47C9-8902-5611509F7B67@microsoft.com...
    > > Good morning all
    > >
    > > I did in fact post a question about this yesterday afternoon but I didn't
    > > really get the answers I needed and I wondered if anyone could help me

    > out,
    > > because it's drive me insane.
    > >
    > > Along the top of a set of data run period numbers, eg. P0701, P0702, P0703
    > > and so on.
    > >
    > > Below that I have a formula which CURRENTLY looks like this under P0703:
    > >
    > > =SUMPRODUCT(('[Incidents

    > period0703.xls]DATA'!$G$8:$G$2000=$C4)*('[Incidents
    > > period0703.xls]DATA'!$W$8:$W$2000="Mainline"))
    > >
    > > It looks up data in a period's file, in this case, Incidents period0703.
    > >
    > > How can I alter this formula so it reads from the column header the file
    > > it's supposed to be reading from, rather than me changing it every period?
    > >
    > > Many thanks in advance for you help,
    > >
    > > Danny
    > >

    >
    >
    >


  5. #5
    Bob Phillips
    Guest

    Re: Indirect Reference

    Danny,

    Does your solution mean that it will never need to work on closed workbooks
    then? If not, I will check out another solution for you, Harlan Grove's Pull
    function, which I know does work with ranges. As I said, I haven't used
    Morefunc, I don't like installing XLLs, so I can't help with that.

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "Danny Lewis" <DannyLewis@discussions.microsoft.com> wrote in message
    news:DB64DA47-6A31-4F43-8024-7264FCFD618A@microsoft.com...
    > =SUMPRODUCT((INDIRECT.EXT("'[Incidents
    >

    period"&RIGHT(AF$3,4)&".xls]DATA'!$G$8:$G$2000")=$C4)*(INDIRECT.EXT("'[Incid
    ents period"&RIGHT(AF$3,4)&".xls]DATA'!$W$8:$W$2000")=$AT$1))
    >
    > Thanks Bob - I did actually try INDIRECT.EXT, as above, having installed

    the
    > morefunc, however it returns a #VALUE! error!
    >
    >
    >
    > "Bob Phillips" wrote:
    >
    > > What answer do you need? I mentioned that INDIRECT will not work with

    closed
    > > workbooks. Will yours never be closed, in which case you can use
    > >
    > > =SUMPRODUCT((INDIRECT("'[Incidents
    > > period"&H1&".xls]DATA'!$G$8:$G$2000")=$C4)*
    > > (INDIRECT("'[Incidents

    period"&H1&".xls]DATA'!$W$8:$W$2000")="Mainline"))
    > >
    > > If it will be closed, then you need another solution. Laurent Longre has

    a
    > > an INDIRECT.EXT function within his MOREFUNC addin at
    > > http://xcell05.free.fr/english/, I haven't used it but I assume it will

    work
    > > with ranges.
    > >
    > > --
    > > HTH
    > >
    > > Bob Phillips
    > >
    > > (replace somewhere in email address with gmail if mailing direct)
    > >
    > > "Danny Lewis" <DannyLewis@discussions.microsoft.com> wrote in message
    > > news:8856D135-4DEF-47C9-8902-5611509F7B67@microsoft.com...
    > > > Good morning all
    > > >
    > > > I did in fact post a question about this yesterday afternoon but I

    didn't
    > > > really get the answers I needed and I wondered if anyone could help me

    > > out,
    > > > because it's drive me insane.
    > > >
    > > > Along the top of a set of data run period numbers, eg. P0701, P0702,

    P0703
    > > > and so on.
    > > >
    > > > Below that I have a formula which CURRENTLY looks like this under

    P0703:
    > > >
    > > > =SUMPRODUCT(('[Incidents

    > > period0703.xls]DATA'!$G$8:$G$2000=$C4)*('[Incidents
    > > > period0703.xls]DATA'!$W$8:$W$2000="Mainline"))
    > > >
    > > > It looks up data in a period's file, in this case, Incidents

    period0703.
    > > >
    > > > How can I alter this formula so it reads from the column header the

    file
    > > > it's supposed to be reading from, rather than me changing it every

    period?
    > > >
    > > > Many thanks in advance for you help,
    > > >
    > > > Danny
    > > >

    > >
    > >
    > >




  6. #6
    Danny Lewis
    Guest

    Re: Indirect Reference

    Well, it would be more than helpful if I could get this closed book thing
    sorted because otherwise the files need to be opened every time...

    I downloaded morefunc. The original formula worked, where the referenced
    workbook was open...but when I added .EXT onto both INDIRECTs it brought up
    an error value.

    I tried to look at this pull function but I couldn't get into the FTP
    server...

    Regards
    Danny

    "Bob Phillips" wrote:

    > Danny,
    >
    > Does your solution mean that it will never need to work on closed workbooks
    > then? If not, I will check out another solution for you, Harlan Grove's Pull
    > function, which I know does work with ranges. As I said, I haven't used
    > Morefunc, I don't like installing XLLs, so I can't help with that.
    >
    > --
    > HTH
    >
    > Bob Phillips
    >
    > (replace somewhere in email address with gmail if mailing direct)
    >
    > "Danny Lewis" <DannyLewis@discussions.microsoft.com> wrote in message
    > news:DB64DA47-6A31-4F43-8024-7264FCFD618A@microsoft.com...
    > > =SUMPRODUCT((INDIRECT.EXT("'[Incidents
    > >

    > period"&RIGHT(AF$3,4)&".xls]DATA'!$G$8:$G$2000")=$C4)*(INDIRECT.EXT("'[Incid
    > ents period"&RIGHT(AF$3,4)&".xls]DATA'!$W$8:$W$2000")=$AT$1))
    > >
    > > Thanks Bob - I did actually try INDIRECT.EXT, as above, having installed

    > the
    > > morefunc, however it returns a #VALUE! error!
    > >
    > >
    > >
    > > "Bob Phillips" wrote:
    > >
    > > > What answer do you need? I mentioned that INDIRECT will not work with

    > closed
    > > > workbooks. Will yours never be closed, in which case you can use
    > > >
    > > > =SUMPRODUCT((INDIRECT("'[Incidents
    > > > period"&H1&".xls]DATA'!$G$8:$G$2000")=$C4)*
    > > > (INDIRECT("'[Incidents

    > period"&H1&".xls]DATA'!$W$8:$W$2000")="Mainline"))
    > > >
    > > > If it will be closed, then you need another solution. Laurent Longre has

    > a
    > > > an INDIRECT.EXT function within his MOREFUNC addin at
    > > > http://xcell05.free.fr/english/, I haven't used it but I assume it will

    > work
    > > > with ranges.
    > > >
    > > > --
    > > > HTH
    > > >
    > > > Bob Phillips
    > > >
    > > > (replace somewhere in email address with gmail if mailing direct)
    > > >
    > > > "Danny Lewis" <DannyLewis@discussions.microsoft.com> wrote in message
    > > > news:8856D135-4DEF-47C9-8902-5611509F7B67@microsoft.com...
    > > > > Good morning all
    > > > >
    > > > > I did in fact post a question about this yesterday afternoon but I

    > didn't
    > > > > really get the answers I needed and I wondered if anyone could help me
    > > > out,
    > > > > because it's drive me insane.
    > > > >
    > > > > Along the top of a set of data run period numbers, eg. P0701, P0702,

    > P0703
    > > > > and so on.
    > > > >
    > > > > Below that I have a formula which CURRENTLY looks like this under

    > P0703:
    > > > >
    > > > > =SUMPRODUCT(('[Incidents
    > > > period0703.xls]DATA'!$G$8:$G$2000=$C4)*('[Incidents
    > > > > period0703.xls]DATA'!$W$8:$W$2000="Mainline"))
    > > > >
    > > > > It looks up data in a period's file, in this case, Incidents

    > period0703.
    > > > >
    > > > > How can I alter this formula so it reads from the column header the

    > file
    > > > > it's supposed to be reading from, rather than me changing it every

    > period?
    > > > >
    > > > > Many thanks in advance for you help,
    > > > >
    > > > > Danny
    > > > >
    > > >
    > > >
    > > >

    >
    >
    >


+ 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