+ Reply to Thread
Results 1 to 8 of 8

List values of 2 columns of a row based on criteria

  1. #1
    Registered User
    Join Date
    08-18-2015
    Location
    Ontario, Canada
    MS-Off Ver
    Office 2013
    Posts
    6

    List values of 2 columns of a row based on criteria

    Hello,

    I am looking to have a spreadsheet that lists "tickets" that were created and solved in a given date range. In the included example file there is data that is input (in grey) and the expected result is listed below. I am looking to list in one section all ticket numbers and their associated "subject" that were created in the given date range criteria, and all tickets in a separate section that were resolved in the given date range.

    In the example I included what the expected result would be, however, I am unsure how to code this.

    Help is appreciated. Thank you in advance.List ticket numbers - example.xlsx

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: List values of 2 columns of a row based on criteria

    g2=if(and($F2="",month(B2)=$H$1),"meets the critiria","") and drag down.

    after that filter on column G on the text "meet the criteria".

    see the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    08-18-2015
    Location
    Ontario, Canada
    MS-Off Ver
    Office 2013
    Posts
    6

    Re: List values of 2 columns of a row based on criteria

    I want to do it without filtering as I'll be linking this to a "report" page and will not be able to filter the list.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: List values of 2 columns of a row based on criteria

    with index/match.

    see the attached file.

  5. #5
    Registered User
    Join Date
    08-18-2015
    Location
    Ontario, Canada
    MS-Off Ver
    Office 2013
    Posts
    6

    Re: List values of 2 columns of a row based on criteria

    Quote Originally Posted by oeldere View Post
    with index/match.

    see the attached file.
    The only issue I have with that solution is if the date created is for example 9/5/2014 then it will still capture that ticket, where as that is not actually within that date range. Obviously the reason why is because we are just specifying the Month number as "9" in this case.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,169

    Re: List values of 2 columns of a row based on criteria

    In a14

    =IFERROR(INDEX($A$2:$A$11,SMALL(IF(($B$2:$B$11>=$I$2)*($B$2:$B$11<=$I$3),ROW($A$2:$A$11)-ROW($A$2)+1,""),ROWS($A$2:A2))),"")

    in B14

    =IFERROR(INDEX($E$2:$E$11,SMALL(IF(($B$2:$B$11>=$I$2)*($B$2:$B$11<=$I$3),ROW($A$2:$A$11)-ROW($A$2)+1,""),ROWS($A$2:A2))),"")

    in A22

    =IFERROR(INDEX($A$2:$A$11,SMALL(IF(($F$2:$F$11>=$I$2)*($F$2:$F$11<=$I$3),ROW($A$2:$A$11)-ROW($A$2)+1,""),ROWS($A$2:A2))),"")

    in B22

    =IFERROR(INDEX($E$2:$E$11,SMALL(IF(($F$2:$F$11>=$I$2)*($F$2:$F$11<=$I$3),ROW($A$2:$A$11)-ROW($A$2)+1,""),ROWS($A$2:A2))),"")

    ALL entered with Ctrl+Shift+Enter

    Then copy down

  7. #7
    Registered User
    Join Date
    08-18-2015
    Location
    Ontario, Canada
    MS-Off Ver
    Office 2013
    Posts
    6

    Re: List values of 2 columns of a row based on criteria

    Quote Originally Posted by JohnTopley View Post
    In a14

    =IFERROR(INDEX($A$2:$A$11,SMALL(IF(($B$2:$B$11>=$I$2)*($B$2:$B$11<=$I$3),ROW($A$2:$A$11)-ROW($A$2)+1,""),ROWS($A$2:A2))),"")

    in B14

    =IFERROR(INDEX($E$2:$E$11,SMALL(IF(($B$2:$B$11>=$I$2)*($B$2:$B$11<=$I$3),ROW($A$2:$A$11)-ROW($A$2)+1,""),ROWS($A$2:A2))),"")

    in A22

    =IFERROR(INDEX($A$2:$A$11,SMALL(IF(($F$2:$F$11>=$I$2)*($F$2:$F$11<=$I$3),ROW($A$2:$A$11)-ROW($A$2)+1,""),ROWS($A$2:A2))),"")

    in B22

    =IFERROR(INDEX($E$2:$E$11,SMALL(IF(($F$2:$F$11>=$I$2)*($F$2:$F$11<=$I$3),ROW($A$2:$A$11)-ROW($A$2)+1,""),ROWS($A$2:A2))),"")

    ALL entered with Ctrl+Shift+Enter

    Then copy down
    Awesome ! works great. Thanks.

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,169

    Re: List values of 2 columns of a row based on criteria

    Thank you the feedback. If you have your required answer, can you mark the thread as SOLVED ("Thread Tools" at top of thread)

+ 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. Return a list of cell values based on criteria in other columns
    By Mikeyd74 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-16-2015, 10:02 AM
  2. [SOLVED] Count values in one list and then narrow/combine values based on criteria
    By razz0807 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-13-2013, 08:02 AM
  3. Replies: 2
    Last Post: 10-25-2013, 07:01 PM
  4. [SOLVED] Copy/Paste multiple columns as values based on another columns criteria
    By Dgp2012 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-28-2013, 06:50 AM
  5. Replies: 0
    Last Post: 09-15-2012, 02:56 AM
  6. matching values based on criteria and return values from another columns
    By lizard54 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2012, 11:29 AM
  7. Creating a list in one column based on criteria in two other columns!?
    By chelseasikoebs in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-02-2009, 11:00 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