+ Reply to Thread
Results 1 to 9 of 9

[Excel online] Number cells in a column displayed as text problem please help

  1. #1
    Registered User
    Join Date
    02-07-2020
    Location
    Hanoi, Vietnam
    MS-Off Ver
    16001.11425.20056.0
    Posts
    5

    [Excel online] Number cells in a column displayed as text problem please help

    Hi.
    I need some help.
    I'm working with a little excel sheet today. I need to process the data of the movies and tv shows for the blind extracted from the audiovault website. There is an annoying problem happened. In my worksheet there is a column store the release year of the movies but in some cells the data get wrong. It is either a text or a wrong year with just 3 characters. I created in the worksheet another column named "no year check" to check the cells in this release year column. The release year column is the column D and the year check column is the column E. I input in the E2 cell of the column E this formula:

    Please Login or Register  to view this content.
    Says if the cell in the column D is a year in 4 numerical characters display nothing. If the cell in the column D is a year with 2 or 3 or other than 4 numerical characters display "wrong year". If the cell of the same row in column D contains not a numerical string then display "no year". Here is the picture.

    [excel] number displayed as text.jpg

    But the problem is all the data in the D column is left-aligned even the cell contain the number like 2004. So the text displayed in the E column are "no year" of all rows. I don't know how to fix this. I have selected all of the D column and change the data type of the column from "General" to "number" but all of the data of the column still left-aligned. If I press F2 + Enter for the cells of the column the problem go away but since there are thousands rows of data in the file, I can't manually repeat the procedure because it'll take me all of the day. Anyone can help please. I'm using Microsoft Excel online. I attached here the excel file in the hope that someone can help and do the check. Thank you in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: [Excel online] Number cells in a column displayed as text problem please help

    quickest way I've found to convert text to numbers is to highlight the data in question, then go to the data tab at the top, go to text to columns and open, if delimited isn't selected select it, then hit finish and it will convert all to numbers.

    you can do it with the whole column too, just highlight column D.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    02-07-2020
    Location
    Hanoi, Vietnam
    MS-Off Ver
    16001.11425.20056.0
    Posts
    5

    Re: [Excel online] Number cells in a column displayed as text problem please help

    Well, the problem is I don't have the license to install Microsoft Excel on my notebook. I just use the Excel online on the Microsoft Edge browser. It seems there is no such "text to column" thing on the data tab of the excel online website and my question is why when I selected all of the cells of the column and in the number section of the home tab, I change the data type from "General" to "Number" but there is nothing happen to the data of the column. Do you know what has happened with the data in my excel file.
    Last edited by AliGW; 02-08-2020 at 04:13 AM. Reason: Please don't quote unnecessarily!

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: [Excel online] Number cells in a column displayed as text problem please help

    what types of things can you do (because I don't use excel online)?
    another way
    select a blank cell, click copy, select the range containing the cells with numbers stored as text, click on paste >> paste special, select Add from the box and hit ok.
    last and longer way I know of is to open find and replace, then find what >> put in a number like 1 or 2, replace with what >> same number, replace all. This is slightly more tedious as you might have to go through all 10 numbers to get them all replaced (0 through 9) but it also works.

  5. #5
    Registered User
    Join Date
    02-07-2020
    Location
    Hanoi, Vietnam
    MS-Off Ver
    16001.11425.20056.0
    Posts
    5

    Re: [Excel online] Number cells in a column displayed as text problem please help

    I can do something on the Excel online but the function is quite limited in comparison to desktop program. I have tried Excel 2007 a long time a go on a desktop pc running Win XP and now I use Excel on the web browser and the function is really limited. I don't have any Microsoft Office app installed on my notebook the time I bought it and I don't know much these the Excel thing. The past special you say I don't see in the Microsoft Excel online. I'll try the search and replace numbers you have provided. This is really painful with these the my work.
    Last edited by AliGW; 02-08-2020 at 04:14 AM. Reason: Please don't quote unnecessarily!

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: [Excel online] Number cells in a column displayed as text problem please help

    since most of your dates are last century or this century, simply finding 1 and replace all with 1, then doing same with 2 should hopefully accomplish what you need (so two find and replaces).

    BTW, you don't need to quote posts, the admins don't like it as it can just be clutter. When replying to a post if something specific is needed then a quote but you can usually just refer to the post number, and since so far it only the two of us on here you really don't even need to do that.

  7. #7
    Registered User
    Join Date
    02-07-2020
    Location
    Hanoi, Vietnam
    MS-Off Ver
    16001.11425.20056.0
    Posts
    5

    Re: [Excel online] Number cells in a column displayed as text problem please help

    You're right, I'll do it as what you say, the forum thing. And the search and replace method you have said help. It save lot of time. But I don't know why these the thing come up. Some months ago I did the thing on another excel file with the same data of these the columns. I don't remember the thing but when I look back the file, the similar file on the drive, there is no such number frustration of the column. I don't know why. Was it because of the Microsoft website or the problem of the data. I hope some people have the answer.
    Last edited by Microsoftmylife; 02-07-2020 at 10:33 AM. Reason: Bad English

  8. #8
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: [Excel online] Number cells in a column displayed as text problem please help

    The formatting could be an issue where the source is producing text (maybe the dates in one vs the other are coming from two different sources).

    For example I have data in an access database that I format as text instead of number because I was told a long time ago by someone who taught me that if in the end you are not going to add it, subtract it, multiply it or divide it you want it to be text. Plus sometimes you have leading zeros that you want to preserve for later matching with other databases. In general you don't add years (though you can subtract them) so some people will leave years in a database as text. It really can depend on the source.

  9. #9
    Registered User
    Join Date
    02-07-2020
    Location
    Hanoi, Vietnam
    MS-Off Ver
    16001.11425.20056.0
    Posts
    5

    Re: [Excel online] Number cells in a column displayed as text problem please help

    OK. I'm still wondering why Microsoft Excel can't process these but I don't think I can understand all of these the matter. Thank you for the time anyway.

+ 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. [SOLVED] image converter problem in excel ( online )
    By majidsiddique in forum Excel General
    Replies: 1
    Last Post: 05-24-2019, 02:23 AM
  2. [SOLVED] Excel 365 online, date formatting problem.
    By Ginge1267 in forum Excel General
    Replies: 5
    Last Post: 02-11-2017, 03:32 PM
  3. [SOLVED] problem obtaining correct Text-to-be-displayed in hyperlink creation
    By dschmitt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-15-2014, 10:55 PM
  4. [SOLVED] Copy text in column 2 from column 1. Repeat text is displayed once only vba
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-12-2014, 03:39 AM
  5. Copy and Paste data in column A number of times displayed in column B
    By anthony232 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-15-2013, 05:13 PM
  6. [SOLVED] Set number value displayed in cell when certain text value is displayed in another
    By chrisswann in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-18-2013, 09:07 AM
  7. Count number of times a specific number is displayed in cells
    By subs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-27-2005, 11:05 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