+ Reply to Thread
Results 1 to 4 of 4

Running Counta on Xls vs. xlsx

  1. #1
    Registered User
    Join Date
    01-27-2012
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2016, O365
    Posts
    97

    Running Counta on Xls vs. xlsx

    Hi All,

    I am running 2010 and creating a report that gathers info from multiple spreadsheets across multiple network servers. These spreadsheets are saved in both xls. and xlsx formats as the users have various versions of excel.

    My question is would I expect any impact to the results? I am mostly just using Counta.

    The reason I am asking is that the result reported is much higher than expected on the first file that is xls. I'm not sure if this is a coincidence or if that there is some kind of compatibility issue.

    ****UPDATE - I saved the xls worksheet as xlsx. and the result becomes accurate so there must be a connection. Is there any way to resolve this as I will definitely need to pull from both file types.

    Thanks for your thoughts,

    Les
    Last edited by bigtunelover; 03-30-2017 at 12:09 PM.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,882

    Re: Running Counta on Xls vs. xlsx

    My guess is that prior to saving as xlsx, there were some seemingly blank non-blanks in xls file. Thus being counted in COUNTA().

    If you can upload sample .xls where you observe this issue, it will be easier to pinpoint the cause.

    FYI -
    What I usually do when needing to consolidate data from multiple sources, is to use PowerQuery and/or ADO.
    This allows me to clean/transform data as I need (in worksheet or in data model) while keeping the source file(s) as is.
    This also allows me leverage PivotTable to summarize data.

  3. #3
    Registered User
    Join Date
    01-27-2012
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2016, O365
    Posts
    97

    Re: Running Counta on Xls vs. xlsx

    Thanks for replying. I think I figured out the issue. Just putting here for someone else if it helps.

    Here was the formula I was using "=COUNTA('C:\CFI\[OttawaWork.xlsx]Sample Plan'!$AY$2:$AY$1048576)

    This issue was that the total number of rows in excel 2003 is much less so I dropped it to a lower number (as I would never get that high anyway) and the result of this was successful:

    "=COUNTA('C:\CFI\[OttawaWork.xlsx]Sample Plan'!$AY$2:$AY$60000)

    This solved the problem.

    Take care,

    Les
    Last edited by bigtunelover; 03-30-2017 at 03:03 PM.

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,882

    Re: Running Counta on Xls vs. xlsx

    Thanks for sharing. Please mark your thread [Solved] using thread tool at your initial post.

+ 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. Replies: 0
    Last Post: 01-14-2016, 03:22 PM
  2. [SOLVED] Need to Copy/Save Entire Workbook as .XLSX but Keep Macros Running
    By bryanmarks in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-29-2014, 07:43 PM
  3. Extracting different cells data from Entry.xlsx to Report.xlsx
    By paradise2sr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-07-2014, 10:04 AM
  4. Replies: 1
    Last Post: 12-10-2013, 12:11 PM
  5. Saving xlsm file as xlsx while running macro
    By happygilmore in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-29-2012, 02:32 PM
  6. Replies: 6
    Last Post: 08-28-2012, 03:51 AM

Tags for this Thread

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