+ Reply to Thread
Results 1 to 6 of 6

Searching Data for multiple criteria

  1. #1
    Registered User
    Join Date
    08-16-2013
    Location
    Canada
    MS-Off Ver
    Office 365
    Posts
    51

    Searching Data for multiple criteria

    Hello,

    I'm trying to search a table with day/month/year in one column and $ in another column. I want to sum all the total $ for each month in a separate table with the month/year as column headers. I have attached some sample data. Please let me know if you a solution. Excel Test Data.xlsx

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Searching Data for multiple criteria

    In D2, enter this formula with Ctrl + Shift + Enter keys together then fill the formula across.

    =SUM(IF(YEAR($A$2:$A$42)=YEAR(D$1),IF(MONTH($A$2:$A$42)=MONTH(D$1),$B$2:$B$42,0)))

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Searching Data for multiple criteria

    You can use the array formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Searching Data for multiple criteria

    You could also do this which doesn't need to be entered as an array. You can just press enter.
    Please Login or Register  to view this content.
    You are correct JieJenn.
    Last edited by nigelbloomy; 06-04-2015 at 11:51 AM. Reason: JieJenn corrected me.
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

  5. #5
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Searching Data for multiple criteria

    Sumproduct is an array formula without the need for CSE keys. Just an FYI.
    Quote Originally Posted by nigelbloomy View Post
    You could also do this which isn't an array
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-16-2013
    Location
    Canada
    MS-Off Ver
    Office 365
    Posts
    51

    Re: Searching Data for multiple criteria

    Thanks guys, that 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. Searching Multiple Criteria in a Column with multiple data
    By cmmercer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-26-2014, 08:16 AM
  2. [SOLVED] Finding data after searching with multiple criteria
    By coach.32 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-22-2013, 09:56 PM
  3. [SOLVED] Searching for data criteria from a range over multiple sheets
    By cmac7872 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-15-2012, 04:34 PM
  4. Searching Data with Multiple Criteria
    By Impartial Derivative in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-12-2011, 11:42 AM
  5. Searching for multiple criteria in array
    By Puzzel in forum Excel General
    Replies: 11
    Last Post: 11-01-2009, 04:47 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