+ Reply to Thread
Results 1 to 3 of 3

Getting the count of columns in row A from a separate Excel file

Hybrid View

  1. #1
    Registered User
    Join Date
    09-21-2005
    Posts
    9

    Getting the count of columns in row A from a separate Excel file

    If I use =COUNTA(A:A) in my spreadsheet I get a count of columns in row A with data in them.
    I need to do the same but pull from an external file.
    The following returns a 1 even though the external file has 232 rows in Column A.
    =COUNTA('C:\Temp\[test.xlsx]Sheet1'!A:'C:\Temp\[test.xlsx]Sheet1'!A)

    It seems to me that it should work...
    I am sure the gurus here will have a quick fix for a beginner such as myself..
    Thanks in advance!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: Getting the count of columns in row A from a separate Excel file

    Try it like this:

    =COUNTA('C:\Temp\[test.xlsx]Sheet1'!A:A)

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    09-21-2005
    Posts
    9

    Re: Getting the count of columns in row A from a separate Excel file

    That did it! I knew it was something simple, thanks Pete_UK!

+ 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. How to split excel file into separate workbooks based on number of columns?
    By nandana83 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2012, 04:03 AM
  2. Replies: 3
    Last Post: 10-17-2012, 05:45 AM
  3. Replies: 1
    Last Post: 09-20-2012, 03:38 AM
  4. Replies: 1
    Last Post: 09-20-2012, 03:38 AM
  5. Replies: 5
    Last Post: 07-26-2006, 10:55 AM

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