Forum Discussion
QUESTION ABOUT EXCEL
I apply the datevalue command but I get something wrong! Could you help me ?
Thank you very much
Here is the sample workbook.
20 Replies
- JoeUser2004Bronze Contributor
emmapapa2 .... It is unclear what the problem is. Is it simply that DATEVALUE does not work for you? If so, what does it return? Or is that your logic does not work for you? If so, what exactly are the formulas that you tried?
The problem might be that the form of the dates is not recognized as numeric dates; instead, Excel might be treating them as text. Use formulas like =ISNUMBER(A1) to determine the type of the data.
If you are still having a problem, I suggest that you attach an Excel file (not an image) that demonstrates the problem
- emmapapa2Copper ContributorConstruction age (x5):
The time period in which the date of issuance of the building permit is included is stated. In case of addition of a permit and / or inclusion in a law of arbitrary settlement, the declaration is made on the basis of the period of issuance of the initial building permit. In case there is no building permit, the construction declaration is made on the basis of being subject to an arbitrary settlement law.
For the dates of issuance of a permit / construction based on a declaration of affiliation, the scoring is as follows:
(x5≤09.08.1955) = 100 points,
(10.08.1955≤ x5≤09.06.1975) = 80 points,
(10.06.1975≤ x5≤31.12.1982) = 60 points,
(01.01.1983≤ x5≤31.12.1992) = 45 points,
(01.01.1993≤ x5≤31.12.2003) = 30 points,
(01.01.2004≤ x5≤31.12.2011) = 15 points
(x5> 1.1.2012) = 0 points
The real problem is this! And I would like to introduce a functions tofind thw solution! Could you helpme???I'd create a small lookup table. In the screenshot below, it is on the same sheet, but it can be on another sheet if you prefer.
Formula in Y5:
=VLOOKUP(X5,$AC$5:$AD$11,2)
why 8/20/1950 and 9/20/1950?
Why twice the value 60?
Try a variation of this, where C2 is the cell with the date:
=IF(C2<=DATE(1950,9,20),80,IF(C2<=DATE(1998,10,30),70,IF(C2<=DATE(2008,01,30),60,"?")))
- emmapapa2Copper ContributorFor date from
1. <= 20/08/1950 to display the value 80 points and
2. for date> = 20/09/1950 until <= 30/10/1998 to display the value 60 points and
3. for date> = 31/10/1998 until <= 30/01/2008 to display the value 40 points
Which way is the best to find the solution ?