I need help with a formula solution. Please open the attached sample file.
I need to find the desired result shown in Column F based on the sample data from column A to E
first condition is, the dominant category should be run for each unique Order ID and second criteria is to exclude any amount where the values of Column D and E do not match (I highlighted them in red text) then sum order total for each category ID for each Unique Order ID and then see which of the category ID has the maximum value then whatever category ID has the max value for that specific Order ID then in Column F populate with formula the category ID which has the Maximum sum per that Order ID.
might be a easy formula, but could not get my head around it.
any help is appreciated.
Thanks a lot.