+ Reply to Thread
Results 1 to 6 of 6

Index & aggregate

  1. #1
    Registered User
    Join Date
    10-08-2019
    Location
    USA
    MS-Off Ver
    10
    Posts
    3

    Index & aggregate

    Hi,

    I have 4 columns (Campaigns, start date, end date, rev)

    I need to pull all the campaigns where the start date is lower than today(), the end date is greater than today() and the revenue so far for the live campaigns.
    How can I use the Index & Aggregate formula to retrieve all live campaigns? I have around 20k rows.

    Thanks
    EL

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    50,901

    Re: Index & aggregate

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-08-2019
    Location
    USA
    MS-Off Ver
    10
    Posts
    3

    Re: Index & aggregate

    See File attach for example. In grey this is what I should only see as result
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Sadly... in lockdown, but based in Ireland.
    MS-Off Ver
    µSoft Office 365. Learning Excel all over again!!
    Posts
    29,938

    Re: Index & aggregate

    Column B. select. data/text to columns/Finish.
    Column C. do the same

    This is because both contain text that looks like a date.

    then use:

    =IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW($A$2:$A$20)/(($B$2:$B$20< TODAY())*($C$2:$C$20> TODAY())),ROWS(H$2:H2))),"")

    in H2, copied across and down
    Attached Files Attached Files
    Glenn



  5. #5
    Registered User
    Join Date
    10-08-2019
    Location
    USA
    MS-Off Ver
    10
    Posts
    3

    Re: Index & aggregate

    Solved! thanks 1000 time!

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Sadly... in lockdown, but based in Ireland.
    MS-Off Ver
    µSoft Office 365. Learning Excel all over again!!
    Posts
    29,938

    Re: Index & aggregate

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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: 1
    Last Post: 08-17-2019, 01:11 PM
  2. [SOLVED] using aggregate with index giving num error ??
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-28-2019, 10:59 AM
  3. [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
  4. [SOLVED] INDEX-AGGREGATE with OR criteria
    By Glenn Kennedy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-16-2018, 09:32 AM
  5. Index Aggregate Troubleshoot
    By VirenS in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-16-2016, 07:32 AM
  6. 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
  7. INDIRECT, INDEX, AGGREGATE?? Help!
    By bbr in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-26-2013, 08:03 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