How to capture the value of a data selected from a Slicer field in Excel formula or Excel Cell?

Anonymous
2022-09-26T08:38:23+00:00

I have created a slicer as presented below, and one I open its sittings, I have noticed the defined name to use in formula.

I tried to capture the value of this Named field and use the "Indirect" formula as below to display its value. But I got "#REF" as a in the value in the CELL instead!!!

How can I make the CELL displays the date selected which in this example 06/27/2022 01:58:28 PM?

Microsoft 365 and Office | Excel | For education | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. Anonymous
    2022-09-26T11:04:30+00:00

    Hi ThamerTarabzouni,

    Good day! Thank you for posting to Microsoft Community. We are happy to help you.

    I have carefully gone through your question and please allow me to test from my side to see if we can achieve your requirement.

    Once we get results that meet your requirement, we will post back with the results.

    At the same time, I would also like to invite expert MVPs and other community members to share their rich ideas concerning this question to see if we can achieve your requirement together.

    Thank you for your kind understanding , cooperation and patience.

    Sincerely,

    Edwine | Microsoft Community Moderator

    0 comments No comments
  2. Ashish Mathur 100.8K Reputation points Volunteer Moderator
    2022-09-26T23:14:13+00:00

    Hi,

    From the image, i can guess that you have created this slicer from the Data Model. In any cell, enter this formula in cell E10

    =CUBESET("ThisWorkbookDataModel",Slicer_PI_ID1_UpdateTime1,"Date")

    In cell E11, enter this formula

    =CUBERANKEDMEMBER("ThisWorkbookDataModel",E10,1)

    Hope this helps.

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2022-09-28T08:11:02+00:00

    Greetings Ashish,

    Thank you. But can you review your statements. I'm not getting the desired result.

    I just need to reflect in a CELL, the date value selected by the slicer. From what I have read about the CUBESET function, it retains a set of values.

    0 comments No comments
  4. Ashish Mathur 100.8K Reputation points Volunteer Moderator
    2022-09-28T08:19:13+00:00

    Try the formula.

    0 comments No comments
  5. Anonymous
    2022-09-28T11:22:01+00:00

    Hi,

    I inserted both formulas in E10, and E11. Yet, It didn't work. It resulted in # N/A as you can see.

    I will explore another approach. Thanks.

    0 comments No comments