ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   CHOOSE command for arithmetic sign (https://www.excelbanter.com/excel-discussion-misc-queries/57171-choose-command-arithmetic-sign.html)

Native

CHOOSE command for arithmetic sign
 
Hello: would like to use the CHOOSE() function to select either * or /.

However, if I enter the equation:

=G10&CHOOSE(G$5,"*","/")&G12

I end up getting an output in the cell of "234*7", versus actually
multipling 234*7.

Simply syntax error, or something else I need to do?


Peo Sjoblom

CHOOSE command for arithmetic sign
 
You would either need some evaluation function written (UDF) or change the
formula to

=CHOOSE(G$5,G10*G12,G10/G12)

--
Regards,

Peo Sjoblom

(No private emails please)


"Native" wrote in message
oups.com...
Hello: would like to use the CHOOSE() function to select either * or /.

However, if I enter the equation:

=G10&CHOOSE(G$5,"*","/")&G12

I end up getting an output in the cell of "234*7", versus actually
multipling 234*7.

Simply syntax error, or something else I need to do?




All times are GMT +1. The time now is 09:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com