+ Reply to Thread
Results 1 to 4 of 4

Field to sum a column

  1. #1
    Registered User
    Join Date
    09-18-2019
    Location
    Hong Kong
    MS-Off Ver
    MS Office 2013
    Posts
    3

    Field to sum a column

    Dear All,

    I have a list, say column A containing list of salary and I want to calculate the total pension.

    The pension is calculated at $1,500 or 0.05*salary, and I am using the formula: Min(1500,0.05*A1) and so on for the rest of the cells.

    Is there a way to sum the total of pension without creating a new column?

    Thanks.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Field to sum a column

    Try this:

    =SUM(IF(A1:A4>(1500/0.05),1500/0.05,A1:A4)*0.05)

    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Quang PT

  3. #3
    Registered User
    Join Date
    09-18-2019
    Location
    Hong Kong
    MS-Off Ver
    MS Office 2013
    Posts
    3
    Many thanks. What if I have different sections and therebwere subtotal for the salary of the section?

    e.g. A1:A4 include salary, A5 is subtotal of A1:A4, then it repeats for different sections.

    any good way to exclude the subtotal rows?

    Thanks.
    Last edited by kevho1; 05-05-2021 at 12:46 AM.

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Field to sum a column

    We have now reached the point that a sample workbook would facilitate you getting a better answers. Follow the instructions in the yellow banner. There may be a column that is always populated to exclude or include in the calculation.

+ 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. Replies: 0
    Last Post: 05-12-2020, 12:36 PM
  2. New Field / Column added not getting displayed in Pivot Field List
    By excel_googler in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-02-2019, 05:42 AM
  3. [SOLVED] Hard coded field, AutoFilter field:=6 will break if user inserts a column before column F
    By mick0005 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-20-2015, 01:40 AM
  4. Column field same then if other column field have two choices = YES
    By alexdelisle in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-01-2015, 09:38 AM
  5. [SOLVED] Referring to a Sub-Field on Calculated Field Pivot Table Column?
    By figo12 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-27-2014, 02:02 PM
  6. Replies: 0
    Last Post: 06-26-2012, 09:06 PM
  7. Replies: 4
    Last Post: 02-22-2012, 09:40 PM

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