Skip to content

Using SWITCH statement in formula adds an @ in Excel #1192

Answered by JanMarvin
jhorzek asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jhorzek , thank you for your kind words!

The error is related to the following:

As can be seen the list of Excel functions, SWITCH() is a modern Excel formula (the label MS365 gives the hint)

To use this function you have to add the prefix _xlfn. (see here). There is another nasty thing:
The function is a cell metadata function - basically an array function with a special tag to hide that it is an array function. You can use the code below, which will make the function work as expected, but will show its array roots.

I haven't really researched cm-functions, it is possible to write them with wb_add_formula(cm = TRUE) but they print a warning since their initial implementation and unf…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JanMarvin
Comment options

@jhorzek
Comment options

Answer selected by jhorzek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1191 on November 29, 2024 16:13.