+ Reply to Thread
Results 1 to 2 of 2

SUMIF / COUNTIF or PIVOTTABLE for This DATASET

  1. #1
    Registered User
    Join Date
    10-05-2019
    Location
    Hyderabad
    MS-Off Ver
    2019
    Posts
    1

    SUMIF / COUNTIF or PIVOTTABLE for This DATASET

    Hello everyone!

    I am trying to work out this situation i have for a report.

    I have a column with Country Names(duplicates) on the Left, Dates in Row 1 date increment is by 1, total dates could be upto 2-3 years meaning upto 1000 columns of Data, for easy referencing I have formatted it as Table. The data under those dates corresponding to countries could be either 1 or 0 based on an if condition.

    In a second Worksheets, I have User input cells collecting start and end date. And I need SUmif or countif function to get a count or sum of all 1's for the specified date from sheet 1 for Unique list of Countries.

    Any help will be appreciated... posting a sample data file.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: SUMIF / COUNTIF or PIVOTTABLE for This DATASET

    Sheet2

    B2=IF(Sheet2!$A2<>"",SUMPRODUCT((Sheet1!$A$2:$A$100=Sheet2!$A2)*(Sheet1!$B$1:$AZ$1>=Sheet2!$M$1)*(Sheet1!$B$1:$AZ$1<=Sheet2!$M$2)*(Sheet1!$B$2:$AZ$100)),""

    copy down

+ 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. [SOLVED] How to use COUNTIF on a dataset and getting only count from 2 conditions
    By EXCELBENCH in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 10-20-2018, 12:27 PM
  2. Creating a dataset using RANDBETWEEN and COUNTIF - VBA
    By verdiar_ in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-26-2018, 10:30 AM
  3. SUMIF for Large Dataset
    By nobodyukno in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-06-2018, 12:09 AM
  4. [SOLVED] LARGE DATASET - cumulative sumif
    By tanfrioza in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-10-2017, 11:11 PM
  5. Value if data in dataset is found in SUMIF function
    By JWerv in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-07-2016, 04:25 PM
  6. SumIf formula or Sumif with pivottable combined question
    By mcgleeuw in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2015, 01:05 PM
  7. faster way to do countif via vba for large dataset
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-10-2014, 09:58 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