LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old March 12th 18, 03:32 PM posted to microsoft.public.excel.misc
external usenet poster
First recorded activity by ExcelBanter: Mar 2018
Posts: 1
Default Excel treats 1/2 as a date instead of a fraction

On Monday, January 17, 2000 at 3:00:00 AM UTC-5, Robert Pearson wrote:

I had a similar issue with tracking a number of completed steps in a project (24 total steps in this case); here is what worked for me:

I created a table, into which I could paste my data as values only. Some fractions, such as 6/24 came out as a date (June 24), while others, such as 24/24 came as text. These two each needed to be calculated separately.

I created a new column on the right (titled "count") with a function referencing the fraction. Since any date will be greater than 1, I used =IF([@Current]1,TEXT([@Current],"MM/DD"),[@Current]) - where @Current is the column with the offending dates/fractions.

This will only generate text, so to get it into a number format, I created another column with the function =LEFT(@count,2)/RIGHT(@count,2). They you'll have a number you can format as a decimal, fraction, percentage, etc.

This was the simplest way that I could figure that wouldn't require running macros or pasting through notepad.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
fraction into date pm_sam Excel Discussion (Misc queries) 4 February 27th 10 01:41 PM
fraction into date pm_sam Excel Discussion (Misc queries) 3 February 3rd 10 09:30 PM
Excel fraction not a date FGM Excel Programming 6 May 24th 07 04:37 PM
date has fraction instead of whole number Shlookonim Excel Discussion (Misc queries) 1 January 27th 06 03:49 PM
fraction getting convered into date bombayterror New Users to Excel 4 January 8th 06 09:27 PM

All times are GMT +1. The time now is 10:03 PM.

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2004-2019 ExcelBanter.
The comments are property of their posters.

About Us

"It's about Microsoft Excel"


Copyright © 2017