How can I get the last occurrence of a repeated item in Numbers

Hi everyone, I'm hoping this question has a straightforward answer.
I have a simple 2-column table (Table 1). Column A is a list of names. Column B is a list of dates where those names have had appointments. (Most names in Column A are repeated because they have had multiple appointments).
I'd like to create an automated table based Table 1 that lists each name from Column A only once, with the last appointment that each person has had.
Any ideas, I'd be grateful.
Thanks!

Hi Paul,
Late to the party, as I was called to dinner shortly after starting on a solution and wasn't able to get back to it for a few hours.
This was worked out in Numbers '09 (v2.3), but the formulas should work as well in Numbers 3. The solution requires the data on the Data table to be entered (or sorted) in ascending order of dates. Dulicate dates, though not included in the example, should not create an issue.
The added column (Name index—column C) may be hidden. It is needed to mark the first occurrence of each name, and required only if you want the name list in column A of the summary table (Most recent appointment) filled automatically.
Formulas:
Data::C2, and filled down to the end of column C: =IF(COUNTIF($A$2:A2,A)=1,MAX($C$1:C1)+1,"")
COUNTIF($A$2:A2,A) counts the number of occurences of the name in the same row as the formula from row 2 of column A to the row containing the formula. IF that count is 1, the number of the row is placed in the cell, otherwise the cell receives a null string ( "" ).
Most recent appointment table:
A2, and filled down to end of column A:
=IF(ROW()-1>MAX(Data :: C),"",OFFSET(Data :: $A$1,MATCH(ROW()-1,Data :: $C,0)-1,0))
If the row number minus 1 is greater than the number of distinct names in the index column, a null string is placed in the cell. Otherwise, the OFFSET function uses MATCH to determine the row in which to find the next name (in order of first appearance) and places that name in its cell.
B2 and filled down: =IF(LEN(A)>0,LOOKUP(A,Data :: $A,Data :: $B),"")
IF here uses LEN() to determine if there is data (a name) in column A. If so, then LOOKUP looks up the name in column A of the Data table and returns the date from the same row of column B. If there's no data (name) in column A, IF places a null string in the cell.
This formula takes advantage of the fact that LOOKUP searches from the bottom of the column, and returns the result from the first match it finds.
Regards,
Barry

