Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

iOS Numbers returning DATEVALUE result as a date

I loaded an Excel spreadsheet to my iPad. I have Numbers 2.2.1 (the latest version) installed on the iPad (iOS7). One calculation on the spreadsheet uses the DATEVALUE function. Instead of returning a number, the calculation returns a date, and Numbers will not allow me to reformat the cell from "automatic" to a number. This basically cripples the spreadsheet because it generates errors in other cells that use the first cell and it will not allow and recalculation of the spreadsheet. I understand that a similar issue with the iMac version existed recently. Has anyone run into this and found a resolution.


Thanks,


JohnD

Posted on Jul 3, 2014 7:35 AM

Reply
14 replies

Jul 3, 2014 11:05 AM in response to Kilgore-Trout

Obviously there is a discrepancy between how Microsoft considers DATEVALUE functions and how Apple thinks it functions. According the the Excel doc, DATEVALUE "Returns the serial number of the date represented by date_text. Use DATEVALUE to convert a date represented by text to a serial number." The Apple doc you pointed to indicates that it returns the value as another date in a slightly different format. Basically the Apple version is non-functional. I need the date converted to a number in order to do subsequent calculations.


JohnD

Jul 3, 2014 10:54 PM in response to t quinn

Thanks for your reply. I found a NUMBERS function (DATEDIF) that will do what I want to do. I am trying to convert a date to its serial number equivalent so I can do further calculations with it. By using DATEDIF and the date 12/30/1899 as the starting date, I can reproduce what the EXCEL DATEVALUE function does.The only problem with DATEDIF is that it is not a valid EXCEL function. so there is no way to seamlessly transition from EXCEL to NUMBERS without an error. I am trying to set it up so others might be able to use this without having to go in and manually redo a cell especially since they may not be that familiar with iOS NUMBERS. I was thinking of creating a user function in EXCEL to reproduce the NUMBERS DATEDIF function, but I don't know how NUMBERS would interpret that.


JohnD

Jul 4, 2014 12:59 AM in response to johnpdap

Well lo and behold. EXCEL comes through. I set up a formula with an IF statement:


IF (O5="EX", DATEVALUE(C11),DATEDIF(M5,C11,"D"))


Cell C11 contains the date to convert.

Cell O5 contains an indicator as to whether I was using EXCEL or NUMBERS.

Cell M5 contains the initial starting date (12/30/1899) to calculate the date difference.


As long as I don't try to execute the second half of the IF statement, EXCEL is perfectly happy with the invalid function in that second half of the IF. When I import the spreadsheet to NUMBERS on the iPad, I get an error because it does not like using the result of the DATEVALUE function in a calculation. All I need to do is remove the indicator in cell O5, and NUMBERS is happy and correctly computes the the difference value.


JohnD

Jul 4, 2014 3:41 PM in response to t quinn

Well one step forward and two steps back. NUMBERS is choking on all my INDIRECT references such as INDIRECT("$A$"&ROW()-1). I tried just to manually enter a cell to test what NUMBERS is looking for and it keeps giving me an error that it finds a list where it expects a single entry. How does one enter such a reference?


JohnD

Jul 4, 2014 4:35 PM in response to johnpdap

Hi John,


INDIRECT("$A$"&ROW()-1)* works just as expected on my machine. Is your error message that it finds a range?

OFFSET($A$1,ROW()−2,0) gets me the same result. Does that work?

—> Are you trying to create a cross program spreadsheet that works in both Excel and Numbers? If yes, you might want to ask that question in the Numbers for Mac forum. There are people there who continue to use both. Be prepared to post screenshots and explain what you need from your spreadsheets- they may be able to offer approaches that surprize you and satisfy both programs. Sounds like a tall order.

Or is the Excel sheet just a jumping off place? If your spreadsheet is mostly used in iOS then you might want a fresh approach that capitalizes on Numbers strengths. Again, "This is what I am trying to accomplish" can be more fruitful than, "I need a formula that will do this".

*Beside the point: I am not sure why you are using "$" The "A" will remain "A" if you fill this formula and the row is determined by the formula based on the row it is in.

quinn

Jul 4, 2014 5:28 PM in response to t quinn

I am in a habit of using the absolute cell reference "$". I have run into some situations where using the relative reference caused me problems. I could remove those without a problem. In fact I am trying that now.


I was originally attempting to create an EXCEL spreadsheet on my PC to calculate the position of alignment stars for a telescope. Once created the idea came to me to be able to load this on my iPad so I could use it in the field. The spreadsheet works well on the PC, the only problem I have is porting it to the iPad. There are apparent differences between EXCEL and NUMBERS. I have been able to find workarounds for just about everything. The INDIRECT references, I believe, are the last issue. I am going through the spreadsheet again and trying to remove the INDIRECT references to see if the spreadsheet still functions properly. If it does, then I will go with that.


The error I am getting when I try to enter a formula with an INDIRECT reference is "The formula contains a list where a single argument is expected". The NUMBERS User Interface for entering formulas takes some getting use to. It is not the free-form format that I am use to with EXCEL. I tried entering a test formula but I continue to get that error. I have attached a screen print.


Thanks,

JohnD


User uploaded file

Jul 4, 2014 8:19 PM in response to t quinn

I am still having an issue with INDIRECT statements. NUMBERS is rejecting them indicating that the function is unsupported. Some of these statements are essential and I don't know if there is another way around it. I believe I will follow your suggestion about checking into the Mac forum and seeing if someone has any suggestions there as to any workarounds.


Thanks for your help,


JohnD

iOS Numbers returning DATEVALUE result as a date

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.