+ Reply to Thread
Results 1 to 6 of 6

Calculating SUM based on certain conditions

  1. #1
    Registered User
    Join Date
    04-24-2014
    Location
    Essex
    MS-Off Ver
    Excel 2010
    Posts
    17

    Calculating SUM based on certain conditions

    Hi all,

    This is probably simple to many of you, but I need to calculate a SUM of numbers from a spreadsheet ONLY if the column next to the number contains a certain word. However I want to create this formula on a different sheet to the one that contains the numbers.

    E.g

    House Points
    Lion 90
    Dragon 62
    Lion 86

    I need to only SUM the numbers that have lion next to them,

    Your help as soon as poss would be much appreciated!

    Thank you.

  2. #2
    Registered User
    Join Date
    04-24-2014
    Location
    Essex
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Calculating SUM based on certain conditions

    Just realised my spaces didn't work, please see example here:
    Capture.PNG

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,077

    Re: Calculating SUM based on certain conditions

    Maybe

    =SUMIF(A1:A3,"Lion", B1:B3)

    change Lion for other values as required
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,077

    Re: Calculating SUM based on certain conditions

    Maybe

    =SUMIF(A1:A3,"Lion", B1:B3)

    change Lion for other values as required

  5. #5
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Calculating SUM based on certain conditions

    Hi,

    Use,
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    You can use any other value in place of Lion..
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

  6. #6
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Calculating SUM based on certain conditions

    Different Approach using Sumproduct function

    Formula to be in A3 of Sheet2 =SUMPRODUCT((Sheet1!A3:A5="Lion")*(Sheet1!B3:B5))

    Punnam

  7. #7
    Registered User
    Join Date
    04-24-2014
    Location
    Essex
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Calculating SUM based on certain conditions

    Quote Originally Posted by Special-K View Post
    Maybe

    =SUMIF(A1:A3,"Lion", B1:B3)

    change Lion for other values as required
    Thank you, this worked!!

+ 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. Calculating Percentages Based on Conditions
    By newbieexceldude in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-19-2011, 08:05 PM
  2. Calculating averages based on conditions
    By nmitch59 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-05-2009, 04:20 AM
  3. Calculating totals based off of conditions
    By Mindtrap in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-10-2007, 01:41 PM
  4. calculating Averages based upon conditions
    By Kfetterman1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-27-2006, 11:24 AM
  5. Calculating Cell Averages Based upon conditions
    By Kfetterman1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2006, 10:11 PM

Tags for this Thread

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