{
  "category": "Lookup and reference functions",
  "display_name": "HASANY",
  "entry_kind": "built_in_function",
  "eval_api": {
    "method": "POST",
    "url": "https://handbook.dnacalc.com/api/eval"
  },
  "function_id": "FUNC.HASANY",
  "implementation_state": {
    "answer_bank": null,
    "detail": "Listed by Microsoft for lists and arrays in cells; no catalogue row yet.",
    "dnacalc_commit": "9e1884369a678158dd82d3d74188daf986995e87",
    "in_catalogue": false,
    "state": "refuses",
    "state_label": "Refuses or not implemented",
    "summary": "Not yet implemented",
    "workbook_corpus": null
  },
  "implementations": [],
  "json_url": "https://handbook.dnacalc.com/api/functions/FUNC.HASANY.json",
  "name": "HASANY",
  "notes": [],
  "schema": "efh.function-reference/v1",
  "section_order": [
    "what-it-does",
    "try-it",
    "quirks",
    "how-to-implement",
    "version-differences",
    "alternatives"
  ],
  "sections": {
    "alternatives": "\n- `HAS` and `HASALL`.\n- `COUNTIF` or `XMATCH` on ordinary ranges.\n\n\n",
    "how-to-implement": "\nNo implementation exists yet. It needs arrays held in a single cell and nested arrays, which DNA Calc's value model does not\nhave, then the search or flattening rule on top. Exact matching rules should be measured in Excel first.\n\n\n",
    "quirks": "\nMicrosoft's page does not state its matching rules in detail, and no reading is recorded here.\n\n\n",
    "sources": "\n- [HASANY function](https://support.microsoft.com/en-us/excel/functions/hasany-function)\n- [What's New in Excel (September 2026)](https://techcommunity.microsoft.com/blog/excelblog/whats-new-in-excel-september-2026/4549755)\n\n",
    "version-differences": "\nMicrosoft announced it in September 2026 for Insiders on Windows and Mac, with lists and arrays in cells. Its page lists\nExcel for Microsoft 365 on Windows and Mac. No Excel answers for this function are recorded here, so no comparison between Excel builds exists.\n\n\n",
    "what-it-does": "\n`HASANY` tests whether an array or range contains at least one of the given values, returning TRUE or FALSE.\n\n`HASANY(array, values)`\n\nNested levels are searched too.\n\n\n"
  },
  "signature": {
    "display": "HASANY(array, values)",
    "parameters": [
      {
        "description": null,
        "name": "array",
        "optional": false,
        "repeats": false
      },
      {
        "description": null,
        "name": "values",
        "optional": false,
        "repeats": false
      }
    ],
    "trailing_repeats": false
  },
  "sources": {
    "metadata": {
      "admission": {
        "label": "not_implemented",
        "reason": "Listed by Microsoft for lists and arrays in cells; no catalogue row yet."
      },
      "arity": {
        "max": 2,
        "min": 2
      },
      "category": "Lookup and reference functions",
      "classification": {},
      "descriptions": {
        "long": null,
        "short": "Whether any of the values appear in an array",
        "short_source": "dna-calc-own"
      },
      "docs": {
        "english_description": null,
        "microsoft_url": "https://support.microsoft.com/en-us/excel/functions/hasany-function"
      },
      "entry_kind": "built_in_function",
      "localized_family_names": null,
      "localized_names": [],
      "signature": {
        "display": "HASANY(array, values)",
        "parameters": [
          {
            "description": null,
            "name": "array",
            "optional": false,
            "repeats": false
          },
          {
            "description": null,
            "name": "values",
            "optional": false,
            "repeats": false
          }
        ],
        "trailing_repeats": false
      },
      "surface_name": "HASANY",
      "version_marker": null,
      "xlcall": null
    },
    "microsoft": "https://support.microsoft.com/en-us/excel/functions/hasany-function"
  },
  "try_it": {
    "formula": "=HASANY({1,2,3},{2,9})",
    "note": "The OneCalc preview has no answer for this function: see the state above.",
    "preview_status": "worksheet-error"
  },
  "url": "https://handbook.dnacalc.com/functions/HASANY.html",
  "variants": [],
  "versions": []
}