+ Reply to Thread
Results 1 to 3 of 3

Sequential column numbers

Hybrid View

  1. #1
    Registered User
    Join Date
    12-17-2009
    Location
    Bridgetown Nova Scotia
    MS-Off Ver
    Excel 2007
    Posts
    53

    Sequential column numbers

    I want to delete a column in my spreadsheet and when I do the column heading indicates a column is missing. If I delete column 6 I would like column 7 to become 6 and so on. How do I do this?

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Trying to get sequential column numbers

    Try a variation of this example:

    A1: =COLUMNS($A:A)
    Copy that formula across through H1

    That will generate a series of digits from 1 through 8

    If you delete any of those columns, the numbers automatically change.
    For series that start in another column, just change the initial column ref...
    eg C1: =COLUMNS($C:C)

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,758

    Re: Sequential column numbers

    A slightly simpler alternative is

    A1: =COLUMN()

    And copy to the right. Of course, this only works if you want A to be Column 1.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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