+ Reply to Thread
Results 1 to 4 of 4

If No is deleted in middle of sequence,Nos alter after deleted No

  1. #1
    crusty53
    Guest

    If No is deleted in middle of sequence,Nos alter after deleted No

    I have a group of numbers,I delete one number in the middle ,i want the
    numbers
    after that number to reduce by one so that numbers still run in order.How do
    I do this.Thanks in advance .

  2. #2
    Nick Hodge
    Guest

    Re: If No is deleted in middle of sequence,Nos alter after deleted No

    Crusty

    If you are deleting a complete row then you could set up a formula referring
    to the cell above, (in A2 for example),

    =A1

    Now when you delete the row the formulae will update in line

    --
    HTH
    Nick Hodge
    Microsoft MVP - Excel
    Southampton, England
    www.nickhodge.co.uk
    [email protected]HIS


    "crusty53" <[email protected]> wrote in message
    news:[email protected]...
    >I have a group of numbers,I delete one number in the middle ,i want the
    > numbers
    > after that number to reduce by one so that numbers still run in order.How
    > do
    > I do this.Thanks in advance .




  3. #3
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243
    Hi Crusty,

    I'm not sure if I understand correctly but...
    If these are all consecutive descending #'s in a column, try entering something like the below in cell A8:
    =min($a$1:a7)-1

    If these are all consecutive descending #'s in a row, try entering something like the below in cell F1:
    =min($a$1:E1)-1

    In other words:
    =MIN(first cell in list with dollar signs : cell immediately before current cell w/o dollar signs) - 1

    I have used this technique with "max($a$1:a7)+1" for ascending numbered sets of instructions.
    Provided the absolute reference (ie $a$1) is not in the row/column deleted, the list will update after a row is deleted.

    Nick, if I've understood Crusty correctly, your suggestion =A1 with a "-1" (ie =A1-1 would result in #REF error if row 1 was deleted which would upset all rows after that.


    hth
    Rob Brockett
    Always learning & the best way to learn is to experience...

  4. #4
    Pete_UK
    Guest

    Re: If No is deleted in middle of sequence,Nos alter after deleted No

    Another way is to use the formula:

    =ROW()

    and copy down. If you want the number sequence to start at say 12 in
    row 3, then use:

    =ROW() + 9

    in the first cell and copy down.

    Hope this helps.

    Pete

    broro183 wrote:
    > Hi Crusty,
    >
    > I'm not sure if I understand correctly but...
    > If these are all consecutive descending #'s in a column, try entering
    > something like the below in cell A8:
    > =min($a$1:a7)-1
    >
    > If these are all consecutive descending #'s in a row, try entering
    > something like the below in cell F1:
    > =min($a$1:E1)-1
    >
    > In other words:
    > =MIN(first cell in list with dollar signs : cell immediately before
    > current cell w/o dollar signs) - 1
    >
    > I have used this technique with "max($a$1:a7)+1" for ascending numbered
    > sets of instructions.
    > Provided the absolute reference (ie $a$1) is not in the row/column
    > deleted, the list will update after a row is deleted.
    >
    > Nick, if I've understood Crusty correctly, your suggestion =A1 with a
    > "-1" (ie =A1-1 would result in #REF error if row 1 was deleted which
    > would upset all rows after that.
    >
    >
    > hth
    > Rob Brockett
    > Always learning & the best way to learn is to experience...
    >
    >
    > --
    > broro183
    > ------------------------------------------------------------------------
    > broro183's Profile: http://www.excelforum.com/member.php...o&userid=30068
    > View this thread: http://www.excelforum.com/showthread...hreadid=553470



+ 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