Data>Data Analysis>Regression yields "Input Range Contains Non-Numeric data" when it doesn't

Anonymous
2025-05-11T16:32:51+00:00

I'm getting the message "Regression - Input Range Contains Non-Numeric Data" when the data format is Numeric. The initial data was opened into Excel 2019 and changed from text to numeric. I've tried F3+0 in G3 to force numeric; setup a new tab and brought F3 from the 'BadTab' into the 'NewTab' without success via =BadTab!F3

My data has headers so I've tried Headers on and off in the Regression dialog box.

What can I do to convert/correct/update this situation?

Microsoft 365 and Office | Excel | For education | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Andreas Killer 144K Reputation points Volunteer Moderator
    2025-05-12T08:17:47+00:00

    We need to see your (sample) file.
    Why a sample file is important for troubleshooting. How to do it. - Microsoft Community

    The article also contains a link to a macro that you can use to anonymize your data.

    Andreas.

    0 comments No comments
  2. Anonymous
    2025-05-12T15:22:56+00:00
    0 comments No comments
  3. Andreas Killer 144K Reputation points Volunteer Moderator
    2025-05-12T15:38:26+00:00

    All data in column A:E and O:S is text.

    Convert the data into values as described here:

    Convert numbers stored as text to numbers - Office Support

    Or import the data again using Power Query as described here:
    Power Query - How to import a CSV file that does not match your locale - Microsoft Community

    Andreas.

    0 comments No comments
  4. Anonymous
    2025-05-13T16:17:56+00:00

    Andreas..

    Thanks for your help and input.

    On my side using the same file with the RegressionAnalysis tab, I see "Number" in columns F and S of the RegressionAnalysis tab but still get the same message. All columns (F, S and T) that have data in their respective cells for rows 3-31 are "Number". Relative to the OrigTest, the columns you mention are General (=text).

    So, I changed the Regression selection from F and S to F and T and got things to work without any changes either to the cells, columns, rows or the file itself. Again, each column's data is "Number" except for the Labels.

    Hence, I got things to work, but I still don't know why cells classified as Number don't work in column S, probably, with the Regression function of Excel's Data Analysis dialog box.

    This works:

    0 comments No comments
  5. Andreas Killer 144K Reputation points Volunteer Moderator
    2025-05-14T07:06:31+00:00

    I understand what you are trying to accomplish, but your undertaking is pointless, it did not work as you think.

    Delete all sheets except "OrigTest", delete the columns with the formulas, convert all the text into values. After that the issue is gone.
    Convert numbers stored as text to numbers - Office Support

    Once again: If you import the data using Power Query, you would not run into this trouble.

    Power Query - How to import a CSV file that does not match your locale - Microsoft Community

    Andreas.

    0 comments No comments