+ Reply to Thread
Results 1 to 13 of 13

countinue numbering from the last duplicate number

  1. #1
    Registered User
    Join Date
    11-14-2018
    Location
    Selangor, Malaysia
    MS-Off Ver
    Office 2016
    Posts
    50

    countinue numbering from the last duplicate number

    Hi everyone, thank you so much for reading this post. Any help on this is truly appreciated.

    I have a list starting in column H5 and a VBA that counts the duplicate per week up to 5 and restart the count every monday (that someone here helped me with) and the count will be displayed in the column starting from I5. I would like the VBA to be able to continue the last duplicate number

    I already have the code(changed from the code I gotten) but it seems to be not working not sure where I went wrong.

    I would like it to do something like this:

    Previous Week Friday:-

    Column H-----Column I (count)
    5.Apple-------1
    6.Pear -------1
    7.Apple ------2


    This week Monday after restarting the numbering:-

    Column H-----Column I (count)
    8.Apple-------1
    9.Pear -------1
    10.Apple -----2

    This week tuesday
    11. Apple-----3
    12. Apple-----4


    Right now the coding I have instead of continue the counting in tuesday like the above(like what I wanted it to do). Right now it just starts to renumbering it back to 1
    Below is the code:

    Please Login or Register  to view this content.
    Please help me . Thank you so much.Disclaimer:I have post in another forum hoping to get an answer https://www.mrexcel.com/forum/excel-...mbering-4.html I'm so sorry should have read the rules first .
    Last edited by Norlina Deli; 12-16-2018 at 11:47 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: countinue numbering from the last duplicate number

    Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.

    Show a before and after situation with manually calculated results, explaining which information is data and which is results, and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    11-14-2018
    Location
    Selangor, Malaysia
    MS-Off Ver
    Office 2016
    Posts
    50

    Re: countinue numbering from the last duplicate number

    Hi Richard I have been trying to upload my file here, not sure why im unable to. Here is the link to my file. Apologies for the inconvenience
    https://ufile.io/pykmo

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: countinue numbering from the last duplicate number

    Hi,

    The paperclip attach icon isn't working. To upload a workbook choose the Go Advanced Button and underneath the post area pick the Manage Attachments and take it from there.

    Were you aware that the last used row is rge very bottom, 1048576. which makes the file. 5 Mb. you need to delete all the rows after your last data item and then save the workbook.

    Why are the weekday in column M not in order? Any solution will be simplified if that is the case.

    But this is clearly a much simplified example and probably doesn't contain all relevant data (like dates) or represent the size/format of your actual data. We often find that when we give an answer to what is a trivial non representative example when the solution is used with the real world data it doesn't work because of factors like string length and other stuff which is important but hasn't been mentioned.

    Therefore upload your real workbook (or at least a cut down copy), and manually add the results you expect to see. Clearly identify which is original data and which are the results and in a note clearly explain how you have arrived at your results.

    Your Invoice and Due Date columns say they are irrelevant. If you're looking to reset a counter each week surely dates are relevant, your current column M must be based on knowing the date and I'd suggest it's that which is probably irrelevant.

    As I say upload the real workbook and no doubt we can help further.

  5. #5
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,269

    Re: countinue numbering from the last duplicate number

    Perhab
    Please Login or Register  to view this content.
    "ThankyouFor Attention * And Your Help!!"

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: countinue numbering from the last duplicate number

    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question. If you have fewer than 10 posts here, you will not be able to post a link, but you must still tell us where else you have asked the question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    If you have less than 10 posts, do not try to copy and paste the link. Instead, type the link out in your thread.

    No further help to be offered, please, until the OP has complied with this request.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  7. #7
    Registered User
    Join Date
    11-14-2018
    Location
    Selangor, Malaysia
    MS-Off Ver
    Office 2016
    Posts
    50

    Re: countinue numbering from the last duplicate number

    I have post in another forum hoping to get an answer https://www.mrexcel.com/forum/excel-...mbering-4.html I'm so sorry should have read the rules first .

  8. #8
    Registered User
    Join Date
    11-14-2018
    Location
    Selangor, Malaysia
    MS-Off Ver
    Office 2016
    Posts
    50

    Re: countinue numbering from the last duplicate number

    hi daboho. Thank you for your reply. Would it be possible to show the count in column I ?

  9. #9
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,269

    Re: countinue numbering from the last duplicate number

    Still not sure what you want perhab
    Please Login or Register  to view this content.
    Last edited by daboho; 12-16-2018 at 01:43 PM.

  10. #10
    Registered User
    Join Date
    11-14-2018
    Location
    Selangor, Malaysia
    MS-Off Ver
    Office 2016
    Posts
    50

    Re: countinue numbering from the last duplicate number

    Thank you so much @daboho for the reply .I hope the below
    would explain it in detail for you to understand. again my gratitude for helping me out
    Attached Images Attached Images
    Last edited by Norlina Deli; 12-26-2018 at 04:01 AM.

  11. #11
    Registered User
    Join Date
    11-14-2018
    Location
    Selangor, Malaysia
    MS-Off Ver
    Office 2016
    Posts
    50

    Re: countinue numbering from the last duplicate number

    can anyone help me with this? Thanks in advance

  12. #12
    Registered User
    Join Date
    11-14-2018
    Location
    Selangor, Malaysia
    MS-Off Ver
    Office 2016
    Posts
    50

    Re: countinue numbering from the last duplicate number

    Is it really not possible?

  13. #13
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: countinue numbering from the last duplicate number

    I don't think we've yet seen the file uploaded in this forum - see post #4

    You may get more of a response if it is. Pictures alone are rarely much use.

+ 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] Need some help with duplicate numbering data merge
    By kevindowney in forum Excel General
    Replies: 24
    Last Post: 02-14-2016, 06:52 PM
  2. [SOLVED] VBA to duplicate cell and continue numbering
    By adamheon in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-24-2013, 12:21 PM
  3. Sequence numbering for each duplicate record
    By excel.help in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-01-2011, 05:48 PM
  4. sequential numbering duplicate data
    By mlopardo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-08-2010, 04:11 PM
  5. sequential numbering duplicate data
    By mlopardo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-08-2010, 03:44 PM
  6. sequential numbering of duplicate data
    By 3mlokki in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-26-2010, 07:15 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