+ Reply to Thread
Results 1 to 4 of 4

How to find a value based on a last date and a unique criteria

  1. #1
    Registered User
    Join Date
    01-06-2021
    Location
    Scandinavia
    MS-Off Ver
    Office 365
    Posts
    2

    How to find a value based on a last date and a unique criteria

    Can anyone help with the following:

    How to find a value based on last date and a unique criteria

    Task for Roger.PNG


    In Column G:G, I have a range of dates. In column H:H, I have a value that consists of two separate values that I merged by =E2&" "&F2). I merged these values as i thought it would make the process more simple. In column J:J, I have a range of unit numbers. In Column N:N, I have then used the "advanced" filter function to create a list of unique unit numbers based on the range in column J:J.

    I would now like to find the latest value in column H:H based on the latest date in column G:G for each unique unit number in column N:N. Does anyone have any good ideas?. Would be so greatly appreciated as i've been stuck on this exercise for hours.

    I am using Office 365 and using Excel version 1902 (Build 11328.20644).

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: How to find a value based on a last date and a unique criteria

    Hi
    can you please attach the excel and not the picture ?

    Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. Just before posting, scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.

  3. #3
    Registered User
    Join Date
    01-06-2021
    Location
    Scandinavia
    MS-Off Ver
    Office 365
    Posts
    2

    Re: How to find a value based on a last date and a unique criteria

    Hi Belinda,

    Thanks for the heads up - I have attached an excel file with the corresponding problem. Looking for the value in D:D ("counter value and main counter avg. change per day") for each of the "unit no.s" in G:G based on the latest "counter reading date" in C:C.

    Values in G:G are unique values found using advanced filter that was applied to E:E.

    Really appreciate any help as I can't seem to get it to work with my index & match method.

  4. #4
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: How to find a value based on a last date and a unique criteria

    Hi,
    In g you can use:
    =UNIQUE(E2:E20)

    H2 and down:
    =INDEX($D$2:$D$20,MATCH(AGGREGATE(14,6,(($E$2:$E$20=G2)*($C$2:$C$20)),1)&G2,$C$2:$C$20&$E$2:$E$20,0))

+ 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. Trying to find out the number of unique items based on criteria
    By Winnette in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-03-2019, 12:34 PM
  2. How to Find Count of unique IDs based on criteria
    By dhasa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-05-2018, 03:45 AM
  3. Find all unique values based on multiple criteria, excluding blanks
    By Tamarissa in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-29-2018, 08:12 PM
  4. Find unique number of values in a column based on criteria
    By Grilleman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-19-2016, 12:29 PM
  5. Excel Macro to find unique distinct value based on Criteria
    By amir_khan in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 12-31-2014, 06:47 PM

Tags for this Thread

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