Retrieving an array with INDEX

Norty

New Member
Joined
Dec 27, 2017
Messages
6
Hi all,

I have this formula that works perfectly.
Code:
=SUM(COUNTIFS(Table5[Type],"inbound",Table5[Disposition],"Abandoned in queue",Table5[Month],C6,Table5[Service/Campaign],{"Sweden";"Denmark"}))

Now I would like to move the {"Sweden";"Denmark"} part to an cell so that I can use this formula for multiple countries. Something like this,
Code:
=SUM(COUNTIFS(Table5[Type],"inbound",Table5[Disposition],"Abandoned in queue",Table5[Month],C6,Table5[Service/Campaign],INDEX($V$5:$W$10,MATCH($D$3,$V$5:$V$10,0),2)))
And in W5 I have {"Sweden";"Denmark"}.

This doesn't work as Excel puts " around the brackets to mark them as text.

Is there a way for me to return an array in my formula? Not a value from an array, but the whole array as an array.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,215,387
Messages
6,124,637
Members
449,177
Latest member
Sousanna Aristiadou

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top