+ Reply to Thread
Results 1 to 4 of 4

Sum of a set of values

  1. #1
    Registered User
    Join Date
    01-21-2019
    Location
    California
    MS-Off Ver
    16
    Posts
    8

    Sum of a set of values

    Hi All,

    I am new to this forum and also Excel too.
    I have hundreds of accounts and for each account there is a set of products.
    I enter the count of products for each account manually every month.
    And there is another field called 'Total deals' which is not the sum of the count of products.
    I need to calculate this:

    Sum(count of products)/total deals per account.

    Sample.xlsx

    Any help would be great.

    Thanks,
    Dpu

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Sum of a set of values

    welcome to the forum, Dpu. try:
    =SUMIF(Table2[Account],"C1",Table2[Count])/VLOOKUP("c1",Table2,4,0)

    or place C1 somewhere in a cell such as O1.
    =SUMIF(Table2[Account],O1,Table2[Count])/VLOOKUP(O1,Table2,4,0)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    01-21-2019
    Location
    California
    MS-Off Ver
    16
    Posts
    8

    Re: Sum of a set of values

    Thank you benishiryo.

    "=SUMIF(Table2[Account],"C1",Table2[Count])/VLOOKUP("c1",Table2,4,0)", this gives only the sum for account C1 right.

    I need to calculate for all the accounts.
    I have 80 accounts.

    Any more suggestions please.

    Thanks,
    Dpu.

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Sum of a set of values

    Please try at
    F2
    =IFERROR(INDEX(Table2[Account],MATCH(0,INDEX(COUNTIF(F$1:F1,Table2[Account]),),)),"")

    E2 same
    =IFERROR(SUMIFS(Table2[Count],Table2[Account],F2)/VLOOKUP(F2,Table2,4,),"")
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] VBA Code replace old values to new values depends upon column values
    By johnlara in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-09-2015, 08:19 AM
  2. [SOLVED] VBA code to look up a list of values based on entered values and return all values.
    By dnwadams in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-30-2015, 10:14 PM
  3. [SOLVED] Extract values (row values and column values) with formula
    By bjnockle in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 08-17-2014, 10:13 AM
  4. [SOLVED] vba to Replace Old values by new values depends upon cell values in AC:AC col
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-25-2014, 08:15 AM
  5. Replies: 0
    Last Post: 10-12-2012, 01:08 PM
  6. [SOLVED] How to lookup values same row values different column values
    By kgonzalbo in forum Excel General
    Replies: 5
    Last Post: 05-22-2011, 01:49 AM
  7. assigning date entries to week values and month values to sum column C-N values C-
    By the accountant in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-20-2010, 09:52 AM

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