Feb 21 2024 08:40 AM
Hi all!
I'm struggling to create a formula in Excel for a report on potential missed booking opportunities with agents who have a past due balance greater than 90 days. I have an AR Aging, Registered Orders (Origin and Destination), All cities, and an All Agents sheets.
I am trying to match the Booked Agent(s) - Origin column in the AR Aging sheet with the agent on the All Agents sheet to return how many times we booked with an agent that wasn't the one with a past due balance. I need a formula that:
Matches the "Booked Agent(s) - Origin" column in the AR Aging sheet with agents in the All Agents sheet (even if there are multiple agents separated by semicolons)
Returns the total number of shipments booked with each agent listed in "Booked Agent(s) - Origin," not just the first one.
Handles cases where no match is found
I've tried various formulas like INDEX/MATCH, SUMIF, and SUMPRODUCT, but I'm struggling to achieve the desired outcome.
Any help or alternative formulas to achieve this would be greatly appreciated! Thanks!
Here is a link to my document: https://1drv.ms/x/s!Aq6_DXyXC0ISqxjXJzBHGSd_CwFZ?e=rV619N
I am using Microsoft Office LTSC Professional Plus 2021 on a PC.
Feb 22 2024 02:09 AM
Analyzing the information you provided, here's a formula that addresses your requirements for counting missed booking opportunities with agents owing money:
=SUMPRODUCT(--(COUNTIF(FILTERXML("<x><t>"&SUBSTITUTE(A2,";","</t><t>")&"</t></x>", "//t"),B$2:B$100)>0),--(C$2:C$100>90))
Explanation:
Breakdown:
How it works:
Additional notes:
Alternative approach:
If you have Microsoft 365 Excel, you can consider using the TEXTSPLIT function to split the "Booked Agent(s) - Origin" value and then use FILTER and SUM to achieve the desired outcome. However, the provided formula works for all Excel versions.
By implementing this formula, you can effectively calculate the missed booking opportunities with agents having past due balances, providing valuable insights for improving your business strategies.