+ Reply to Thread
Results 1 to 3 of 3

Find the oldest and newest value for each item and calculate the ratio

  1. #1
    Registered User
    Join Date
    05-20-2014
    Posts
    11

    Find the oldest and newest value for each item and calculate the ratio

    Hi guys,
    I'm trying to find a magic formula which could find the oldest and newest value for each project item and calculate current oldest to newest index. The formula should be elastic to serve for future months when added to raw data. Alos, usually my data is sorted by month not by project name (if it's important).
    I tried to play with combination of VLOOKUP, MAX/MIN but I couldn't get values for individual projects.

    Attached is a simplified spreadsheet for your reference.

    Appreciate any help!
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Find the oldest and newest value for each item and calculate the ratio

    Please try at

    P3 and press Ctrl+Shift+Enter
    =O3/INDEX($O$3:$O$10,MATCH(MIN(IF($B$3:$B$10=B3,$A$3:$A$10)),IF($B$3:$B$10=B3,$A$3:$A$10),))

    or

    =O3/INDEX($O$3:$O$10,MATCH(AGGREGATE(15,6,$A$3:$A$10/($B$3:$B$10=B3),1),INDEX($A$3:$A$10/($B$3:$B$10=B3),),))
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-20-2014
    Posts
    11

    Re: Find the oldest and newest value for each item and calculate the ratio

    Initially had a problem with ?NAME errors but then realised some project names were missing. When I fixed them both your formula worked perfectly. Thanks Bo_Ry!

+ 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. [SOLVED] Find oldest and newest date by grouped material in 2 columns...
    By rpinxt in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-11-2018, 09:10 AM
  2. [SOLVED] kEEP NEWEST ROWS AND DELETE OLDEST ONE IF
    By ozstrik3r69 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-18-2017, 08:52 AM
  3. Filter not working when sheet's protected
    By andyzz in forum Excel General
    Replies: 2
    Last Post: 07-22-2014, 10:51 PM
  4. [SOLVED] Sort dates in column from oldest to newest...
    By ILoveYouExcel in forum Excel General
    Replies: 2
    Last Post: 06-11-2014, 02:11 PM
  5. Arranging Pivot table data from Newest to oldest to Newest does not appear
    By paradise2sr in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-08-2014, 06:53 AM
  6. Top ten oldest and top ten newest
    By jhiltabidel in forum Excel General
    Replies: 11
    Last Post: 07-08-2011, 04:59 PM
  7. oldest to newest
    By Hidai in forum Excel General
    Replies: 5
    Last Post: 01-10-2011, 12:14 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