+ Reply to Thread
Results 1 to 4 of 4

Find total of one column controlled by another column

  1. #1
    Registered User
    Join Date
    10-13-2013
    Location
    Kent, England
    MS-Off Ver
    Excel 2007
    Posts
    6

    Find total of one column controlled by another column

    Hi,

    I'm still new to this and was helped a lot by my first query on this Forum.

    I now want to find the total money of one column (say column E) but only want it to count total for the times a particular word (say "Bag") appears in another column (say column B).

    Would I use the SUMIF command, something along the lines of . . .

    =SUMIF(E7:E202)+IF(B7:B202,"Bag",TRUE)

    I understand that this is not correct, because it does not work, but maybe you can see what I am trying to achieve.

    Regards

    Brian

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Find total of one column controlled by another column

    Hello Brian, you can use SUMIF but the syntax is like this:

    =SUMIF(range,criteria,sum_range)

    so that would be like this for your case

    =SUMIF(B7:B202,"Bag",E7:E202)
    Audere est facere

  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,723

    Re: Find total of one column controlled by another column

    You need to check out the syntax of the SUMIF function.

    I think you are trying to do this:

    =SUMIF(B7:B202,"Bag",E7:E202)

    Note that the first range is the range for comparison, and the second range is the range to sum if the condition is met.

    There is a similar function, SUMIFS, which allows you to use more than one criteria, but that has a different syntax, i.e.:

    =SUMIFS(sum_range,criteria_range_1,criteria_1,criteria_range_2,criteria_2, ... and so on with pairs of criterion_range and criterion ... )

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    10-13-2013
    Location
    Kent, England
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Find total of one column controlled by another column

    Thank you for your help.

    Regards

    Brian

+ 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: 1
    Last Post: 06-10-2013, 07:08 PM
  2. Need to Find 3 Column Values and Add the Total per Condition
    By stevorama in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-31-2012, 05:37 PM
  3. Find row number of column when it reaches 80% of total
    By bryanbak3 in forum Excel General
    Replies: 6
    Last Post: 01-10-2012, 05:18 PM
  4. Find cells in a column that total specific amount
    By Donpa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-25-2010, 08:16 PM
  5. Replies: 8
    Last Post: 08-06-2009, 09:02 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