Excel Slicer #N/A error

shophoney

Active Member
Joined
Jun 16, 2014
Messages
281
Hi I have a Excel formula for selecting items from a Slicer. But when I select more than what is in the formula 1-11 the result is #N/A.

I want my formulas to allow me to select Months and Display what has been selected or ALL when no selection has been made.

Same with selecting Models.

=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)&" # of Transactions"&", "&
CUBERANKEDMEMBER("ThisWorkbookDataModel",Slicer.SalesStatistics.SalesAppendMONTH,1)&", "&
CUBERANKEDMEMBER("ThisWorkbookDataModel",Slicer.SalesStatistics.SalesAppendMONTH,2)&", "&
CUBERANKEDMEMBER("ThisWorkbookDataModel",Slicer.SalesStatistics.SalesAppendMONTH,3)&", "&
CUBERANKEDMEMBER("ThisWorkbookDataModel",Slicer.SalesStatistics.SalesAppendMONTH,4)&", "&
CUBERANKEDMEMBER("ThisWorkbookDataModel",Slicer.SalesStatistics.SalesAppendMONTH,5)&", "&
CUBERANKEDMEMBER("ThisWorkbookDataModel",Slicer.SalesStatistics.SalesAppendMONTH,6)&", "&
CUBERANKEDMEMBER("ThisWorkbookDataModel",Slicer.SalesStatistics.SalesAppendMONTH,7)&", "&
CUBERANKEDMEMBER("ThisWorkbookDataModel",Slicer.SalesStatistics.SalesAppendMONTH,8)&", "&
CUBERANKEDMEMBER("ThisWorkbookDataModel",Slicer.SalesStatistics.SalesAppendMONTH,9)&", "&
CUBERANKEDMEMBER("ThisWorkbookDataModel",Slicer.SalesStatistics.SalesAppendMONTH,10)&", "&
CUBERANKEDMEMBER("ThisWorkbookDataModel",Slicer.SalesStatistics.SalesAppendMONTH,11)
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,216,105
Messages
6,128,859
Members
449,472
Latest member
ebc9

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