Similar Messages

  • How can I get the last updated email address of the customer ??

    Dear All,
    Please let me know, How can I get the last updated email address of the customer ??
    Also, I am trying to read CDHDR table where OBJECTCLAS is ADRESSE, however what value should be passed into OBJECTID field, looks like it is ADRNR with a Suffix BP.
    Please confirm me what value should be passed into OBJECTID field.
    Thank you.
    Anitha

    Hi Anitha,
      Check if this is something that helps you:
    Change documents in BAS
    CDHDR
    address type 1
    objectclass = ADRESSE             
    objectid = addrgroup + addrnumber     (ADRC-ADDR_GROUP + ADDRNNUMBER) !!
                     'BP  000xxxxxx'
    private address (address type 2)
    objectclass = ADRESSE2
    objectid =  'BP  000xxxxxx000yyyyyyy'   
                            persnumber+adrnr private
    address type 3
    objectclass = ADRESSE3
    objectid =  'BP  000xxxxxx000zzzzzzz'
                              persnumber +comp.address
    The above details is from the link: http://wiki.sdn.sap.com/wiki/display/ERPLO/LO-MD-BP
    Regards,
    Swarna Munukoti

  • I have an Ipod touch updated to last available ios 4.2.1. How can I get the last compatible versions of the apps?

    I have an Ipod touch updated to last available ios 4.2.1.
    How can I get the last compatible versions of the apps?
    In the appstore there are only the lat app versions, most of them are incompatible with my device.
    I know that previous versions of these apps were compatible with my ipod.
    Can all download them someway?
    thanks

    The problem is: I never had the compatible versions. But I want them, I'd buy them if I could.
    So I'm stuck with my Ipod, which can't be upgraded anymore to higher IOS versions, and with the appstore, that does not offer older versions; versions that have existed and still exist, perhaps in the recycle bin of some users, or somewhere in the appstore servers.
    I know, its a policy, just to sell more devices. Will not work with me. I'm not buying more Ipods

  • Please help.........how can i get the last date of the month?????

    Hello....
    I want to get the last date of the month.
    For example, the last date of Jan is 31.
    How can I get the last date of the particular month and year ????
    Thanks for help.
    Gloria

    Hi Gloria
    1. How can I compare the date???date1.compareTo(date2)
    where date1 and date2 is a java.util.Date Object
    will return 0 if it is the same date
    or
    date1.after(date2)
    where date1 and date2 is a java.util.Date Object
    will return true if date1 is after date2
    (the same for date1.before)
    2. How can I change the date format into yyyymmdd format???? I just want the year, month and date.try the java.text.SimpleDateFormat Object
    new SimpleDateFormat("yyyymmdd").format(yourdate)
    Hope this help.
    Please also have a look at a calendar I wrote, (maybe it help)
    demo & source :
    http://www.geocities.com/globe_software/java/components/
    globe_sa

  • How can i get the lasted vision of visual administrator

    HI:
    when i connet j2ee engine,i get the system warning:
    "visual administrator vision is older than the version of j2ee engine kernel: ..."
    how can i get the lasted vision of visual administrator?

    Get your portal administrator to copy the j2ee/admin from the server you're trying to connect to.  You can then install and run it from your local hard drive.

  • How can I get the last 18 numbers from this string

    Hi,
    I'm querying this field from a table. How can I only get the last 18 numbers:
    The numbers look like this:
    500000000818118

    If it is always the last 18 numbers just use the Right() function.  Examples:
    Right("500000000818118", 18)
    or
    <cfset mystring = "500000000818118">
    <cfset mynewstring = Right(mystring, 18)>
    or
    #Right(yourquerycolumn, 18)#
    etc.
    Edit:
    Well I just noticed that your example string is only 15 characters long.  Perhaps I mis-understood your question?
    Message was edited by: Miguel-F

  • How can I get the last / newest record of a table?

    Hi,
    I am developing an ecard app that has a create greeting page, a preview page with edit and send buttons and an edit page.
    I got he insert working, and on the preview page I created a master record page (displays all records), and delete all unecessary designs. Doing it this way also gives me the 'edit' button, so people are able to edit their page.
    How do I get only the last record displayed though? At the moment it loops through all records and displays them in sets of 10. I found the variable that holds the totla count of records ('$totalRows_rs7417_content1'), but how do I (re-)write the script so it ONLY diplays the last record?
    I need to get the ID of this record as I am writing this into the PARAMs of the object and embed tags of my message .swf (this picks up the ID and based on that sucks the greetings text out of the database via another php script.
    Also, from this page, how can I send an email to the sender (ie creator of the message) as well as the recipient? Both email addresses are in the databse so should be part of the erecord returned.
    Thanks,
    Nik

    -----
    OK, So how do I recreate what I got in a non-ADDT list?
    well, when you´re just about to display one certain record, the term "list" is somewhat inappropriate anyway.
    What you´d simply need to do IMHO, is using DW´s native functions to create the basic "SELECT * FROM table_name ORDEr BY ID DESC" query, add "LIMIT 1" manually, and display the desired "dynamic text" placeholders in 1 table cell -- don´t think there were any need for all the fancy stuff
    (sorting, filtering etc) provided by ADDT´s list, as it´s just 1 record.
    It also occurred to me just now that finding the last record that has been added *may-* notbe enough if the site gets used a lot by our executives (I am thinking of a situation where 2 or three peolpe create greetings at the same time and press submit and then getting each others messges rather than their own).
    in this case you might want to additionally store the respective executive´s "kt_login_id" session variable -- because it´s this unique "identifier" which should be used to show the last inserted record of the person who actually inserted it, means adding a "WHERE submitter_id" equals the session variable kt_login_id - clause to the query.
    When creating a non-ADDT list that´s at some point based on detecting a user session, you´ll BTW need to insert at line 1
    I can't seemt o insert it on the page as it is looking for a insert, update or delete bahaviour on the page which of course I don't have
    please search these forums for several posts I made which explain my "use dummy table" approach that´s made for cases when you actually don´t have anything to insert/update/delete, but need "something" for ADDT´s send email behaviours.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • How can i get the last delete picture's info from tlf?

    if i delete the picture from the tlf i can't make the tlf undo
    and I want to get the picture'info with I last time delete from tlf 

    Can you let us know what you are doing to delete the picture, and also how you are undoing it? If it is being deleted through the EditManager delete function, the delete should undo correctly. Some example code to illustrate the problem would help.
    Once the picture has been deleted, TLF has no further reference to it. If you want to keep a reference, you will have to get it before it has been deleted. If you don't have control over the delete, you could find out when the image is deleted by listening for FLOW_OPERATION_END events.
    - robin

  • How can I get the last known IP address of my stolen iPad?

    My iPad 16G Wifi was stolen with Find My iPhone turned on. It was broadcasting some coordinates yesterday, but the accuracy was not the best. Can I somehow get the IP address for this last online point? It would help to filter out some apartments in the building it was located.

    Sorry, but no. The Find My iPhone app is the only way to "locate" an iOS device.
    Reporting a lost or stolen Apple product

  • [JS][CC] How can I get the last visible character in an overflowed Text Frame?

    Hello
    I'm new in InDesign scripting in javascript. I would like to know if there is a way to get the position of the last character in a Text Frame that is overflowed? I need this because I want to calculate how many characters are hidden (overflowing text) via script.
    I've searched in the forums about this but what I find is always a script for alerting if there's overset text or not.
    I'd really appreciate any help!

    Well, let's say that myFrame is an overflowing text frame.
    So, the last character in that frame would be
    myFrame.characters[-1];
    To calculate the number of overflowing characters, select the
    overflowing text frame, and run this script:
    myFrame = app.selection[0];
    myParentStory = myFrame.parentStory;
    alert("Number of overflowing characters is
    "+myParentStory.characters.itemByRange(myFrame.characters[-1],
    myParentStory.characters[-1]).length-1);
    Ariel

  • How can i get the last 2 months history?

    I want to get the call history of the last 2 months. Unfortunatelly iphone restore only the last 100 phone calls. Is there a way to retrive all phone calls from the last 2 months?

    The best way is to contact your carrier for an itemised bill.

  • How can I get the last version of Acrobat reader

    I need to install the last versión (in spanish). But when I try to see the document I received in my mail. It's ask me to instal again the newest versión.

    This forum is for troubleshooting Apple Software Update for Windows, a software package for Windows designed to update Apple products that run on Windows, and not related to Adobe Reader or your question in any way. I suggest you post Adobe related questions on Adobes own forums.
    http://www.adobeforums.com

  • How can I get the open counts on file type items?

    One of the managers' point of interesting on Portal usage is to know how frequently items are opened to view.
    I need to preapre a report to show managers which items (file type) are opened most frequently? and who opened the item most?
    How can I do it?
    Thanks,

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    Are you saying that you bought a used or second hand Mac? In North America an open box Mac usually refers to a display model used in a store.
    There is mixed info on this issue. Some folks in the US have called Apple Care and requested that the iLife apps prebundled with this specific Mac be released from original owner's Apple ID so the new owner can Accept the apps into their Apple ID, with success. Folks in Europe report that when making the same request of Apple Care they are met with resistance and are unsuccessful.
    YMMV
    The sad thing is that if Apple Care will not release the apps, then the owner of a second hand Mac cannot even purchaase the apps on their Mac! To buy the apps with their own account, they would need to find an older Mac running at least OS X Snow Leopard 10.6.8 with a Mac App Store (MAS), that also has never had the MAS versions of the iLife apps installed on it.

  • How can I get the last year transactions in iTunes?

    I Need a full report about my transactions in iTunes. All my buying has been on an ipad2. But I can't open and/or find the correct place for that info...

    You need to go to iTunes on a computer and sign in with the Apple ID you made the purchases under. Then click on your ID, then on Account Info. You will see a Purchase History section. Click on "See All" to go to the detail page where you can put in a date range to view all iTunes and App Store purchases as well as Gift Cards or other purchases made with that Apple ID.
    Cheers,
    GB

  • First I had the last date up and now all of a sudden stands the last date under the list of incomming emails how can I get the last date again up the list

    I hope you understand what I mean because English is not my language but Dutch.
    Example: 17-11-2014
    16-11-2014
    15-11-2014 so I recieved my e mails and now
    15-11-2014
    16-11-2014
    17-11-2014
    and I want that the newest date become up
    I hope their is someone to help me.
    Thanks.
    Heinja

    In English: ;-)
    Click on "Date" to sort by date. Click it again to reverse the sorting.
    Or, in the menu, '''View|Sort By''' and select '''Date''' and '''Ascending '''or '''Descending '''as you require. You probably want '''Unthreaded''' too.

Maybe you are looking for

  • Can anybody tell me how to fix this error...

    [#|2005-07-07T14:21:32.199-0400|SEVERE|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=12;|StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception com.sun.faces.el.impl.ElException: En

  • TP T500 - S drive used for recovery partition

    I need to change the recovery partition to another drive letter but it is not giving me the option.  The S: drive has been dedicated as the drive letter for our corporate SAN unit and all scripts are configured to point to that drive.  Is there a way

  • Topology change not propagated to interface

    Hi all, Had a requirement that called for a topology change (adding a physical schema to existing data server and updating the logical schema to point to this new physical schema). In the end, this change is meant to eliminate the use of LKM. This af

  • File Adpater

    I'm a beginner in BPEL so excuse the little knowledge I have. I am trying to write to a file using a file adapter. I want to use the BPEL process to take messages and update the file using the adapter. I am configurig the file Adapter. I have located

  • Opening of new tab is set to specific website

    Hey, I downloaded some program the other day but removed it again. Yet my browser opens up my new tabs with the URL: http://newtab.certified-toolbar.com/nff/?si=41460&tid=592&new=true How do I change it back? I've just updated my browser to the lates