+ Reply to Thread
Results 1 to 11 of 11

How Can We Get All Data Referred to INDEX - AGGREGATE?

  1. #1
    Forum Contributor
    Join Date
    10-07-2015
    Location
    Tehran - Iran
    MS-Off Ver
    2013
    Posts
    111

    How Can We Get All Data Referred to INDEX - AGGREGATE?

    Hi everybody,

    I have on column "A", "ISSUE DATE" and on column "B", "DUE DATE" and on column "C", the selected ISSUE DATE.
    I am willing to have all data matched to the selected ISSUE DATE as the results of DUE DATE on column "D".
    (Please see the attached excel file)
    I tried to use below formula on column "E". But I can not get all matched data.

    =INDEX($B$2:$B$60,AGGREGATE(15,6,(ROW($B$2:$B$60)-1)/($A$2:$A$60=$C2),F2))

    How can I correct my formula? Is there any another way?

    Thanks in advance for your help.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: How Can We Get All Data Referred to INDEX - AGGREGATE?

    May I ask , why result of D7 should be 26/11/2021 ?
    Note : my local date format is dd/mm/yyyy.

    Regards.

  3. #3
    Forum Contributor
    Join Date
    10-07-2015
    Location
    Tehran - Iran
    MS-Off Ver
    2013
    Posts
    111

    Re: How Can We Get All Data Referred to INDEX - AGGREGATE?

    Does not take any different about format of dates. You can change the format of all columns.

  4. #4
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: How Can We Get All Data Referred to INDEX - AGGREGATE?

    If you're happy to just return the dates in date order then, assuming XL2013, you can use:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: How Can We Get All Data Referred to INDEX - AGGREGATE?

    Please try this formula in H2 and recheck the result.

    =IFERROR(INDEX($B$2:$B$60,AGGREGATE(15,6,ROW($A$2:$A$60)/(COUNTIF($C$2:$C$60,$A$2:$A$60)>0),ROWS(H$1:H1))-ROW($A$1)),"")

    Regards.

  6. #6
    Forum Contributor
    Join Date
    10-07-2015
    Location
    Tehran - Iran
    MS-Off Ver
    2013
    Posts
    111

    Re: How Can We Get All Data Referred to INDEX - AGGREGATE?

    Thank you for your help. Your formula as well as works.

  7. #7
    Forum Contributor
    Join Date
    10-07-2015
    Location
    Tehran - Iran
    MS-Off Ver
    2013
    Posts
    111

    Re: How Can We Get All Data Referred to INDEX - AGGREGATE?

    Quote Originally Posted by menem View Post
    Please try this formula in H2 and recheck the result.

    =IFERROR(INDEX($B$2:$B$60,AGGREGATE(15,6,ROW($A$2:$A$60)/(COUNTIF($C$2:$C$60,$A$2:$A$60)>0),ROWS(H$1:H1))-ROW($A$1)),"")

    Regards.
    Thanks. So,your formula as well as works.

  8. #8
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: How Can We Get All Data Referred to INDEX - AGGREGATE?

    In case you need to list as 'selected issue date'.
    I need to use helper columns.

    By insert 2 column between C and D.
    D2
    =E1+1

    E2
    =COUNTIF(A:A,C2)+E1

    F2
    =IF(ROWS(F$1:F1) < =MAX(E:E),INDEX(B:B,AGGREGATE(15,6,ROW(A:A)/(A:A=LOOKUP(ROWS(F$1:F1),D:D,C:C)),
    ROWS(F$1:F1)-(LOOKUP(ROWS(F$1:F1),D:D,D:D)-1))),"")

    Regards.

    Note : please change 'all column' reference if you got performance problems (but must start from row 1).
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,293

    Re: How Can We Get All Data Referred to INDEX - AGGREGATE?

    The formula is a little shorter
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    10-07-2015
    Location
    Tehran - Iran
    MS-Off Ver
    2013
    Posts
    111

    Re: How Can We Get All Data Referred to INDEX - AGGREGATE?

    @menem

    Thank you for your answer. It is a nice solution.
    Last edited by AliGW; 09-22-2021 at 08:06 AM. Reason: PLEASE don't quote unnecessarily!

  11. #11
    Forum Contributor
    Join Date
    10-07-2015
    Location
    Tehran - Iran
    MS-Off Ver
    2013
    Posts
    111

    Re: How Can We Get All Data Referred to INDEX - AGGREGATE?

    Quote Originally Posted by Czeslaw View Post
    The formula is a little shorter
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Thanks. Your answer is something like the first solution sent by menem.

+ 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. How to filter data with Index / Aggregate using multiple criterias.
    By Nicolantonio in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-29-2020, 06:00 AM
  2. Index + aggregate
    By Matre in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 03-13-2020, 06:01 PM
  3. [SOLVED] Index/Aggregate formula calculates correct row but does not yield name from Index array
    By FivestarMac in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-17-2019, 05:07 PM
  4. [SOLVED] Index & aggregate
    By elatreille in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-09-2019, 08:22 AM
  5. Replies: 1
    Last Post: 08-17-2019, 01:11 PM
  6. [SOLVED] Create List - Index Match or Index Aggregate or other?
    By bambamclint in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 02-10-2019, 01:30 PM
  7. Index, Aggregate, Row - Removing Duplicate W/ Index Help
    By adbexcel in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-04-2016, 03:53 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