+ Reply to Thread
Results 1 to 3 of 3

How can I create a formula that can identify a cell after the data has been sorted?

Hybrid View

  1. #1
    Registered User
    Join Date
    01-28-2016
    Location
    Los Angeles
    MS-Off Ver
    Excell for mac 2011
    Posts
    13

    How can I create a formula that can identify a cell after the data has been sorted?

    Good morning everyone, again I come seeking answers....


    In the attached file I have a series of competitors, sorted by class with there class position and associated points on the far right. You will notice in the Class Position column there are 7 competitors that did not finish the race... (DNF) This was calculated by creating a formula that sits in the P column that identifies any value (Time) that was Less than the winner's total time, (C23). This value is not the lowest value but rather the value of the the person who came in first as noted by column B.

    My problem is this table gets rearranged after being imported so I can not give the formula in the P column a specific cell address.

    Is there some way create a formula that would look for the competitor who is first overall (B23) and then use the cell that is adjacent (C23) to calculate anyone who did not finish. (a Value Less the C23)


    As always thank you

    For forum.xls

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,474

    Re: How can I create a formula that can identify a cell after the data has been sorted?

    My idea consists on using a hidden fixed cell. For this example I will use C3.
    in C3 use the formula
    Formula: copy to clipboard
    =VLOOKUP(1,$B$4:$C$55,2,FALSE)

    now you can format this cell to have white text so it wont show.

    Now change your formulas in column P
    =IF(B5="","",IF(B5="DQ",0,IF(C5<$C$3$,"DNF",IF(H5=H4,P4+1,1))))

  3. #3
    Registered User
    Join Date
    01-23-2016
    Location
    USA
    MS-Off Ver
    97-2010
    Posts
    2

    Re: How can I create a formula that can identify a cell after the data has been sorted?

    http://www.excelforum.com/excel-prog...ml#post3575432 sounds like what you're asking. It's mindnumbingly brilliant IMO. It creates a temporary invisible moving shape that moves along with the sort. And it works! No helper columns or hidden cells or properties needed except for the temporary shape. You can see several other approaches earlier in that thread, but all have some compromises, except for the shapes approach.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 11-23-2015, 01:38 PM
  2. [SOLVED] Create sheets named by header and populate them with sorted data
    By salaso69 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-16-2013, 03:47 PM
  3. Replies: 0
    Last Post: 10-15-2012, 04:43 PM
  4. [SOLVED] Create Tabs based on a specific column in a sorted data worksheet
    By rockell333 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-16-2012, 11:13 AM
  5. Replies: 4
    Last Post: 05-29-2012, 04:39 PM
  6. How do I create a hyperlink with sorted data
    By Bob Thiele in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-13-2005, 03:43 PM
  7. [SOLVED] How do I create formula to identify duplicate cells?
    By Kelly Lacey in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-12-2005, 02:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1