+ Reply to Thread
Results 1 to 5 of 5

2 Sum Ifs for a # & text

  1. #1
    Forum Contributor
    Join Date
    02-26-2010
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    164

    2 Sum Ifs for a # & text

    Hello.

    Attached is a document I'm trying to gather information for. All the actual data is in "groceries15" tab. I want a cover page to have a snap shot of the data in that tab.

    I highlighted in yellow where I started to try to create a formula. I need to capture the sum of all items bought in 2015 listed on the left (column A).

    I've done countifs but not sumifs.

    When "almonds" is listed in the "groceries15" tab for the year 2015 sum that amount. Then hopefully the formula allows me to just click on what i'm trying to find so that I can easily copy down. I know some formulas can be set up so I could copy down & across and capture the correct information if the $ signs are in the right spot (i can figure that part out).

    Thanks
    Attached Files Attached Files
    Last edited by Statz; 09-21-2016 at 04:39 PM.

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

    Re: 2 Sum Ifs for a # & text

    You can put this formula in E3:

    =SUMIFS(Groceries15!$H:$H,Groceries15!$D:$D,$A3,Groceries15!$A:$A,E$2)

    and this one in F3:

    =COUNTIFS(Groceries15!$D:$D,$A3,Groceries15!$A:$A,E$2)

    Format F3 as General, then copy those two formulae down. Then you can copy the block of cells from E3:F42 into G3, I3, K3 for the other years. You can also copy that block into C3, but as you have no data for 2016 you will get zero for all the items.

    Hope this helps.

    Pete

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: 2 Sum Ifs for a # & text

    Then for the totals (column B) try changing your formula to
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  4. #4
    Forum Contributor
    Join Date
    02-26-2010
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    164

    Re: 2 Sum Ifs for a # & text

    Pete_Uk. Thank you!

    FlameRetired. I was wondering why you gave me that formula at first. I was not expecting that so I appreciate the new way of doing that. I originally meant to just sum all the columns one by one to ignore the columns giving a non $ amount. But if i understand that formula correctly since the years listed are #'s & the " # times" is not numbers it only adds the #'s.


    Thanks to you both!

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: 2 Sum Ifs for a # & text

    You are welcome. Thank you for the feedback and the rep.

+ 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: 12-17-2015, 03:35 AM
  2. VBA: Wrapping text and transversing text between nubers or given speific text
    By sroysroy in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-08-2015, 07:52 PM
  3. [SOLVED] Need to Mod Code on red text, I have VBA to distinguish Paid(Black Text) Unpaid(Red Text)
    By Garbology in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-11-2014, 07:55 PM
  4. [SOLVED] function IF to return text based if text contains exact text
    By in nomine noctis in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-05-2013, 06:25 AM
  5. Replies: 0
    Last Post: 04-22-2013, 12:13 PM
  6. Macro to Parse Text - Import text to Excel from Multiple Text Files & Folders
    By Novice_To_Excel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2012, 01:05 AM
  7. [SOLVED] Use .text from previous text box in form to prefill text in second text box
    By chromachem in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-23-2012, 10:04 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