+ Reply to Thread
Results 1 to 3 of 3

Column number of last cell with data

  1. #1
    Registered User
    Join Date
    06-10-2014
    Location
    Kansas City, MO
    MS-Off Ver
    Excel 97
    Posts
    26

    Column number of last cell with data

    I need the column number of the last cell with data in a row. For example, if row 4 has data in the E, F, G, and Z columns, I want the formula to return 26. I appreciate any help.

    Ken S.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Column number of last cell with data

    Try

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


    Assumes data in A:M with above formula in (say) O1
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Registered User
    Join Date
    06-10-2014
    Location
    Kansas City, MO
    MS-Off Ver
    Excel 97
    Posts
    26

    Re: Column number of last cell with data

    That worked perfectly. Thanks John!

    Ken

+ 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. Find last cell in table column, then open data inputbox for user to put in a number
    By chrispikekerry in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-17-2022, 01:12 AM
  2. [SOLVED] If number in Column A matches number in column B - Copy B cell and adjacent cells ?
    By BPSJACK in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-16-2014, 12:30 PM
  3. [SOLVED] Compare column number of a cell with the last cell column number in a loop
    By Pavan Renjal in forum Excel Programming / VBA / Macros
    Replies: 30
    Last Post: 03-28-2014, 06:56 AM
  4. Replies: 7
    Last Post: 10-23-2012, 02:29 PM
  5. pull data from by column & row number not cell name
    By arctushar in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-15-2012, 12:20 PM
  6. write a formula for every cell in a column for the total number of rows of data
    By excelaspire0219 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-23-2009, 02:30 PM
  7. Replies: 7
    Last Post: 12-18-2008, 07:34 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