I’m tryng to eliminate all vba code from a spreadsheet I have inherited. The code is essentially a substitute for an advanced lookup/sumif/array formula – not particularly complicated but I want shot of the code as it takes for ever to calculate.
Basically I have a data sheet and a presentation sheet. The data sheet has country in column a, distributor in column b and numbers in c through m. There is only ever one country/distributor combination.
I’m picking up the numbers from the data sheet and putting them in the correct place using an array formula of the following nature:
{=SUM(($B17=data!$B$3:$B$200)*($A$9=data!$A$3:$A$200)*data!H$3:H$200)}
(b17 is current distributor, a9 current country)
My problem is that the final column of the data sheet contains text which I need to drag onto the presentation sheet. The sum function obviously doesn’t work but I can’t figure out what will. I’ve had a quick search here under array formula, but can’t see anything (hopefully I’m not going blind!), checked out Chip Pearson, ditto, and don’t think the format of the report will support DGET(). Any suggestions as to an array that will do the trick?
Thanks in Advance
Brooke