+ Reply to Thread
Results 1 to 6 of 6

Cell values to count up from 1 to the value in cell, then start again and go to next value

  1. #1
    Registered User
    Join Date
    06-03-2013
    Location
    London, England
    MS-Off Ver
    Excel M365
    Posts
    73

    Cell values to count up from 1 to the value in cell, then start again and go to next value

    Hi all,

    I am trying to create a list of data pulled form multiple worksheets. To do this I am using the indirect function with index match to look for the worksheet name then use a number for the row lookup reference. In the spreadsheet attached, the column H is the reference and is currently manually entered, but need it to be dynamic driven by row C in the table to the left as the values 7 and 5 will change. Essentially I need it to count up from 1 to max of the first value in col c, then 1 to the max of the next value in column c, and so on and more sheets are added to the workbook. The reason for it being dynamic is that the values in col c will constantly change.

    Any help much appreciated.

    Thanks,

    Alex
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Cell values to count up from 1 to the value in cell, then start again and go to next v

    in h6 perhaps
    =IF(L6=L5,H5+1,1) and copy down

  3. #3
    Registered User
    Join Date
    06-03-2013
    Location
    London, England
    MS-Off Ver
    Excel M365
    Posts
    73

    Re: Cell values to count up from 1 to the value in cell, then start again and go to next v

    Thanks for such a quick and simple response, that does seem to work. Any chance you could explain how as I can't seem to understand it?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,863

    Re: Cell values to count up from 1 to the value in cell, then start again and go to next v

    Maybe this will help:

    =IF(L6=L5,

    If L6 is equal to L5 ...

    H5+1

    add one to the value in H ...

    ,1)

    otherwise return the value 1.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    06-03-2013
    Location
    London, England
    MS-Off Ver
    Excel M365
    Posts
    73

    Re: Cell values to count up from 1 to the value in cell, then start again and go to next v

    Ah yes very clear, was too busy trying to link it back to the other table. Thats great thank you!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,863

    Re: Cell values to count up from 1 to the value in cell, then start again and go to next v

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as 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. [SOLVED] Start new count on new value in certain cell
    By jba9211 in forum Excel General
    Replies: 4
    Last Post: 04-30-2019, 11:15 AM
  2. [SOLVED] Count number of times a number appears with count start from next cell of last occurr
    By lesliewheeler in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-29-2018, 09:34 AM
  3. Start a Count from a cell dependent on the value of another
    By ColinUR in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-10-2017, 09:22 AM
  4. Replies: 2
    Last Post: 05-25-2016, 12:46 PM
  5. Replies: 2
    Last Post: 08-16-2013, 08:45 AM
  6. [SOLVED] How to count multiple cell values & do a validation & display results on a different cell
    By adriandefry in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-03-2012, 09:12 AM
  7. Start count over after blank cell
    By RPS4444 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-02-2008, 11:27 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