How do you convert a date entry to a numeric value?

In Excel, I used to use the MAX() function on a range of dates to get the latest date from the range.  This does not work in Numbers.
Here is the function I used in Excel:
=IF(OR(TODAY()-MAX(J4:J56)>179,'Sheet 1 - Table 1'!I2-MAX(I4:I56)>4999),"NEED OIL CHANGE","")
J4:J56 is a list of dates.

Norman,
Numbers has data types.  With regard to:
TODAY()-MAX(J4:J56)>179
TODAY() returns a date/time value
MAX(J4:J56) also returns a date/time value
TODAY()-MAX(J4:J56)  returns a duration
179 is a number NOT a duration.  179 I think is supposed to be 179 days which you would enter as "179d".  a duration is expressed in weeks, days, hours, minutes, seconds, milliseconds.  So "179d" is short for "179d 0h 0m 0s 0ms"
This may work better for you:
=IF(OR(TODAY()−MAX(J4:J56)>"179d",F1−MAX(I4:I56)>4999),"NEED OIL CHANGE","")
note that I changed "'Sheet 1 - Table 1'!I2" to "F1" for my test as I do not have that table.  "'Sheet 1 - Table 1'!I2" looks like an excel reference that will not work in Numbers.  you should replace this by removing, then locating and selecting the correct cell in Numbers.
Said another way... select that part of the formula, delete, then click the cell where that resides in a Numbers table

