+ Reply to Thread
Results 1 to 6 of 6

Drawing the latest information from a range of numbers

  1. #1
    Registered User
    Join Date
    09-22-2016
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Angry Drawing the latest information from a range of numbers

    Hi Folks,

    Long time lurker but today I was finally asked to do something I couldn't self teach myself so I reach out to you, the experts that dazzle me daily.

    I have a list generated by our back end system. I've been tasked to pull out every line that is an older entry with just the latest entry remaining.

    2016-09-22 12_33_49-Microsoft Excel - Cylinder location list 22.09.16.jpg

    In the attached picture COLUMN A is what I am tracking and I only want to leave the row that is the last entry for it. COLUMN C seems like the best bet to work on as that is a location code and the highest number is always the latest entry.

    The entire list is long with many entries.
    Last edited by davemek21; 09-23-2016 at 04:53 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,831

    Re: [TRICKY] Drawing the latest information from a range of numbers

    I can't read that, and I certainly do not want to recreate your data manually before I can try a few things out. It would help if you attached a sample Excel workbook.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Pete

  3. #3
    Registered User
    Join Date
    09-22-2016
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: [TRICKY] Drawing the latest information from a range of numbers

    Hi Pete, thanks for the reply. Hopefully this works. A small sample from the sheet.
    Attached Files Attached Files

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,831

    Re: [TRICKY] Drawing the latest information from a range of numbers

    You can see in the attached file that I have used column I of Sheet1 as a helper column with this formula in I2:

    =IF(A2<>A3,MAX(I$1:I1)+1,"-")

    This can be copied down to beyond the bottom of your data (the hyphens will show you where the formula is active), and this sets up a unique sequential number for the final row of a particular block of data related to one cylinder, assuming the data is sorted by Cylinder #.

    As you have a lot of data, I've extracted the required data to Sheet2, where I have copied your headings into B1:I1. I've used column A for another helper column, with this formula in A2:

    =IFERROR(MATCH(ROWS($1:1),Sheet1!I:I,0),"")

    This will return the row number in Sheet1 where the first record that we want can be found, and when it is copied down it will return the row number for the 2nd record, then the 3rd, and so on. I used this formula in B2:

    =IF($A2="","",INDEX(Sheet1!A:A,$A2))

    which will return the appropriate data from column A of Sheet1 for the record whose row is given in A2, and this can be copied across into C2:I2 to get the data from the other columns. The date columns need to be formatted appropriately, and then the row of formulae can be copied down as far as you need them - I've copied to row 15 in the example file.

    Hope this helps.

    Pete
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-22-2016
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    3

    [SOLVED] Drawing the latest information from a range of numbers

    Absolutely fantastic Pete. This one really had me stuck but you've absolutely nailed it. I'll be trying to reverse engineer your formulas all day!

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,831

    Re: [SOLVED] Drawing the latest information from a range of numbers

    Glad to help. Thanks for feeding back.

    Pete

+ 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. Help drawing in information based on filters
    By DG328 in forum Excel General
    Replies: 4
    Last Post: 07-22-2016, 10:11 AM
  2. Replies: 3
    Last Post: 10-01-2014, 03:53 PM
  3. Replies: 9
    Last Post: 11-28-2013, 05:20 PM
  4. Help drawing and placing information from my table
    By lostonexcel in forum Excel General
    Replies: 1
    Last Post: 10-28-2011, 05:30 AM
  5. Drawing register latest revision letters
    By Racing Ka in forum Excel General
    Replies: 6
    Last Post: 09-05-2007, 04:01 AM
  6. [SOLVED] Pull information based on a range of numbers
    By Styckz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2006, 02:15 PM
  7. Pull information based on a range of numbers
    By Styckz in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-17-2006, 03:35 AM

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