+ Reply to Thread
Results 1 to 6 of 6

automatic row number if data entered in adjacent cell.

  1. #1
    Registered User
    Join Date
    04-23-2017
    Location
    LONDON, ENGLAND
    MS-Off Ver
    PRO PLUS 2016
    Posts
    12

    automatic row number if data entered in adjacent cell.

    I am entering data sets in an excel sheet. I need serial row numbers to be added automatically when i add data in adjacent cell.

    for exmaple row A and B are used for data. I enter date in cell B1 and cell A1 gets populated with Serial no 1. then i add date in cell B6 and A6 gets populated with serial no 2. the gap between two date cells would be random and not fixed. So i need a dynamic formula that can generate the serial number as and when required.

    thanks

  2. #2
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: automatic row number if data entered in adjacent cell.

    Assuming your data starts from B2
    In A2 type
    =IF(B2<>"",ROW()-1,"")
    and drag down
    Last edited by ImranBhatti; 04-24-2017 at 01:27 PM.
    Teach me Excel VBA

  3. #3
    Registered User
    Join Date
    04-23-2017
    Location
    LONDON, ENGLAND
    MS-Off Ver
    PRO PLUS 2016
    Posts
    12

    Re: automatic row number if data entered in adjacent cell.

    Quote Originally Posted by ImranBhatti View Post
    Assuming your data starts from B2
    In A2 type

    and drag down
    this shows the row number minus one. I want the serial numbers to be sequence. like the first entry would have serial no1 then seven cells down i get serial number 2 after that 3 cells down i get serial no3. the gap between cells would be random.

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: automatic row number if data entered in adjacent cell.

    Add this to cell A1
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and this to cell A2 and drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  5. #5
    Registered User
    Join Date
    04-23-2017
    Location
    LONDON, ENGLAND
    MS-Off Ver
    PRO PLUS 2016
    Posts
    12

    Re: automatic row number if data entered in adjacent cell.

    Quote Originally Posted by mike7952 View Post
    Add this to cell A1
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and this to cell A2 and drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    THANKS A LOT! WORKS LIKE A CHARM

    would test and give feedback if i encounter any error

  6. #6
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: automatic row number if data entered in adjacent cell.

    Thanks for the Rep.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks
    Last edited by mike7952; 04-24-2017 at 02:01 PM.

+ 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] Populating a Combobox when data is entered into an adjacent cell
    By HELIXMB in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-03-2016, 01:00 PM
  2. Replies: 1
    Last Post: 05-01-2016, 08:57 AM
  3. [SOLVED] Copying today's date into cell when multiple data is entered into adjacent cell
    By SChapman in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-16-2013, 04:12 PM
  4. auto date cell when adjacent cell has data entered?
    By kalisun in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-01-2007, 12:49 PM
  5. [SOLVED] Auto date/time insert when data entered into an adjacent cell
    By Max in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  6. Auto date/time insert when data entered into an adjacent cell
    By Auto date/time in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. [SOLVED] Auto date/time insert when data entered into an adjacent cell
    By Auto date/time in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11: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