+ Reply to Thread
Results 1 to 6 of 6

Complex function

  1. #1
    Registered User
    Join Date
    05-30-2007
    Posts
    4

    Complex function

    Hi all,

    I'm trying to do a function within Excel. I don't know if it's possible, buut...

    I have attatched a JPG screenshot of a sample excel sheet. If you would like to download the actual excel sheet, click HERE.

    In the "Pages" column, I want a function that calculates, basically, the number of pages that the user has printed. This will mean searching for each instance of the user's name under column A, and then adding the respective page count from the "Pages" column ©.

    In this example A, the function should see that there is user A in line 5, 8, 12, 17, 25, and 27. It should add the respective values of 12, 65, 21, 232, 23, and 5. The value appearing in the "Pages" box under "Totals" should then be 358 (All of those page totals together). This should be one function under that cell (L4)

    Does this make sense? Is it possible?

    Thanks,
    Arby.
    Attached Images Attached Images

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444
    Hi,

    In L4 =SUMIF($A$5:$A$27,"="&J4,$C$5:$C$27)

    or more simply

    =SUMIF($A$5:$A$27,"=A",$C$5:$C$27)
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    05-30-2007
    Posts
    4
    Perfect, thank you

  4. #4
    Registered User
    Join Date
    05-30-2007
    Posts
    4
    Another thing,

    In the Columns D,E,F, and G (Black? Cyan? Magenta? Yellow?) there will be the word "Yes" or "No". what function can I put in M4 for example Black jobs total for A) that will let me count all of the "YES"s in the "Black" column for the user "A"?

    Basically I want to count up how many jobs by a given user have a yes in a given colour, and add up the totals.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try

    =Sumproduct(--($A$5:$A$27=$J4),--(E$5:E$27="YES"))

    Copied down and across the 3 columns.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  6. #6
    Registered User
    Join Date
    05-30-2007
    Posts
    4
    Works great, thanks

+ 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