+ Reply to Thread
Results 1 to 6 of 6

Getting data from a range matching certain creteria

  1. #1
    Registered User
    Join Date
    12-24-2012
    Location
    Canada
    MS-Off Ver
    Excel 2016
    Posts
    9

    Getting data from a range matching certain creteria

    I have a table which contains events and the dates which can be performed in the second column. In the next worksheet I have a month's calendar. I need all the events which matches the date.Yearly Event Calendar Sheet 2.xlsx

    Any idea how can I do? There are lots of errors in it.

    Thanks
    Last edited by cndesu; 12-29-2012 at 10:02 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Getting data from a range matching certain creteria

    Not sure whether the 1,2,3 etc., boxes (In First Sheet) refers to months data or Days data, since Check Chemical Reagents is falling in 7-Jan-12 but it is getting mentioned in 1st box. Could you please clarify this one???


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    12-24-2012
    Location
    Canada
    MS-Off Ver
    Excel 2016
    Posts
    9

    Re: Getting data from a range matching certain creteria

    Quote Originally Posted by :) Sixthsense :) View Post
    Not sure whether the 1,2,3 etc., boxes (In First Sheet) refers to months data or Days data, since Check Chemical Reagents is falling in 7-Jan-12 but it is getting mentioned in 1st box. Could you please clarify this one???
    Sheet2 has the trimonth calendar. Unsorted Events sheet has all the events with empty cells unsorted. Now First is the sheet which is a monthly calendar showing all events. (My mistake, Name error popped out, January 2012 month). Now the first grey cell should have all the events which is of January first. Now first two events are correct based on the date after that my formula is giving error and gets the other data instead of January first. Now the first column in grey cell are just bullets, apperars only if the right side has text (just conditional formatting).

    Thanks

  4. #4
    Registered User
    Join Date
    12-24-2012
    Location
    Canada
    MS-Off Ver
    Excel 2016
    Posts
    9

    Re: Getting data from a range matching certain creteria

    Thanks I got through from other support topic. Used a helper column using countif() function. It gave serialized activities on the same dates. I used match function in each row of the excel with that serial number if it exists or not and then outputs on the cell.

    But Thanks for the help provided.

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Getting data from a range matching certain creteria

    In C6 cell of First Sheet - Array Formula - Requires Ctrl+Shift+Enter
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Drag it down and copy and paste the C6 formula to the right side of the cells.

    Regarding your B3 cell of First Sheet, there is no Named Range is available for CalendarYear and CalendarMonth =UPPER(TEXT(DATE(CalendarYear,CalendarMonth,1),"mmmm yyyy"))
    Last edited by :) Sixthsense :); 12-28-2012 at 11:53 PM. Reason: Correction in formula

  6. #6
    Registered User
    Join Date
    12-24-2012
    Location
    Canada
    MS-Off Ver
    Excel 2016
    Posts
    9

    Re: Getting data from a range matching certain creteria

    Thanks for the help provided. It worked out good. I used the same formula but with current row
    =IFERROR(INDEX(events,SMALL(IF(event_dates=B$5,ROW(events)),ROW(A1))),"")
    I could not understand why we have to take previous row if we are checking and confirming current row?

    Thanks for the help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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