How can I lookup text values in a column and display a list of corresponding names from another column, sorted by values?

My spreadsheet looks like this:
          Monday     Tuesday     Wednesday
Name 1     OFF          4:30 PM     4:30 PM
Name 2     5 PM     OFF          4:30 PM
Name 3     4:30 PM     5 PM     OFF
Name 4     4 PM     OFF          OFF
I would like to create a spreadsheet for each day that will display the values sorted by time, as follows (e.g. Monday):
Name     In Time
Name 4     4 PM
Name 3     4:30 PM
Name 2     5 PM
Any help would be greatly appreciated. Thanks!

Here's an example, using the provided data:
I've set the alignment on Main to Automatic (except for row 1) to distinguish between numeric and quasi numeric values (aligned right) and text (aligned left). This is a visual aid to developing the table, and would likely be changed for appearance in the end version.
Columns E, F and G of Main are index columns listing the RANK of numeric/date and time values in columns A, B and C respectively. Text values cause RANK to throw an error, which is caught by IFERROR, which returns a value of 999, chosen to be well above any of the RANK values returned. A small amount ( ROW()/100000 ) is added to each result to prevent duplicate results is cases like column D, where duplicate times appear.
Formula: Main::E2: =IFERROR(RANK(B2,B,1),999)+ROW()/100000
Fill down the column, and right to column G.
These columns may be hidden.
The three daily columns use a single formula each, revised to match the index columns from which they determine the row containing each piece of data to be copied, and to match the columns from which they retrieve that data. The formulas from row 2 of these tables are listed here in the order (left to right) that they are used in the second row of tables above. Parts that are edited from one formula to another are shown in bold.
=IF(SMALL(Main :: $E,ROW()-1)>999,"",OFFSET(Main :: $A$1,MATCH(SMALL(Main::$E,ROW()-1),Main :: $E,0)-1,0))
=IF(SMALL(Main :: $E,ROW()-1)>999,"",OFFSET(Main :: $A$1,MATCH(SMALL(Main::$E,ROW()-1),Main :: $E,0)-1,1))
=IF(SMALL(Main :: $F,ROW()-1)>999,"",OFFSET(Main :: $A$1,MATCH(SMALL(Main::$F,ROW()-1),Main :: $F,0)-1,0))
=IF(SMALL(Main :: $F,ROW()-1)>999,"",OFFSET(Main :: $A$1,MATCH(SMALL(Main::$F,ROW()-1),Main :: $F,0)-1,2))
=IF(SMALL(Main :: $G,ROW()-1)>999,"",OFFSET(Main :: $A$1,MATCH(SMALL(Main::$G,ROW()-1),Main :: $G,0)-1,0))
=IF(SMALL(Main :: $G,ROW()-1)>999,"",OFFSET(Main :: $A$1,MATCH(SMALL(Main::$G,ROW()-1),Main :: $G,0)-1,3))
Each of the formulas is filled down its column.
Each of the functions used is described in the iWork Formulas and Functions User Guide, a useful resource to have on hand when you are writing (or attempting to 'decode') Numbers formulas, The guide (and the Numbers '09 User Guide) may be downloaded from the Help menu in Numbers '09.
Regards,
Barry

Similar Messages

  • How can I lookup text values in a column and display a list of corresponding names from another column?

    My spreadsheet looks like this:
                     Monday...
    Name 1      4PM
    Name 2      4PM
    Name 3      5PM
    Name 4      5PM
    Name 5      4PM
    I would like to create a spreadsheet that will display the values as follows:
    Openers (4PM)    Closers (5PM)
    Name 1                Name 3
    Name 2                Name 4
    Name 5
    Any help would be greatly appreciated. Thanks!

    Hi Shawn,
    I think this will do it for you:
    There's an auxiliary column in your data entry table. It counts the entries for each distinct time.
    The formula in the auxiliary column's body rows is:
    =COUNTIF(OFFSET(B$1, 0,0,ROW()), B)&"--"&B
    The formula in the Summary table's body rows is:
    =IFERROR(OFFSET(Schedule::$A$1, MATCH(ROW()-1&"--"&A$1, Schedule :: $C, 0)-1, 0), "")
    Regards,
    Jerry

  • How can I receive text messages on my iPhone and iPad ?

    How can I receive text messages on my iPhone and iPad?

    If you are using the iMessage app on your iPad, you need to use the same email address you use on your iPhone.  But, be advised, that when people email your cell number on your iPhone, you will not get the message on your iPad.  iPad is not a cell phone.  And also know that iMessage on iPad is intended to only let you text with other iOS (iPhone, iPad, iPod Touch) devices. 
    If you want to be able to text to anyone from your contacts list (those for example who do not own an iOS device), there are free apps in the App Store, such as TextFree, which you can download.  But, TextFree will assign you a number (I know kind of odd since iPad is not a cell phone), which you can then text anyone you want.  You'll just need to let your friends know the texts are coming from you.

  • How can I save text messages to my Mac and will that reduce "Other" in storage?

    I have hundreds (or more) of text messages on my iPhone 5 that for personal reasons, I want to save. There are far too many to do screenshots. I want to save them to my MacBook Pro Retina in a readable and printable format. The reason is that I read that text messages can cause the "Other" storage to be higher. My "Other" is over 6 GB on a 16 GB iphone. Therefore I want to save texts, print them, and delete from phone.
    First question: Is it true that text messages contribute to the size of "Other"?
    Second question: How can I save texts to Mac in readable format so they could be printed? 
    Third question: How in the world do I delete all these texts from my iPhone efficiently? Is there a way to "mass delete"?
    When you are answering this, perhaps it is noteworthy that:
    (a) I've had an iPhone since a 3G in 2009, and the texts I want to save have been accumulating since then.
    (b) My "Other" has gradually gotten larger over the years. 
    (c)  I sync with itunes regularly.
    (d) I've never had any problems with an iphone or with my data.
    (e) I've restored from backup only three times, when I upgraded to the iphone 4, 4S, and 5.
    I want to get this "Other" cleared up before I upgrade to the iphone 5S. 
    Thank you.

    You can select to export a folder to save as a .mbox file. This file would need to be imported if you wanted to view the messages.
    Select mailbox (folder)
    Under Mailbox in the Menu bar select Export Mailbox...
    You might also want to check out the demo for EagleFiler by the author for SpamSieve. You could view and search the messages archived in EagleFiler.
    http://c-command.com/eaglefiler/
    Regarding Mail being slow....
    Is it only Mail that is slow?  How much free space on your drive? Use Disk Utility to find available space.

  • How can I get "script" format for signing forms and paperwork, not just printing my name?

    I would like to have a "script" font available when I sign e-mail forms or create forms.

    Hi mfeehley, most online editors provide a variety of fonts you can use when composing your message or signature. If the font you want to use is not included, perhaps you can create a small image (e.g., in a Word processor, then use Alt+PrintScreen to capture it to the clipboard as an image, then paste into Paintbrush and trim to a good side) and insert that into your signature instead. The mail site or form program help should explain how to insert images.

  • How can I see if someone is viewing any information or websites that I search for from another location?

    Can someone view what I look at on the web and my passwords etc from a different location other the from my iPhone or iPad mini?

    If your phone is not jailbroken, no.

  • How can I play a dvd on my Mac and display it through Apple TV

    I want to use my DVD drive on my mac to play back movies through my apple tv2. I notice that on my iPad, iPhone, iTunes on my computer all have the AirPlay option to display the video on my TV through Apple TV. I do not want to burn my DVD onto my Mac and play through iTunes becasue its a hassle.

    mende1 wrote:
    Welcome to Apple Support Communities
    One thing you can do is to play the DVD in your Mac using DVD Player instead of iTunes, and then, turn on AirPlay Mirroring to stream your computer's display to your Apple TV > http://support.apple.com/kb/HT5404
    If your Mac isn't compatible with AirPlay Mirroring, use a third-party app like AirParrot > http://www.airparrot.com This is the only option, because the Apple TV isn't compatible with discs
    Logical but it won't work - DVD player output will be a grey checkerboard pattern.
    Apple apps prevent Airplay of DVD content at low level presumably for some copy protection reason.
    VLC player is believed to work.
    AC

  • In pages, how can I rotate text ?

    In pages, how can I rotate text ?

    The text needs to be in a TextBox which you can create from the ToolBar and the that can be rotated by control clicking near the top right corner of TextBox and dragging it around.
    Alternatively click on the TextBox > Inspector > Metric > Rotate: enter value.
    Peter
    Greetings from hot, sweaty and beautiful Broome

  • How can i remove text in between the tags

    Hi 
    I want to remove the text inside the xml tags and am failing to do so. i have tried this codding with no results.
    <value>yes</value> = <value></value>
    <value>yes</value> = <value></value>
    <value>yes</value> = <value></value>
    my code:
                    string text = File.ReadAllText(outputFilePath);
                    text = DeleteBetween1(text,"<value>", "</value>");
     public string DeleteBetween(string STR, string FirstString, string LastString)
                string regularExpressionPattern1 = @"(?:\" + FirstString + @")(<^<>+)\<\/" + LastString;
                Regex regex = new Regex(regularExpressionPattern1, RegexOptions.Singleline);
                MatchCollection collection = regex.Matches(STR.ToString());
                var val = string.Empty;
                foreach (Match m in collection)
                    val = m.Groups[1].Value;
                    STR = STR.Replace(val, "");
                return STR;

    hi,
    you can try below.
    https://social.msdn.microsoft.com/Forums/en-US/b9b4d8d6-38ba-4483-abfd-4939aca0593d/how-can-i-extract-text-string-between-two-tags-?forum=csharpgeneral
    hope that helps.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • How can i print text messages from my htc amaze to my deskjet 3050A

    how can i print text messages from my htc amaze to my hp deskjet 3050A

    Hi,
    I believe the phone uses Android OS, v2.3.4 (Gingerbread) therefore you can use one of these applications:
       http://www.printeron.com/apps/androidprinting.html
       https://market.android.com/details?id=com.pauloslf​.cloudprint&hl=en
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How can I insert text in a photo?

    How can I insert text onto a photo?  Before Lion used Command T. Have not installed Page or Numbers. Have Microsoft for Mac.

    Open the photo with Preview and select ⌃⌘T.
    (Also, take a look at: Skitch)

  • How can I copy text from one card to another while creating cards using Iphoto?

    I created two cards with different pictures using Iphoto on Macnotebook. 
    I want to use the same text message.
    How can I copy text from one card to another?

    select the text and copy (edit menu ==> copy) tehn gpo to the next card and paste
    LN

  • How can I output text in a browser window in JAVA?

    How can I output text in a browser window in JAVA?

    "response.getWriter().print()" is the most common method when using servlets

  • How can I wrap text in a pie in pages?

    How can I wrap text in a pie in pages?

    If you need to insert text into a shape like a pie wedge, the easiest way might be to simply use the shape - freeform tool (at the bottom of the shape menu) and create a shape and type your text in it then place the shape over your pie wedge. The text within the shape should wrap - additional controls for text can be used with the Text Inspector.
    You can edit the actual shape with Format Object > Make Shape Editable option but unfortunately, you have an option to make straight or smooth curves, but not both, so you'll need to shape the object using smooth curves and use the the bezier controls that appear as you select a control point.

  • How can i use text expander with the new Mavericks,

    how can i use text expander with the new Mavericks,

    I regret upgrading to mavericks for the same reason
    ftamez wrote:
    how can i use text expander with the new Mavericks,
    Now I have been searching - and you have to buy an app and it will cost you $34.99 (what a rip off)

Maybe you are looking for

  • Schedule report MM60 as background job and send out in Excel format

    Hi there, I would like to schedule a background job for report MM60, then send to the user in Excel format. I know that we can enter the recipient in the job setting(SM36) but the report is send in HMTL format. Is it possible to send in Excel format?

  • Process chain status shows incorrect status

    When ever i receive bad data requests from R/3, BW pulls the error requests into a separate PSA and pass-thru the good once in another PSA and then into datatarget. However the overall status is green for the job/package and the package when executed

  • Updating Recently Played

    My iPod recently stopped updating the recently played on its own. When I plug it into iTunes the computer updates them but my iPod no longer does it on its own. Is this some sort of bug? Does this mean I should start saving for a new one? Its not eve

  • How can i tidy up folders in windows explorer and have the new names etc recognized by itunes?

    Sorry if this has been asked before, but I have spent quite a while searching how to do this... For example: In Windows Explorer, 2 different R.E.M. cd's have come up as different artists names, R.E.M and R.E.M_ Although in iTunes they are both displ

  • Can I convert my PDF file to Jpegs?

    I want to convert my PDF file to Jpeg is that possible using my online subscription? Thank Ruby