+ Reply to Thread
Results 1 to 2 of 2

a problem with blank lines

  1. #1
    Registered User
    Join Date
    08-06-2006
    Posts
    22

    a problem with blank lines

    Hi friends ......!!!!!
    i have a problem...suppose i have the following serial numbers in a row or u can say any text *** suppose....
    A1
    1
    2
    3
    4
    5
    6
    7
    8
    now suppose if i delete 3 and 6 then 3 and 6 will be deleted but all the other numbers will not be sorted automatically and the numbers or rows (3 and 6) will be blank...as given below
    1
    2
    blank line
    4
    5
    blank line
    7
    8
    but i want taht when i delte 3 and 4 numbers or the whole row then thee blanks shouldnt be there..as 4 and 7 should be move up and sorted automatically as
    1
    2
    3
    4
    5
    6 as 4 and 7 moves up in the place of 3 and 6 and sorted automatically..as before deleting there were 8 numbers but after deleteing there are 6 numbers so they are sorted automatically and there is no blank line between themmmmmmm

    any help will be highly appreciated.......thanks in advance.

  2. #2
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    If your data is in column B and you want to give serial numbers in column A then put following formula in A1 if your data starts in B1

    =IF(A1<>"",COUNTA($A$1:A1),"") and copy this formula down in column A. now if you delete the data in column B serial numbers in col A will automatically be adjusted.

    hope this serves your purpose.

    Quote Originally Posted by naughtyboy
    Hi friends ......!!!!!
    i have a problem...suppose i have the following serial numbers in a row or u can say any text *** suppose....
    A1
    1
    2
    3
    4
    5
    6
    7
    8
    now suppose if i delete 3 and 6 then 3 and 6 will be deleted but all the other numbers will not be sorted automatically and the numbers or rows (3 and 6) will be blank...as given below
    1
    2
    blank line
    4
    5
    blank line
    7
    8
    but i want taht when i delte 3 and 4 numbers or the whole row then thee blanks shouldnt be there..as 4 and 7 should be move up and sorted automatically as
    1
    2
    3
    4
    5
    6 as 4 and 7 moves up in the place of 3 and 6 and sorted automatically..as before deleting there were 8 numbers but after deleteing there are 6 numbers so they are sorted automatically and there is no blank line between themmmmmmm

    any help will be highly appreciated.......thanks in advance.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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