+ Reply to Thread
Results 1 to 5 of 5

Sum all the cells that near column meets a criteria

  1. #1
    Registered User
    Join Date
    10-27-2020
    Location
    Slovakia
    MS-Off Ver
    365
    Posts
    5

    Sum all the cells that near column meets a criteria

    Hello! I am going crazy agaaaaain... :D

    I have column A, column B and column C

    Table 1
    Column A: long list (100 rows) of various categories associated the specific bill (example: "food", "other", "cafe", "gas")
    Column B: contain the value in currency of the item

    Table 2
    Column D: I have the list of these categories, so D1 is food, D2 is other, D3 is cafe, D4 is gas
    Column E: FORUMLA NEEDED HERE --> I need excel to sum (for the speific category in column D) all the values reported in coulmn B that match the category....if coulmn A contains column D category value then sum all values that meet this criteria

    see example in attachment


    Thanks in advance for precious help!
    Attached Files Attached Files
    Last edited by AliGW; 11-04-2020 at 09:24 AM. Reason: Irrelevant section of title removed - this is a help forum!!!

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 for Mac OSX, 365 for windows, Windows 10 Insider
    Posts
    6,514

    Re: Sum all the cells that near column meets a criteria - HELP pleas!

    =SUMIF(A:A,D2,B:B)
    BUT
    you need to go through the Categories as you have various spaces at the end of the text and so no match
    Attached Files Attached Files
    Wayne

    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    10-27-2020
    Location
    Slovakia
    MS-Off Ver
    365
    Posts
    5

    Re: Sum all the cells that near column meets a criteria - HELP pleas!

    Amazing!! it works, thanks

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    47,167

    Re: Sum all the cells that near column meets a criteria

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 for Mac OSX, 365 for windows, Windows 10 Insider
    Posts
    6,514

    Re: Sum all the cells that near column meets a criteria

    you are welcome

+ 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. How to count rows where one column meets criteria based on another column
    By gavsenior in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-08-2018, 07:30 AM
  2. [SOLVED] Select next empty cell in column, if data in another column meets criteria
    By Kanuck in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-08-2018, 02:34 PM
  3. Need one column total if criteria meets another columns criteria
    By jebrown in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-24-2013, 08:47 PM
  4. [SOLVED] Trying to count cells greater than # in one column if another column meets criteria
    By lorne17 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-14-2012, 07:01 PM
  5. [SOLVED] Create a formula to add cells in one column if it meets the criteria for another column
    By Tamarissa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-23-2012, 11:27 AM
  6. Replies: 0
    Last Post: 07-22-2012, 01:05 PM
  7. Sum a column that meets two criteria
    By terrapinie in forum Excel General
    Replies: 6
    Last Post: 03-31-2005, 02: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