Hi thanks for the reply. I have tried to get solution. But I am not able to find the branch data. I am finding it tough. Please find attached the sample data. if the solution is without VBA code, it will be of immense help.
The solution you're attempting doesn't include any sort of
Advanced Filter that I can see (as the title of this thread suggests it might)!
The formulae in the latest file you attached seem to take a very long time to calculate, but
bosco_yip has adressed that.
BUT… there is a problem with those formulae; they are likely to mix up the rows of data. Below is a screenshot of the results of the formulae, and below that a screenshot of the source data. I have circled
some of the anomalies.

There
might, at some point, also be a problem with the formula in column B (msg#9) which looks up the value in the cell to the right of it, in the
Business column of the
NDCC sheet. If there are multiple similar values in that
Business column, the MATCH might find the wrong one (if the first one is not the right one).
Please find attached the sample data. if the solution is without VBA code, it will be of immense help.
My offering contained one line of code… to help; you don't need it. Delete it. You can do it all manually as I showed and gave instructions for in msg#7.
Having said that, my offering was one which used Advanced Filter, and if you're not going to automate that with code, then it
has to be a 2 step process.
I will look for a more robust formula-only solution. (Actually, I've improved on the pivot table solution I mentioned earlier. The only glitch with that is graphing the result; when I plot the second series as a line chart on the secondary y-axis, it all looks fine and changes accordingly when I choose different Sates, but when I make a choice of filter which produces no data, the chart plots nothing (fine) but when I once again choose valid filters, I lose the secondary y-axis and the line chart becomes a column chart again… grrr.)