close

Coworker just converted a 1-2-3 spreadsheet into Excel workbook. Only
thing that didn't convert was the 1-2-3 @ function for the date.
I need to show the percentage of the year that has elasped from the
start date of 10/01/05 to a date that I provide = % of year elasped.The 1-2-3 formula for this was:
@DAYS(@DATE(2005,10,1),@DATEVALUE( H3),3)/365.

I'm a new user so detailed instruction would be helpful. I don't know
if everything goes in one column as in 1-2-3 or if it has to go into
multiple columms.

Thanks in advance--
CMA
------------------------------------------------------------------------
CMA's Profile: www.excelforum.com/member.php...oamp;userid=32522
View this thread: www.excelforum.com/showthread...hreadid=523055Could you explain what the parameter 3 does in your @DAYS( ) function?
You seem to have:

@DAYS(first_date, second_date, 3)

Pete
Unfortunately I didn't create that formula since I inherited the 1-2-3
spreadsheet and it had already been created. But, looking at it the
( H3) is the cell in 1-2-3 that the current day or day I select is
entered. That is the date I need to be divided by my start date to get
the % of elasped time. It isn't always the current date so it's entered
each month when the report is updated.

I'm not sure about the 3)365 except that we use 365 days in a year.

Thanks,--
CMA
------------------------------------------------------------------------
CMA's Profile: www.excelforum.com/member.php...oamp;userid=32522
View this thread: www.excelforum.com/showthread...hreadid=523055
CMA wrote:
gt; Unfortunately I didn't create that formula since I inherited the 1-2-3
gt; spreadsheet and it had already been created. But, looking at it the
gt; ( H3) is the cell in 1-2-3 that the current day or day I select is
gt; entered. That is the date I need to be divided by my start date to get
gt; the % of elasped time. It isn't always the current date so it's entered
gt; each month when the report is updated.
gt;
gt; I'm not sure about the 3)365 except that we use 365 days in a year.
gt;
gt; Thanks,
gt;
gt;
gt; --
gt; CMA
gt; ------------------------------------------------------------------------
gt; CMA's Profile: www.excelforum.com/member.php...oamp;userid=32522
gt; View this threa
d: www.excelforum.com/showthread...hreadid=523055
The ,3/365 means use 365 days as the basis for days in the year.@DAYS(start-date;end-date;[basis]) calculates the number of days
between two dates using a specified day-count basis.

Arguments

start-date and end-date are date numbers. If start-date is earlier than
end-date, the result of @DAYS is positive. If start-date is later than
end-date, the result of @DAYS is negative. If start-date and end-date
are the same, the result of @DAYS is 0.
basis is an optional argument that specifies the type of day-count
basis to use. basis is a value from the following table:

basisDay-count basis
030/360; default if you omit the argument
1Actual/actual
2Actual/360
3Actual/365
4European 30/360
Examples

@DAYS(@DATE(93;4;16),@DATE(93;9;25)) = 159, the number of days between
April 16, 1993, and September 25, 1993, based on a 360-day year of
twelve months, each with 30 days.
@DAYS(@DATE(93;4;16),@DATE(93;9;25),1) = 162, the number of days
between April 16, 1993, and September 25, 1993, based on the actual
number of days in the months April through September.

Similar @functions

@DATEDIF calculates the number of years, months, or days between two
dates. @D360 and @DAYS360 calculate the number of days between two
dates, based on a 360-day year. @NETWORKDAYS calculates the number of
days between two dates, excluding weekends and holidays.If you have two dates in Excel you can just subtract one from the other
to get the difference in days - this can then be divided by 365 to
convert to years. Hence your formula can be written in one cell as:

=(H13-DATEVALUE(quot;10/01/2005quot;))/365

This will give you fractions of a year elapsed since the reference date
of 10/01/05 - I've done it this way so that you can easily change the
reference date, but it assumes H13 contains a date in Excel format.

Hope this helps.

Pete
Pete

Thanks!!! I'm gonna try it in a few mins and see what happens.

Interesting, both of my quot;helpersquot; are from the UK--
CMA
------------------------------------------------------------------------
CMA's Profile: www.excelforum.com/member.php...oamp;userid=32522
View this thread: www.excelforum.com/showthread...hreadid=523055
Looks like we are close. I did the formula you provided and this was my
result:

-10582.5%
It looks like it's 82.5% elasped since the start date but how do I get
rid of the number preceeding the 82.5%, and actually the boss would
probably rather not see the .5% and have it show 82% or round up/down
to the whole number.

Thanks a million for the assistance.--
CMA
------------------------------------------------------------------------
CMA's Profile: www.excelforum.com/member.php...oamp;userid=32522
View this thread: www.excelforum.com/showthread...hreadid=523055
Looks like we are close. I did the formula you provided and this was my
result:

-10582.5%
It looks like it's 82.5% elasped since the start date but how do I get
rid of the number preceeding the 82.5%, and actually the boss would
probably rather not see the .5% and have it show 82% or round up/down
to the whole number.

Thanks a million for the assistance.--
CMA
------------------------------------------------------------------------
CMA's Profile: www.excelforum.com/member.php...oamp;userid=32522
View this thread: www.excelforum.com/showthread...hreadid=523055No, this does not mean that 82.5% of a year has elapsed - think about
it: it is now March and the reference date was in January of last year,
so more than one year has elapsed. Alternatively, the reference date
was 1st October, so we are now about half a year past that date (I
don't know if you are working with mm/dd/yy or dd/mm/yy format dates).

You need to put a date in cell H13 for it to work correctly. If you
make it 20/03/2006, then you should get 1.189041, and you need to
format this cell as percentage with no decimal places if you want it to
show 119%. To follow the alternative date format, enter 03/20/2005 and
you will get 47%.

If you want to avoid spurious values, then change the formula to this:

=IF(H13=0,quot;quot;,(H13-DATEVALUE(quot;10/01/2005quot;))/365)

This will give you a blank result if there is nothing in cell H13.

Hope this helps.

Pete

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()