+ Reply to Thread
Results 1 to 4 of 4

How do I run a conditional sum formula for an entire worksheet?

  1. #1
    Registered User
    Join Date
    02-04-2014
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    2

    How do I run a conditional sum formula for an entire worksheet?

    Hi all,
    I have no idea if the title of this thread actually conveys what I'm trying to figure out - please forgive me as I'm a complete newb.

    I have a spreadsheet (see link at bottom of post), and I would like to run a script/formula that would add up the figures in column C for each unique property listed in column A. The total would appear in the last row of a property's specific range, like in column D.

    The spreadsheet that I need to actually do my work on has hundred's of properties, and many letters for each property. To add this up manually would take hours! Is there a way I can do this quickly and easily?

    Hopefully my question makes sense. If there is some formula or script I can run that could do this for me, I would be extremely grateful. Thanks!example.xlsx -- here's the link
    Last edited by mbresloff; 02-05-2014 at 12:00 PM. Reason: Solved

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: How do I run a conditional sum formula for an entire worksheet?

    Extract the unique properties then sumif

    Edit: Forgot attachment
    example (14).xlsx
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,794

    Re: How do I run a conditional sum formula for an entire worksheet?

    I only have an old version of Excel on this laptop that I'm using, so I can't open your xlsx file. Is the data sorted by column A? If so, you could put this formula in D2 (assuming a row of headers):

    =IF(A2=A3,"",SUMIF(A:A,A2,C:C))

    then copy down by double-clicking the fill handle - the conditional sum will appear only on the last line of any particular block of data.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    02-04-2014
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: How do I run a conditional sum formula for an entire worksheet?

    Thanks so much for your help everyone. I was able to tweak vlady's formula slightly and got it to do what I needed.

+ 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 formula to ungroup all image files on entire worksheet
    By MKKEXCEL in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-30-2012, 05:15 PM
  2. Change all formula cells to text for entire worksheet
    By theletterh in forum Excel General
    Replies: 2
    Last Post: 07-31-2012, 02:37 PM
  3. Excel Worksheet - Formula for entire horizontal cell
    By qw098 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-24-2010, 05:40 PM
  4. [SOLVED] How can I use one formula to change case on an entire worksheet?
    By pow835 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-04-2006, 04:10 PM
  5. [SOLVED] need a formula to copy entire row to next worksheet
    By aledger in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-07-2005, 09:06 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