+ Reply to Thread
Results 1 to 7 of 7

SUM(IF(FREQUENCY(IF(A$2:A$500=E2,MATCH? or VBA?

  1. #1
    Registered User
    Join Date
    09-29-2018
    Location
    Windsor, ON
    MS-Off Ver
    2016
    Posts
    29

    SUM(IF(FREQUENCY(IF(A$2:A$500=E2,MATCH? or VBA?

    To All & Anyone:

    I have learned quite a lot from this forum and looking forward to learning more. I am looking for some help to formulate text based on 3 columns of muliple criteria.

    I am working with duplicated PO Numbers column A, with line item Numbers column Band Line Item Status is column C.

    An individual list of PO Numbers are created in Column E by:

    =IFERROR(INDEX($A$2:$A$154, MATCH(0,IF(ISBLANK($A$2:$A$154),1,COUNTIF($E$1:E1, $A$2:$A$154)), 0)),"")

    I want results in column F beside the column E so I can status 3 creierias for the PO Numbers.

    I am looking for a formula, Starting in (F2) that will say:
    "Complete" if all rows with the same PO Number with unique Line Items are "Received" or combined with "Cancelled" line items, in Column C
    "Pending" if all rows in with the same PO number & unique Line Items are "Pending" column "C"
    "Pending" if any rows in with the same PO number & unique Line Items are "Received" or Cancelled" in column "C"
    "Cancelled" if all rows in with the same PO number & unique Line Items are "Cancelled" column "C"

    Results wanted show in column G.

    Not sure if I am explaining everything.

    Unfortunatelry I get my data in a non-systematic/sturcture in cvs format.

    POSS.JPG

  2. #2
    Registered User
    Join Date
    09-29-2018
    Location
    Windsor, ON
    MS-Off Ver
    2016
    Posts
    29

    Re: SUM(IF(FREQUENCY(IF(A$2:A$500=E2,MATCH? or VBA?

    This is my first post. I could not attach a file.

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: SUM(IF(FREQUENCY(IF(A$2:A$500=E2,MATCH? or VBA?

    Hello StormyGurl. Welcome to the forum.

    RE: Attachments. See if this helps.


    To attach a file to your post: (Please no pics or screenshots ... saves retyping data.),

    be sure to desensitize the data
    • click “Go Advanced” (next to Post Quick Reply – bottom right),
    • scroll down until you see “Manage Attachments”, click that,
    • click “Browse”.
    • select your file(s)
    • click “Upload”
    • click “Close window”
    • click “Submit Reply”
    The file name will appear at the bottom of your reply.
    Dave

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: SUM(IF(FREQUENCY(IF(A$2:A$500=E2,MATCH? or VBA?

    Please try at F2

    =IF(OR(INDEX(IF(E2=$A$2:$A$154,$C$2:$C$154)="pending",)),"Pending",IF(OR(INDEX(IF(E2=$A$2:$A$154,$C$2:$C$154)="received",)),"Complete","Cancelled"))

    I don't get this part
    "Pending" if any rows in with the same PO number & unique Line Items are "Received" or Cancelled" in column "C"

    Is this mean only 1 "Completed" at G11 and others "Completed" are "Pending", but is against first rule.

  5. #5
    Registered User
    Join Date
    09-29-2018
    Location
    Windsor, ON
    MS-Off Ver
    2016
    Posts
    29

    Re: SUM(IF(FREQUENCY(IF(A$2:A$500=E2,MATCH? or VBA?

    Thanks for the file attaching tip, FlameRetired.

    I appreciate any response, especially when I misexplained myself. Sorry, Bo_Ry.

    Here is my correction:

    "Complete" if all rows with the same PO Number with unique Line Items are "Received" or combined with "Cancelled" line items, in Column C
    "Pending" if all rows in with the same PO number & unique Line Items are "Pending" column "C"

    "Pending" if any rows in with the same PO number & unique Line Items are "Received" or Cancelled" and has “Pending in column "C"

    "Cancelled" if all rows in with the same PO number & unique Line Items are "Cancelled" column "C"





    Please review the results of the formula in Column F


    Thank you, both!!!!!!!!!!
    Attached Files Attached Files

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: SUM(IF(FREQUENCY(IF(A$2:A$500=E2,MATCH? or VBA?

    Sorry, I forgot to mention that need to press Ctrl+Shift+enter when enter the formula.

    Please try again at F2

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-29-2018
    Location
    Windsor, ON
    MS-Off Ver
    2016
    Posts
    29

    Re: SUM(IF(FREQUENCY(IF(A$2:A$500=E2,MATCH? or VBA?

    Awesome!!!!!!!!!!!!!!!!

    Thank you very much, Bo_Ry.

+ 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. =COUNTIFS to SUM FREQUENCY MATCH
    By brybry1212 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-10-2017, 07:05 PM
  2. Sum frequency match formula
    By heytherejem in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-12-2017, 08:44 AM
  3. Help with Frequency/Match
    By freil in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-12-2016, 08:20 AM
  4. [SOLVED] Frequency and Match
    By hambly in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-17-2014, 01:20 PM
  5. Countif / Frequency / Match
    By johnny_p in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-27-2014, 02:28 PM
  6. [SOLVED] Match and frequency formula
    By massoudrm in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-05-2013, 06:37 PM
  7. Match & Determine Frequency
    By mycon73 in forum Excel General
    Replies: 21
    Last Post: 08-03-2012, 02:17 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