+ Reply to Thread
Results 1 to 8 of 8

Two variables

  1. #1
    Blackcat
    Guest

    Two variables

    I hope someone can help!

    I have a number of workbooks with various staff data including staff costs
    and proportion of time worked and cost centre by individual employee in one
    worksheet and need to do some analysis of this based on staff category in
    another sheets withinh the individual workbooks.

    I have proportion in column "N", category in "F" and cost centre in "M".

    Cost centres are in the format C********* and other cost centres start with
    either H or O

    The info has to be reported against staff category and cost centres (split
    between "C" and others).

    For example a list of ten staff may have three different categories and two
    different cost centres.

    I've tried IF and SUMIF using wildcards but can't get it to look at the two
    variables ie the category and cost centre.



    I hope this makes sense and any ideas gratefully received.





  2. #2
    JulieD
    Guest

    Re: Two variables

    Hi

    you'll probably need to use sumproduct for this

    e.g.
    =SUMPRODUCT(--(F1:F30="category1"),--(M1:M30="cost_centre1"),--(N1:N30))

    check out
    http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    for more details

    Hope this helps
    Cheers
    JulieD


    "Blackcat" <[email protected]> wrote in message
    news:[email protected]...
    >I hope someone can help!
    >
    > I have a number of workbooks with various staff data including staff costs
    > and proportion of time worked and cost centre by individual employee in
    > one
    > worksheet and need to do some analysis of this based on staff category in
    > another sheets withinh the individual workbooks.
    >
    > I have proportion in column "N", category in "F" and cost centre in "M".
    >
    > Cost centres are in the format C********* and other cost centres start
    > with
    > either H or O
    >
    > The info has to be reported against staff category and cost centres (split
    > between "C" and others).
    >
    > For example a list of ten staff may have three different categories and
    > two
    > different cost centres.
    >
    > I've tried IF and SUMIF using wildcards but can't get it to look at the
    > two
    > variables ie the category and cost centre.
    >
    >
    >
    > I hope this makes sense and any ideas gratefully received.
    >
    >
    >
    >




  3. #3
    Bob Phillips
    Guest

    Re: Two variables

    Something like

    =SUMPRODUCT(--(LEFT(M1:M1000,1)="C"),--(M1:M100="ABC"))

    which counts the number in category ABC for cost centres starting with C.

    If you want to sum another column, use

    =SUMPRODUCT(--(LEFT(M1:M1000,1)="C"),--(M1:M100="ABC"), L1:L100)

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Blackcat" <[email protected]> wrote in message
    news:[email protected]...
    > I hope someone can help!
    >
    > I have a number of workbooks with various staff data including staff costs
    > and proportion of time worked and cost centre by individual employee in

    one
    > worksheet and need to do some analysis of this based on staff category in
    > another sheets withinh the individual workbooks.
    >
    > I have proportion in column "N", category in "F" and cost centre in "M".
    >
    > Cost centres are in the format C********* and other cost centres start

    with
    > either H or O
    >
    > The info has to be reported against staff category and cost centres (split
    > between "C" and others).
    >
    > For example a list of ten staff may have three different categories and

    two
    > different cost centres.
    >
    > I've tried IF and SUMIF using wildcards but can't get it to look at the

    two
    > variables ie the category and cost centre.
    >
    >
    >
    > I hope this makes sense and any ideas gratefully received.
    >
    >
    >
    >




  4. #4
    Bob Phillips
    Guest

    Re: Two variables

    Sorry, that should be

    =SUMPRODUCT(--(LEFT(M1:M1000,1)="C"),--(F1:F100="ABC"))

    etc.

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Bob Phillips" <[email protected]> wrote in message
    news:[email protected]...
    > Something like
    >
    > =SUMPRODUCT(--(LEFT(M1:M1000,1)="C"),--(M1:M100="ABC"))
    >
    > which counts the number in category ABC for cost centres starting with C.
    >
    > If you want to sum another column, use
    >
    > =SUMPRODUCT(--(LEFT(M1:M1000,1)="C"),--(M1:M100="ABC"), L1:L100)
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "Blackcat" <[email protected]> wrote in message
    > news:[email protected]...
    > > I hope someone can help!
    > >
    > > I have a number of workbooks with various staff data including staff

    costs
    > > and proportion of time worked and cost centre by individual employee in

    > one
    > > worksheet and need to do some analysis of this based on staff category

    in
    > > another sheets withinh the individual workbooks.
    > >
    > > I have proportion in column "N", category in "F" and cost centre in "M".
    > >
    > > Cost centres are in the format C********* and other cost centres start

    > with
    > > either H or O
    > >
    > > The info has to be reported against staff category and cost centres

    (split
    > > between "C" and others).
    > >
    > > For example a list of ten staff may have three different categories and

    > two
    > > different cost centres.
    > >
    > > I've tried IF and SUMIF using wildcards but can't get it to look at the

    > two
    > > variables ie the category and cost centre.
    > >
    > >
    > >
    > > I hope this makes sense and any ideas gratefully received.
    > >
    > >
    > >
    > >

    >
    >




  5. #5
    Bob Phillips
    Guest

    Re: Two variables

    Hi Julie,

    You don't need the -- on the N1:N30, and although it doesn't cause a
    problem, it is better IMO not to have it so as to separate and differentiate
    the Boolean conditions from the summing range (as well as avoid an
    unnecessary operation).

    Regards

    Bob

    "JulieD" <[email protected]> wrote in message
    news:[email protected]...
    > Hi
    >
    > you'll probably need to use sumproduct for this
    >
    > e.g.
    > =SUMPRODUCT(--(F1:F30="category1"),--(M1:M30="cost_centre1"),--(N1:N30))
    >
    > check out
    > http://www.xldynamic.com/source/xld.SUMPRODUCT.html
    >
    > for more details
    >
    > Hope this helps
    > Cheers
    > JulieD
    >
    >
    > "Blackcat" <[email protected]> wrote in message
    > news:[email protected]...
    > >I hope someone can help!
    > >
    > > I have a number of workbooks with various staff data including staff

    costs
    > > and proportion of time worked and cost centre by individual employee in
    > > one
    > > worksheet and need to do some analysis of this based on staff category

    in
    > > another sheets withinh the individual workbooks.
    > >
    > > I have proportion in column "N", category in "F" and cost centre in "M".
    > >
    > > Cost centres are in the format C********* and other cost centres start
    > > with
    > > either H or O
    > >
    > > The info has to be reported against staff category and cost centres

    (split
    > > between "C" and others).
    > >
    > > For example a list of ten staff may have three different categories and
    > > two
    > > different cost centres.
    > >
    > > I've tried IF and SUMIF using wildcards but can't get it to look at the
    > > two
    > > variables ie the category and cost centre.
    > >
    > >
    > >
    > > I hope this makes sense and any ideas gratefully received.
    > >
    > >
    > >
    > >

    >
    >




  6. #6
    JulieD
    Guest

    Re: Two variables

    Hi Bob

    thanks for this ...

    Cheers
    JulieD

    "Bob Phillips" <[email protected]> wrote in message
    news:[email protected]...
    > Hi Julie,
    >
    > You don't need the -- on the N1:N30, and although it doesn't cause a
    > problem, it is better IMO not to have it so as to separate and
    > differentiate
    > the Boolean conditions from the summing range (as well as avoid an
    > unnecessary operation).
    >
    > Regards
    >
    > Bob
    >
    > "JulieD" <[email protected]> wrote in message
    > news:[email protected]...
    >> Hi
    >>
    >> you'll probably need to use sumproduct for this
    >>
    >> e.g.
    >> =SUMPRODUCT(--(F1:F30="category1"),--(M1:M30="cost_centre1"),--(N1:N30))
    >>
    >> check out
    >> http://www.xldynamic.com/source/xld.SUMPRODUCT.html
    >>
    >> for more details
    >>
    >> Hope this helps
    >> Cheers
    >> JulieD
    >>
    >>
    >> "Blackcat" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I hope someone can help!
    >> >
    >> > I have a number of workbooks with various staff data including staff

    > costs
    >> > and proportion of time worked and cost centre by individual employee in
    >> > one
    >> > worksheet and need to do some analysis of this based on staff category

    > in
    >> > another sheets withinh the individual workbooks.
    >> >
    >> > I have proportion in column "N", category in "F" and cost centre in
    >> > "M".
    >> >
    >> > Cost centres are in the format C********* and other cost centres start
    >> > with
    >> > either H or O
    >> >
    >> > The info has to be reported against staff category and cost centres

    > (split
    >> > between "C" and others).
    >> >
    >> > For example a list of ten staff may have three different categories and
    >> > two
    >> > different cost centres.
    >> >
    >> > I've tried IF and SUMIF using wildcards but can't get it to look at the
    >> > two
    >> > variables ie the category and cost centre.
    >> >
    >> >
    >> >
    >> > I hope this makes sense and any ideas gratefully received.
    >> >
    >> >
    >> >
    >> >

    >>
    >>

    >
    >




  7. #7
    Blackcat
    Guest

    Re: Two variables

    Thanks for your help. Problem solved.


    David

    "JulieD" wrote:

    > Hi
    >
    > you'll probably need to use sumproduct for this
    >
    > e.g.
    > =SUMPRODUCT(--(F1:F30="category1"),--(M1:M30="cost_centre1"),--(N1:N30))
    >
    > check out
    > http://www.xldynamic.com/source/xld.SUMPRODUCT.html
    >
    > for more details
    >
    > Hope this helps
    > Cheers
    > JulieD
    >
    >
    > "Blackcat" <[email protected]> wrote in message
    > news:[email protected]...
    > >I hope someone can help!
    > >
    > > I have a number of workbooks with various staff data including staff costs
    > > and proportion of time worked and cost centre by individual employee in
    > > one
    > > worksheet and need to do some analysis of this based on staff category in
    > > another sheets withinh the individual workbooks.
    > >
    > > I have proportion in column "N", category in "F" and cost centre in "M".
    > >
    > > Cost centres are in the format C********* and other cost centres start
    > > with
    > > either H or O
    > >
    > > The info has to be reported against staff category and cost centres (split
    > > between "C" and others).
    > >
    > > For example a list of ten staff may have three different categories and
    > > two
    > > different cost centres.
    > >
    > > I've tried IF and SUMIF using wildcards but can't get it to look at the
    > > two
    > > variables ie the category and cost centre.
    > >
    > >
    > >
    > > I hope this makes sense and any ideas gratefully received.
    > >
    > >
    > >
    > >

    >
    >
    >


  8. #8
    Blackcat
    Guest

    Re: Two variables

    Thanks for your help. Problem solved.


    David


    "Bob Phillips" wrote:

    > Something like
    >
    > =SUMPRODUCT(--(LEFT(M1:M1000,1)="C"),--(M1:M100="ABC"))
    >
    > which counts the number in category ABC for cost centres starting with C.
    >
    > If you want to sum another column, use
    >
    > =SUMPRODUCT(--(LEFT(M1:M1000,1)="C"),--(M1:M100="ABC"), L1:L100)
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "Blackcat" <[email protected]> wrote in message
    > news:[email protected]...
    > > I hope someone can help!
    > >
    > > I have a number of workbooks with various staff data including staff costs
    > > and proportion of time worked and cost centre by individual employee in

    > one
    > > worksheet and need to do some analysis of this based on staff category in
    > > another sheets withinh the individual workbooks.
    > >
    > > I have proportion in column "N", category in "F" and cost centre in "M".
    > >
    > > Cost centres are in the format C********* and other cost centres start

    > with
    > > either H or O
    > >
    > > The info has to be reported against staff category and cost centres (split
    > > between "C" and others).
    > >
    > > For example a list of ten staff may have three different categories and

    > two
    > > different cost centres.
    > >
    > > I've tried IF and SUMIF using wildcards but can't get it to look at the

    > two
    > > variables ie the category and cost centre.
    > >
    > >
    > >
    > > I hope this makes sense and any ideas gratefully received.
    > >
    > >
    > >
    > >

    >
    >
    >


+ 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