+ Reply to Thread
Results 1 to 5 of 5

Need macro/formula to count inconsistent ranges of data

  1. #1
    Registered User
    Join Date
    09-23-2019
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    6

    Smile Need macro/formula to count inconsistent ranges of data

    Hello,

    I have a tasks that takes a lot of manual work and counting. I believe a formula or macro could be use in this case. Attaching the file.
    So main task is to count how many items is in one sequential range. Main data sheet - is what i have, and Ranges count data - how i need it to look.
    Range is going in sequential order, and sometimes it has a gap, and restarts range from there. I need to know how many items is from the beginning until the gap, and then again from the one gap until other. I am not sure i can explain it very good, hopefully excel file will give you an idea what is needed. Usually i have 200+ lines of these ranges.

    thank you very much!!!
    Attached Files Attached Files
    Last edited by Poseur_; 09-24-2019 at 04:31 AM.

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

    Re: Need macro/formula to count inconsistent ranges of data

    Format your source data as a table, then use Power Query:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    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...

  3. #3
    Registered User
    Join Date
    09-23-2019
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    6

    Re: Need macro/formula to count inconsistent ranges of data

    WOW! this works perfectly. Also, I forgot to add one more column. Seq should stick with the beginning of range. Is it something you could add to this?
    Attached Files Attached Files

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

    Re: Need macro/formula to count inconsistent ranges of data

    Sure - use this:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-23-2019
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    6

    Re: Need macro/formula to count inconsistent ranges of data

    Thank you very much!

+ 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] Index match formula inconsistent on similar data
    By Median in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-11-2018, 04:59 AM
  2. Macro inserting data after several blank rows - inconsistent
    By ashley72788 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-28-2017, 08:17 AM
  3. Two inconsistent date ranges
    By Inzy in forum Excel General
    Replies: 1
    Last Post: 09-05-2016, 12:34 PM
  4. Macro to select filtered data is inconsistent..
    By Dahlia in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-03-2016, 02:03 PM
  5. (Count Formula) Count if two seperate ranges create unique combination
    By Geekcrux in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-10-2016, 07:00 AM
  6. [SOLVED] Macro to insert sum function to inconsistent data
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-28-2014, 09:22 PM
  7. [SOLVED] Inconsistent scoping of Named Ranges - Debugging Issue
    By Romulo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2013, 02:47 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