+ Reply to Thread
Results 1 to 4 of 4

CountIFS roll up to one value- Sum the one time month is called out

  1. #1
    Forum Contributor
    Join Date
    02-13-2018
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    178

    CountIFS roll up to one value- Sum the one time month is called out

    I am looking for a formula that will Count the month (A) for any "x" value in (L). And count that month within the year column (B).

    So for example is (A) counts "1" as the value in 2017. But let's say there are 30 counts of "1" in (A). I just want in another cell the formula to return the "1" where the value equals "x" in column (I). Something where I can drag the formula down and hopefully it will look just return the first time a month is called out in (A) where there is an "x" in column (L).

    similar to what the pivot is doing below which I want to get rid of.

    It is counting months 1-12, but only returning a count with the cells that have values.

    In the case of the pivot, the cells with values are sums on column (I) in this data tab.

    I have this formula in there now, but it won't work in full like I need it to.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365
    Posts
    1,248

    Re: CountIFS roll up to one value- Sum the one time month is called out

    Not sure I get it.
    Please let us know the expected result in the first few rows.

  3. #3
    Forum Contributor
    Join Date
    02-13-2018
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    178

    Re: CountIFS roll up to one value- Sum the one time month is called out

    Column A and column B have the year and month. So what I want to do is put a formula in Cell AA2 (on earlier attachment) that returns just once that the the month is called out within a year. So example (A2) is "1" for January, but there are multiple values of "1" withing the year column, example "1" in "2017". So I want the formula to pick up only once when the month is called out in a year.

  4. #4
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365
    Posts
    1,248

    Re: CountIFS roll up to one value- Sum the one time month is called out

    Try this:

    =IF(COUNTIFS(I$2:I2,"x",A$2:A2,A2,B$2:B2,B2)=1,COUNTIFS(I$2:I2,"x",A$2:A2,A2,B$2:B2,B2),"")

+ 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. Need VBA code to roll when I roll date in file
    By scrivenk in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-30-2018, 07:52 PM
  2. Vacation Accrual With 3 Month Roll Over
    By johnknight in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-29-2014, 08:32 AM
  3. Replies: 14
    Last Post: 03-05-2014, 10:52 AM
  4. [SOLVED] Need To Add time in Column up to 24hr then roll over the date
    By ValleyJ in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-14-2013, 08:08 PM
  5. Roll Assgnment - Items per month count
    By DUBBAVEE in forum Excel General
    Replies: 1
    Last Post: 11-30-2011, 01:05 AM
  6. Making Time roll over after 24 hours
    By Emil240 in forum Excel General
    Replies: 12
    Last Post: 11-26-2009, 04:02 AM
  7. [SOLVED] have invoice # roll up, or add 1, each time document is opened
    By Syndee in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-23-2006, 08:35 AM

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