+ Reply to Thread
Results 1 to 6 of 6

Sequential count based on matching variable...

  1. #1
    Registered User
    Join Date
    08-19-2015
    Location
    London, England
    MS-Off Ver
    365
    Posts
    67

    Sequential count based on matching variable...

    Hi,

    I'm having trouble to get Prefered results out of a matrix, based on the input/match of a specific date (Variable).
    I hope that someone would like to help me...

    Thanks in advance...



    TestSTL.jpg
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,492

    Re: Sequential count based on matching variable...

    What are your preferred results? In what way are the results in the attached file incorrect?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Sequential count based on matching variable...

    In L4, enter:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and copy across / down.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Registered User
    Join Date
    08-19-2015
    Location
    London, England
    MS-Off Ver
    365
    Posts
    67

    Re: Sequential count based on matching variable...

    Thanks for your replies... Olly & AliGW...

    The prefered result (L4:N8) is what I would like to see in J4:J8, depending on what date is entered in J2.

    So if I enter 10-10 (10 oct) in cell J2, the output should be:

    J4 Empty
    J5 1
    J6 Empty
    J7 Empty
    J8 2

  5. #5
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Sequential count based on matching variable...

    Okay - so my formula does what you want, I just put it in the wrong place.

    So enter this in J4, and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-19-2015
    Location
    London, England
    MS-Off Ver
    365
    Posts
    67

    Re: Sequential count based on matching variable...

    Yep @Olly, I just finished playing around with your formula and indeed it does exactly what I need. Thanks a lot... Problem solved... :-)

+ 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. Changing variable based on a count
    By silkpantsman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-10-2015, 09:30 PM
  2. Need formula to count score based on criteria (0/1 variable, time series)
    By wintheranders in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-25-2015, 07:08 AM
  3. Need formula to count score based on criteria (0/1 variable, time series)
    By wintheranders in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-25-2015, 04:57 AM
  4. [SOLVED] COUNT Function Based on a variable.
    By dwilkinson12 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-19-2014, 02:13 AM
  5. Get count of items based on 4 variable conditions
    By m2som in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 12-18-2013, 01:04 AM
  6. Trying to count the number of temps based on dates and matching containers
    By Kfeisse1 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-20-2010, 01:48 PM
  7. Count unique values based on matching criteria
    By gromitw in forum Excel General
    Replies: 9
    Last Post: 01-10-2007, 08:59 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