Results 1 to 2 of 2

Determining Values Based on Multiple Criteria

Threaded View

  1. #1
    Registered User
    Join Date
    12-06-2017
    Location
    Chicago, IL
    MS-Off Ver
    2016
    Posts
    28

    Determining Values Based on Multiple Criteria

    Hi, I need help figuring out a formula. Report is tracking spend if a supplier is based in the state of Illinois and/or if the supplier is certified as "Diverse."

    I have a lookup table with the suppliers, and "Y"/"N" entries for these details.

    An invoice may have a single line item, or it may have multiple line items. A line item represents a sub-supplier who meets either of the above criteria.

    The logic is that IF the "Prime" supplier (as in, the one issuing an invoice for payment), is Diverse (or Illinois), they get credit for the entire amount of the invoice. If they are NOT Diverse, and they have subs on that invoice who ARE Diverse, the Sub gets credit for the amount of the invoice that represents their billed amount. Same criteria for Illinois.

    The problem I'm having is how do I search just within the subset of rows that represent 1 invoice?

    Example:
    Inv#:1
    Supplier: My Company
    Prime: Y
    Diverse: N
    Total Invoice: $100.00
    Line Item: $50.00

    Inv#:1
    Supplier: Joe'sCo.
    Prime:N
    Diverse:Y
    Line Item: $25.00

    Inv#:1
    Supplier: Jay'sCo
    Prime: N
    Diverse: Y
    Line Item: $25.00

    (so in this example, My Company doesn't get any credit for diverse, since they are not. Joe's Co and Jay's Co each get $25.00 in the diverse spend column...

    BUT--if My Company was diverse, My Company would get $100 in diverse, and Joe's Co and Jay's Co would get $0.)

    Here's a screenshot. I'm attaching the file too. It does have a macro for the combo box, fyi.

    If anyone has any ideas, I'm all ears! Thanks.

    diversespend.JPG
    Attached Files Attached Files
    Last edited by chicagolarsons; 03-14-2019 at 03:35 PM. Reason: Title Change

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 01-10-2019, 09:34 AM
  2. Replies: 5
    Last Post: 02-16-2018, 06:50 AM
  3. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  4. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  5. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  6. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

Tags for this Thread

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