Consulting

Results 1 to 8 of 8

Thread: Solved: Sum of certain data for every unique client

  1. #1

    Solved: Sum of certain data for every unique client

    i have data in a sheet
    & i want to sum each client's data ( specific cells) for in another sheet

    I have clients names in cloumn C (each row has all transactions done)
    I want to sum certain data for every client in a sheet
    I want to add all }

    i want to add column O. cloumn U, & column AI for every client in this sheet

    what formula can I use
    ( i dont want to use pivot table)
    any help would be appreciated

  2. #2
    to make it clearer
    in the main sheet is every transaction listed with all the clients names (column C)

    I want to add for every client (suming all transactions), the total amount earned,due,borrowed etc each found in a column (for instance the data found in column O, column U)

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    =SUMPRODUCT(--(Sheet1!A2:A200=A2),Sheet1!O2:O200)

    will sum all amounts in column O on Sheet 1 for the client in A2 on Sheet2.

    Likewise for other amounts.

  4. #4
    thanks it worked out fine
    i have a question thou why when i drag the formula down it changes the ranges & not only the cell A2
    i dont want to manually fix every formula

  5. #5
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Check your Excel Help for Relative and Absolute references.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  6. #6
    will do
    thanks mdmackillop

  7. #7
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by almouchie
    thanks it worked out fine
    i have a question thou why when i drag the formula down it changes the ranges & not only the cell A2
    i dont want to manually fix every formula
    Start with

    =SUMPRODUCT(--(Sheet1!$A$2:$A$200=A2),Sheet1!$O$2:$O$200)

  8. #8
    thanks a lot
    that worked out great when i dragged the formula

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •