+ Reply to Thread
Results 1 to 4 of 4

Dont always want the first result... Continued

  1. #1
    Forum Contributor
    Join Date
    11-19-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    137

    Dont always want the first result... Continued

    1. I have spreadsheet that contains a list of tickets and within each ticket they're tasks. On my other spreadsheet is my summary. On the summary sheet James has ticket 55 but I only want to see the first task he has pending. When I use Vlookup to find ticket 55 it will return the first result which is complete. I want to show the task that is pending with the corresponding ticket number to show in my summary spreadsheet.

    Solved here with Glenns response: http://www.excelforum.com/excel-form...st-result.html


    2. Now on the other hand if ALL the tasks in the ticket are complete I want a value of COMPLETE. I need to combine the formula's for 1 & 2


    Thank you for any help.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Dont always want the first result... Continued

    =IF(COUNTIFS(A2:A7,E2,C2:C7,"Complete")=COUNTIF(A2:A7,E2),"Complete",INDEX(B2:B7,MATCH(1,(A2:A7=E2)*(C2:C7="Pending"),0)))
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Contributor
    Join Date
    11-19-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    137

    Re: Dont always want the first result... Continued

    This almost works. The issue I'm having is when there a ticket that doesn't exist. Example in cell E2 there is a value of 80 but yet in my other sheet of tickets there is no ticket with the value of 80. If there is no match I will end up with the value of complete. In return if there isn't a matching ticket # the value should be blank

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Dont always want the first result... Continued

    Why would you be looking up tickets that don't exist? You could use an INDEX(..SMALL( lookup to only list the tickets that exist, and avoid the problem.

    Using your example from before, E2:

    Please Login or Register  to view this content.
    Confirmed with Ctrl+Shift+Enter, and then drag down.
    Last edited by daffodil11; 09-18-2015 at 02:27 PM.

+ 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. [SOLVED] Dont always want the first result
    By yuenk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-16-2015, 11:54 AM
  2. Index Match question........dont understand this result
    By welchs101 in forum Excel General
    Replies: 3
    Last Post: 11-17-2011, 10:52 AM
  3. Formula help - continued
    By craighaylett in forum Excel General
    Replies: 0
    Last Post: 10-01-2010, 05:50 AM
  4. Continued Formula
    By Mr_Maker in forum Excel General
    Replies: 1
    Last Post: 03-19-2010, 12:10 PM
  5. Replies: 1
    Last Post: 12-14-2009, 05:20 PM
  6. Name List Continued
    By NoahB in forum Excel General
    Replies: 0
    Last Post: 07-05-2007, 09:25 AM
  7. list + macros continued
    By Piwo in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-19-2005, 04:06 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