+ Reply to Thread
Results 1 to 8 of 8

Check between two rows then relabel and recount from 00

  1. #1
    Registered User
    Join Date
    05-31-2018
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    5

    Check between two rows then relabel and recount from 00

    I have typed a self counting up code in a table to help with the issue i had previously where the labeled numbering system would count up even when i add cells in between.
    I have multiple sections to this one table and the only way i can do so is by a cumbersome method but this method is flawed as the sections inbetween will also be resequenced to the wrong “Log entry”.

    My code is :
    =IF(AND(ROW()>60,ROW()<81),$S$3&TEXT(ROW()-61,"00"), IF(AND(ROW()>80,ROW()<101),$S$4&TEXT(ROW()-81,"00"), IF(AND(ROW()>100,ROW()<140),$S$5&TEXT(ROW()-101,"00"),$S$2&TEXT(ROW()-2,"00"))))

    The $S$2/3/4/5 is a label im using eg: ROW S2= “LOG_testA_”, ROW S3=“LOG_TestB_”....

    So if i add a new cell, i have to renumber the “AND” row. That’s the cumbersome thing. Is there something i can do to overcome this? something to read from a column or row? seems like some far-fetched kind of code.

    i used a Excel 2010 and uploaded it to google drive. But i can’t post here

  2. #2
    Registered User
    Join Date
    05-31-2018
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    5

    Re: Check between two rows then relabel and recount from 00

    docs.google.com/spreadsheets/d/1A9DWjcIARxskxTvyKppX01NQHwycpP2jAwt8C3wGsz8/edit?usp=sharing

    I noticed downloading it in excel 2016 will take the table i've created away.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Check between two rows then relabel and recount from 00

    Please upload your file to the forum. Not all members are able - or willing - to access file-hosting sites

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    05-31-2018
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    5

    Re: Check between two rows then relabel and recount from 00

    Ah, i am not home as of now. Will do that once i am home. Probably 10 hours from now. But thanks :3

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Check between two rows then relabel and recount from 00

    Look forward to seeing your sample file

  6. #6
    Registered User
    Join Date
    05-31-2018
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    5

    Re: Check between two rows then relabel and recount from 00

    i have uploaded it.

    but i dont know why it is converted into Excel 2016 when i used Excel 2010 to write the thing.

    also i dont know if there may be a function that will be implemented that may have to consider the different versions of excel. i hope not. cause im actually using Excel 2010 to do my test.

    Thanks a bunch. i hope if you have any questions you can ask me!
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-31-2018
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    5

    Re: Check between two rows then relabel and recount from 00

    I dont know if bumping the thread is allowed or something that can help cause i cant find it on the fourm. so im doing it just in case :3

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Check between two rows then relabel and recount from 00

    Perhaps this will be of help in speeding up your process. A second table (table 2) is added in columns R:U. The table is set up so that you can type in the labels for 'Column 1' or 'Column 2' and the range of rows that need to be set aside for that label. The 'Stop Row' column is populated using: =IF(ROW()=2,2,SUM(T2,U1))
    'Column 1' is populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    'Column 2' is populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] Recount/Reorder
    By gilpin004 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-29-2018, 05:57 PM
  2. [SOLVED] Recount/reorder formula
    By gilpin004 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-23-2018, 04:43 PM
  3. Check column for empty rows, delete rows shift cells up?
    By B.W.B. in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-06-2017, 12:41 PM
  4. Remove rows containing certain phrases & recount number of staff in each dataset
    By Hyflex in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-28-2015, 10:59 PM
  5. [SOLVED] VBA - Add Rows with formulas only and Delete Rows with check - User defined
    By polcen in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-03-2012, 12:18 AM
  6. Replies: 11
    Last Post: 10-16-2008, 05:14 PM
  7. Pivot - need to recount based on results
    By Kreed in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-19-2005, 04:05 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