+ Reply to Thread
Results 1 to 6 of 6

blank rows being returned, dates being returned twice

  1. #1
    Registered User
    Join Date
    06-15-2016
    Location
    BC
    MS-Off Ver
    excel 2013
    Posts
    52

    blank rows being returned, dates being returned twice

    Hello, thank you in advance for any help.
    Please see the attached doc to highlight the problems I am trying to solve.

    I have a range of data, in the sheet marked data... and 3 sheets of heroes.
    There is a date, and an activity.. and because of the way I have to pull my data, there is some blank rows in between some of the activities.

    On the sheets of the heroes, I want to see the date the a hero did an activity.
    The problems:
    • I don't want the blank rows to be returned in column B for the heroes
    • I want to see the date of an activity, but not if it occurs twice on the same day

    I've tried a few approaches but what I have now is as close as I could get. Any help is appreciated.

    Thank you,
    kanuck
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: blank rows being returned, dates being returned twice

    This returns the project:
    =IFERROR(INDEX(Sheet1!C:C,AGGREGATE(15,6,ROW(Sheet1!$C$2:$C$100)/((Sheet1!$C$2:$C$100<>"")*(Sheet1!$B$2:$B$100=Sheet2!$C$5)),ROWS(C$9:C9))),"")

    There are two options for retuning the date (I wasn't sure what you wanted). Take your pick and delete the unwanted column.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    06-15-2016
    Location
    BC
    MS-Off Ver
    excel 2013
    Posts
    52

    Re: blank rows being returned, dates being returned twice

    thank you!
    that is really helpful. How would I make it so that if a project happened twice on the same day, it only appears once?

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: blank rows being returned, dates being returned twice

    Date:
    =IFERROR(INDEX(Sheet1!D:D,AGGREGATE(15,6,ROW(Sheet1!$C$2:$C$100)/((COUNTIFS($B$8:$B8,Sheet1!$C$2:$C$100,$A$8:$A8,Sheet1!$D$2:$D$100)=0)*(Sheet1!$B$2:$B$100=Sheet2!$B$5)*(Sheet1!$C$2:$C$100<>"")),1)),"")

    Project:
    =IFERROR(INDEX(Sheet1!C:C,AGGREGATE(15,6,ROW(Sheet1!$C$2:$C$100)/((COUNTIFS($B$8:$B8,Sheet1!$C$2:$C$100,$A$8:$A8,Sheet1!$D$2:$D$100)=0)*(Sheet1!$B$2:$B$100=Sheet2!$B$5)*(Sheet1!$C$2:$C$100<>"")),1)),"")

    If you want the date to appear only once, you will still need the date column as shown in the sheet, but if needed, it can be hidden and another column used to return only the first instance of the date.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-15-2016
    Location
    BC
    MS-Off Ver
    excel 2013
    Posts
    52

    Re: blank rows being returned, dates being returned twice

    Thank you so much, that's exactly what was needed.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: blank rows being returned, dates being returned twice

    You're welcome and thanks for the rep.

+ 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. Issued & Returned - Identify Total Not Returned
    By ArchGIS in forum Excel General
    Replies: 6
    Last Post: 05-15-2019, 06:29 AM
  2. [SOLVED] Returning specific dates, ignoring already returned dates
    By FP91 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-16-2018, 07:02 AM
  3. Access Query - Top 5 Dates Returned
    By mikey3580 in forum Access Tables & Databases
    Replies: 1
    Last Post: 12-14-2014, 09:42 AM
  4. [SOLVED] Formula returns blank when book returned
    By craigie65 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 10-21-2014, 08:21 AM
  5. [SOLVED] Make formula look in a different column if a 0/blank is returned
    By adx1000 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-15-2013, 09:20 AM
  6. [SOLVED] blank cell returned
    By kennette in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-27-2005, 11:06 AM
  7. Error #N/A returned - and need it to be blank
    By Olsonsbiz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-13-2005, 11:02 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