+ Reply to Thread
Results 1 to 4 of 4

Formula to show 'Reject' number and type

  1. #1
    Registered User
    Join Date
    09-13-2012
    Location
    GA, USA
    MS-Off Ver
    2010
    Posts
    48

    Formula to show 'Reject' number and type

    I’m looking for formulas to populate “Times Rejected/Canceled” and “Rejected at Queue” Columns B & C in Report worksheet based on the data available in Queue worksheet.

    Refer to the attached file, In the Report sheet, Column B gives you the number of times “Reject” or “Cancel” shows up against the ID and Column C gives you the Queue’s at which they were Rejected or Canceled.

    Appreciate any help. Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,819

    Re: Formula to show 'Reject' number and type

    You can put this formula in cell B2 of the Report sheet:

    =SUM(COUNTIFS(Queue!C:C,$A2,Queue!E:E,{"cancel","reject"}))

    and copy this down to give you a count of the number of "cancel" or "reject" records by production line.

    For the second part, it would be easier to use a helper column in the Queue sheet, so I used this formula in cell G2:

    =IF(OR(E2="cancel",E2="reject"),C2&"_"&COUNTIF(G$1:G1,C2&"_*")+1,"")

    and copied this down to beyond the end of your data. Then you can use this formula in cell C2 of the Report sheet:

    =IF(E2=0,"NONE",INDEX(Queue!$D:$D,MATCH($A2&"_1",Queue!G:G,0))&IFERROR(", "&INDEX(Queue!$D:$D,MATCH($A2&"_2",Queue!G:G,0)),"")&IFERROR(", "&INDEX(Queue!$D:$D,MATCH($A2&"_3",Queue!G:G,0)),"")&IFERROR(", "&INDEX(Queue!$D:$D,MATCH($A2&"_4",Queue!G:G,0)),""))

    and copy this down. This will give you up to 4 Queue codes, but it is easy enough to extend this by copying the red part of the formula just inside the final bracket, and then changing the "_3" to a number in sequence as many times as you need to.

    Hope this helps.

    Actually, I've just noticed that your profile says that you use XL2003. I doubt this is still true, as you would not be able to post an .xlsx file, so please update your profile on UserCP, as IFERROR and COUNTIFs will not work on that version.

    Pete

  3. #3
    Registered User
    Join Date
    09-13-2012
    Location
    GA, USA
    MS-Off Ver
    2010
    Posts
    48

    Re: Formula to show 'Reject' number and type

    Worked perfectly, I liked that you gave additional tip to increase more Queue codes. Thank you.

    I have updated my profile per your request.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,819

    Re: Formula to show 'Reject' number and type

    Glad to hear that it worked for you.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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] formula to define accept/reject for testings of some product with diffrent spec.
    By Pt.purba in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-18-2017, 01:14 PM
  2. Replies: 5
    Last Post: 05-07-2015, 06:12 AM
  3. [SOLVED] Formula to calculate Complete's and Reject's
    By rajeshntiwari in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-23-2014, 06:57 PM
  4. [SOLVED] Format cell to show % as the number type-in
    By Rocky2013 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-02-2014, 09:02 AM
  5. [SOLVED] Excel Formula to Show Type of Shift Based on Start and End Time
    By bjnockle in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 07-03-2013, 09:48 PM
  6. Replies: 2
    Last Post: 04-24-2013, 01:36 PM
  7. [SOLVED] Formula that will count names but reject the word BLOCKED
    By armynurse in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-21-2012, 06:20 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