+ Reply to Thread
Results 1 to 3 of 3

Formula help

  1. #1
    Registered User
    Join Date
    10-11-2005
    Posts
    13

    how to calculate row total is cell (on different row) meets criteria?

    Hi! I really need help to arrange this formula!! I work with students in a school and need to count a certain value if a different cell has a certain value.

    Each student has their own column. One row for each column is entitled: "Active client". I will answer "y" if that student is currently working with me, and "n" if not. Then each row will either have a "x" or be blank.

    I want to calculate the total "x"s for all the students in each row, only if their "Active status" is "y".

    Total.......Name...........John.......Mary......Sue
    ...............Active.............Y............Y........N
    ..2...........In School........X............X.........X
    ..0...........Red hair..................................X
    ..1...........Happy.............X.....................X



    Please can anyone help me?
    Many, Many thanks!

    keith
    Last edited by hopeace; 10-11-2005 at 03:25 PM. Reason: better title

  2. #2
    Domenic
    Guest

    Re: Formula help

    Assuming that A1:E5 contains your data, try...

    A3, copied down:

    =SUMPRODUCT(--($C$2:$E$2="Y"),--(C3:E3="X"))

    Hope this helps!

    In article <[email protected]>,
    hopeace <[email protected]> wrote:

    > Hi! I really need help to arrange this formula!! I work with students in
    > a school and need to count a certain value if a different cell has a
    > certain value.
    >
    > Each student has their own column. One row for each column is entitled:
    > "Active client". I will answer "y" if that student is currently working
    > with me, and "n" if not. Then each row will either have a "x" or be
    > blank.
    >
    > I want to calculate the total "x"s for all the students in each row,
    > only if their "Active status" is "y".
    >
    > Total.......Name...........John.......Mary......Sue
    > ..............Active.............Y............Y........N
    > .2...........In School........X............X.........X
    > .0...........Red hair..................................X
    > .1...........Happy.............X.....................X
    >
    >
    >
    > Please can anyone help me?
    > Many, Many thanks!
    >
    > keith


  3. #3
    Registered User
    Join Date
    10-11-2005
    Posts
    13

    You are amazing!

    Thank you Domenic! I would never have been able to figure that out, and it worked!

    I wish for you a good day full of sunshine and fortune.

    These stats are ultimately help me do a better job at supporting the youth in the school I work at (im a youth and family counsellor).

    Thanks for your help.

    keith

+ 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