ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to use complex no. functions that have cell references? (https://www.excelbanter.com/excel-worksheet-functions/31189-how-use-complex-no-functions-have-cell-references.html)

agathon

How to use complex no. functions that have cell references?
 
example: imsqrt. The only example in Help uses literal number args. I
want the args to be cell references. When I use literal cell references I
get NUM error.


JE McGimpsey

This works for me:

D2: = 2+3i

D4: =IMSQRT(D2)

Make sure that the "i" is lower case (you can use

D4: =IMSQRT(LOWER(D2))

to make sure.

In article ,
"agathon" wrote:

example: imsqrt. The only example in Help uses literal number args. I
want the args to be cell references. When I use literal cell references I
get NUM error.


Bernie Deitrick

You can also build up the argument string. For example with
2
in cell A1, and
'-3i
in cell A2, you can use

=IMSQRT(A1&A2)

Note that the imaginary part needs to be entered with a single quote, then
the sign, then the multiplier and then the lower case i.

So if you wanted imsqrt(3+3i), enter 3 into cell A1, and '+3i into A2.

HTH,
Bernie
MS Excel MVP




"agathon" wrote in message
...
example: imsqrt. The only example in Help uses literal number args. I
want the args to be cell references. When I use literal cell references I
get NUM error.





All times are GMT +1. The time now is 11:13 PM.

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