change format - incorrectly turns format to date

melendezml

Board Regular
Joined
May 5, 2014
Messages
63
I downloaded a csv file of some student data.
The data below displays the number of students in a class.
For example, the first row displays 20 students out of 28.
Excel automatically converts some of the values to date such as 28-Jan (should be 1/28)
How can I fix this? When I change the values to text it converts the date to its numerical value 41667 for 28-Jan. Ideally I don't even care for the denominator. I just want it to give me the total number of students (numerator). Any help is appreciated.

20/28
30/28
29/28
28-Jan
32/28
26/28
93/175
100/175
28-May
28-Jan
28-Jul

<colgroup><col></colgroup><tbody>
</tbody>
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
If you use Data -> Get External Data -> From Text, you will be presented with the Text-to-Columns wizard. You have the option, in the very last step, to choose the data type; select Text to avoid Excel turning your values into dates automatically.
 
Upvote 0
I am creating a macro for others to just paste the data and run the macro.
Can I get 'external' data from one sheet to another from the same workbook?
 
Upvote 0
I neglected to select the column I was trying to apply the setting of text.
IT WORKED!!!!
THANKS!
I even selected the external data to be form within the same worksheet!
Awesome!
 
Upvote 0
So everything works well? If so, congratulations! I'm glad I could help. Post back here if anything else comes up.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,752
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top