Similar Messages

  • How do you supress the leading Zeros from a numeric value

    For example:
    v_tmp = '0005'.
    where v_tmp is of type NUMC(6),i can't change the data type as i get this value from a database table.
    how do i convert v_tmp to '5'?
    Thanks in advance.

    data : v_int type i.
    v_int = v_tmp.
    If you want to move it to a CHAR variable, follow as below
    data : v_numc(6) type n,
           v_char(10) type c.
           v_char = v_numc.
           condense v_char.
       SHIFT v_char LEFT DELETING LEADING '0'.
    Regards
    srikanth
    Message was edited by: Srikanth Kidambi

  • How can i convert the data from mutiple-table to the other database(MSSQL)?

    Dears,
    How can i convert the data from mutiple-table to the other database such as MS-SQL?
    I have a third party system based on MS-SQL 2000.
    Now we want to make a integration between SAP R/3(Oracle) and SQL server.
    When my user releases the purchase order in R/3, the application we coded will convert the releated data to the temp database on the SQL server.
    But i don't know which tools will help me reach the purpose.  BAPI, LSMW, IDoc... ???
    Would anybody tell me which way is better and how to do?
    Thanks a lot!
    Kevin Wang

    Hello Kevin,
    The question to use which method depend on your detail requirements. If you use BAPI, you need to find which Bapi can provide the data you want. Bapi normally use as a function called by external system. So you need to develop an external program like VB/Java to call this Bapi and move it to SQL. LSMW is use when you want to upload data from an external system to SAP. So it does not serve your requirement. Idoc can be use to export data to an external system. Again like Bapi, you need to find what Idoc can provide the data you want. However, it does not any programming from the external system. If I were you, based on your requirements, I think writing an Abap program that read the data you want and download it to NT/SQL server will be faster and easier.

  • How do you convert channels.dvb to channels.conf

    Title says is all. How do you convert the kaffeine file channels.dvb to a channels.conf file which can be used by mplayer.
    The winterhill transmitter in the UK is now totally digital, since the change over I've not been able to get BBC channels properly in mplayer. The receiver is a Freecom DVB-T USB. I've manually edited the uk-WinterHill file with the transmitter info to update it and used it to create a channels.conf file.
    scan /usr/share/dvb/dvb-t/uk-WinterHill > /home/~/channels.conf
    This picked up pretty much all the channels & I can tune into BBC channels but receive no picture. I've googled a bit and it seems other people have this problem too and they think it's a problem due to the increased power of the signal after the change over to digital. I've tried a variable attenuator which did no good.
    I've now found that kaffeine can scan for and find the BBC channels AND it can also play them back properly. So the theory about the signal strength being too much for the freecom sticks attenuator is probably a load of guff, at least in my case.
    The data for BBC One from the kaffeine channels.dvb is:-
    TV|BBC ONE|101(2)|102(eng),106(eng),|0|4168|4168|Terrestrial|802000|0|v|-1|-1|-1|-1|8|-1|-1|-1|45|105(16)(1)(1)(eng),||9018|-1|0|
    The same data from the mplayer/scan channels.conf is:-
    BBC ONE:802000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_AUTO:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_32:HIERARCHY_NONE:101:102:4168
    I really don't want to keep kaffeine installed and any links or info that would help convert these channel data files would be greatly appreciated. Seems there are ways to convert them the other way round, but so far I've found nothing to do it fron channels.dvb to channels.conf
    Last edited by Nixie (2009-12-17 08:42:56)

    Do you want to capture a single frame of the video as a separate image? You can play the video full screen in QuickTime, pause it at the appropriate frame and take a screenshot using shift-command-3.
    Matt

  • How do you convert a Modbus Datatype TIME in Lookout

    How do you convert a Modbus Variable with a Datatype of TIME in a Lookout Expression to display MMS.

    The URL provided above must be an internal N.I. link - for us folks on the outside it's
    http://digital.ni.com/public.nsf/allkb/1A3BB7B3299C11C78625680C004DA744
    I use a time_to_word function in the modicon when I need to display a data type of time in Lookout. What you get when looking at the register with the modbus object in Lookout is the time in msecs - just divide by 1000 to get the seconds. But you must 'build' the display for minutes, hours, etc. The numeric displays in Lookout are not
    based on seconds, they are based on days as the above knowledge base article indicates. The following will work on a word read from the modicon, and may or may not work with a data type of time. The expression
    (Modbus1.400001/86400000)
    first takes the number in msecs and divides by the number of msecs in a day. This puts the number into a fraction of a day that Lookout can then display using the numeric formats such as "HH:MMS". I know it’s a little clumsy to divide that number for every time value – but hopefully you don’t have a lot of these expressions. Hope this helps.

  • How do you convert a PDF document to a word document ?

    How do you convert a PDF document to a word document ?

    I just noticed that you added a few more details and it seems like the problem is that part of the conversion is not working. Would it be possible to share the file with me so that I can forward it to the team that owns that service? My email address is [email protected]
    Thanks!
    Pat

  • How do you transfer the data from your Ipad to a new pc?

    How do you transfer the data from your Ipad to a new pc?

    Sync with new computer
    http://discussions.apple.com/docs/DOC-3141

  • How do you convert a PDF to Word or Excel in Acrobat 9 Pro?

    How do you convert a PDF to Word or Excel in Acrobat 9 Pro?

    Refer to Acrobat 9 Help PDF (installed with Acrobat 9 is installed).
    Review the  discussion for Exporting PDFs in Chapter 5 of this Help PDF.
    The PDF is also available on Adobe's site.
    http://help.adobe.com/archive/en_US/acrobat/9/professional/acrobat_pro_9.0_help.pdf 
    Good to know is that the Acrobat 9.x product family passed into End of Support mid-year 2013.
    Be well...

  • How do you convert a jpeg file into word document so i can edit it?

    How do you convert a jpeg file into word document so i can edit it?

    http://office.microsoft.com/en-us/mac-word-help/training-edit-pictures-in-office -for-mac-2011-RZ103709558.aspx

  • How do you change the date of the photo?

    How do you change the date of the photo? 

    Photos Men -> Adjust Date and Time
    Regards
    TD

  • How do you merge the data of two MIDI regions?

    How do you merge the data of two MIDI regions into one MIDI region without using copy and paste functions in the piano roll editor?

    Sorry - didn't make myself clear. The glue tool would be no good here. I meant that I wanted, for example, to merge the MIDI contents of two regions that are perhaps on different tracks but play back at the same time, i.e. I want to add the 2nd region's MIDI to the 1st region's MIDI, but without having to go into the piano roll editor and cut and paste the data.

  • How do you convert an Autocad drawing into a pdf with Acrobat X Standard?

    How do you convert an Autocad drawing into a pdf with Acrobat X Standard?

    Something to try -
    Having installed Acrobat Standard you have the Adobe PDF virtual printer installed.
    From your authoring application do a "file-print" and select the Adobe PDF printer rather than the attached local or network printer / plotter.
    Be well...

  • How do you convert a jar file into a java file,  ?

    how do you convert a jar file into a java file ?
    I am new to Java ,but have a little experience in C++ and Visual Basic.
    I want to edit and maybe create my own mobile games that are written or converted into jar files.
    At the moment I am using Java NetBeans , and Easy Java( the java pad).
    However the only solution I tried was to open the JAR file in winrar and see that its made up of png picture files,
    midi music files and class files. Unfortunately when I uncompressed the JAR file , there was NO java file to be seen and the JAVA editors Do not show the class file like a Java file. So why is there no extension Java file in the mobile JAR game ?

    801283 wrote:
    how do you convert a jar file into a java file ?You generally don't. There exist decompilers, but if you're meant to have the source, you should either have it because you are the author, or you should be able to get it from the author.
    I am new to Java ,but have a little experience in C++ and Visual Basic.Does that experience include turning .exe files into C++ code? Because that's the equivalent of what you're asking
    I want to edit and maybe create my own mobile games that are written or converted into jar files.Eh?
    Are you saying you want to take existing games and modify them? If the creators allow you to modify their source, then they'll provide you with that source (the .java files). If you're allowed to add things but not modify, you don't need .java files. Just documentation, which, again, the creators should be providing.
    Or are you saying you want to create your own games and distribute them in jar files? If so, there's no need to turn jars into .java.
    However the only solution I tried was to open the JAR file in winrar and see that its made up of png picture files,
    midi music files and class files. Unfortunately when I uncompressed the JAR file , there was NO java file to be seen and the JAVA editors Do not show the class file like a Java file. So why is there no extension Java file in the mobile JAR game ?Why would you expect there to be one?

  • HOW DO YOU CONVERT IPHOTO 8.1 TO APERTURE FILE FORMATT

    how do you convert iphoto 8.1.2 photos to aperture file formatt?

    I believe this is still possible if the iPhoto library has not been up graded.
    No joy, Frank. This is what I get, when I try to import an older iPhoto Library into Aperture 3.4.3 using "File > Import > Library":
    Aperture 3.4.x insists on the library being converted to 9.4.x. To be able to import earlier iPhoto Libraries you would have to fall back on Aperture 3.2.x; temporarily install a second, older Aperture version, create a new Aperture library with this version, import the iPhoto Libraries, then open this Aperture library in Aperture 3.4.3 to convert it to a current version.
    bertpa, how many iphoto photos are we talking abourt? If you are having several iPhoto libraries with thousands of edited photos, it really would be worth it to upgrade to iPhoto 9.4 to convert your libraries. iPhoto 9.4 will convert your library to a format with Master-version pairs like aperture uses. If you import this to Aperture, you will be able to import each edited image as a single image with two versions (original and edited)- importing from previous iPhoto versions you would be importing each edited image as two separate images - an edited image and the original. This would be wasteful, if you have many photos in Aperture, and it would cause a lot of additional work to get these duplicates sorted out. But if you only have a handful of iPhoto images, launch iPhoto and use the "File > Export" command to export your photos from iPhoto to a folder. You will have to do it twice - once to export the originals and once to export the edited versions. Then import your exported iPhoto photos into Aperture.
    Regards
    Léonie

  • How do you convert a quotation into a purchase requisition?

    How do you convert a quotation into a purcahse requisition?

    Hi Ganesh
    But from ME51N in shows selection varaint it show RFQ for creation of Requisition but when you drop the RFQ to header for creation , it is not working..
    Chek again.
    Kishor
    Hi Christopher
    See Purchase requisition creation can happen without vendor and price details as well.
    so once you have finalised your vendor and price ,you can put the vendor and price details  in PR and then PR can go further for approval...there will be some manual work ,,but I do not think any more option available.
    hope its logical,.
    Kishor

Maybe you are looking for

  • Windows 8 upgrade - U310

    Hello, I wanted to know if Lenovo will have Windows 8 upgrade for 15 euros which goes along with U310 with SSD disc so will not erase SSD cache feature and will be compatible with Windows 8? Toshiba did this thing when Windows 7 came out for their co

  • Partial payment to vendor...

    Dear All,    Is it possible to give partial payment to vendor through APP, if so, where it is to be configured... Regards, Suresh Patipati.

  • Custom component with additional tags

    Hi. I need to write complicated custom JSF component. I know how to write simple custom components, and receive String variables from tag attributes e.g. https://github.com/devalentino/temp/blob/master/src/main/java/net/monopolyclub/components/compon

  • Material group field selection

    Hi, We configure the material group to be optional field in Material master (for some reasons) but when we create the purchasing view the system always ask for Fill up the Material group field. Is that mandatory field control for material group is ha

  • Error in account deteremination for GBB and VAY

    Dear All, We have implemented the Costing based COPAand while posting the PGI we are getting the follwing error. " Account determination for entry GBB ,VAY 3000 is not possible" How to resolve this problem w/o creating cost element for COGS Whether w