IMSIN function
Returns the sine of a complex number. For z = x+yi it equals sin x·cosh y + i·cos x·sinh y.
Available in Excel 2007 and later (Excel 2003 needed the Analysis ToolPak add-in), Microsoft 365, Excel for the web, Excel for Mac
Excel 2007 and laterWorks in Google Sheets
Syntax
IMSIN(inumber)| Argument | What it means | |
|---|---|---|
inumber | Required | A complex number as text such as "3+4i" or "5-2j", a cell containing one, or a plain number. Build it with COMPLEX to avoid typing errors. |
Returns: A complex number as text.
How IMSIN works
IMSIN returns the sine of a complex number. For z = x + yi, sin z = sin x·cosh y + i·cos x·sinh y, so the real part follows the usual sine wave while the imaginary part grows exponentially with y. Unlike the real sine, a complex sine is not limited to the range -1 to 1. Like all IM functions, it reads complex numbers written as text (x+yi or x+yj) and returns its answer as text with up to 15 significant digits, so you can feed the result straight into another IM function.
Complex trigonometric and hyperbolic functions are mostly used in electrical engineering (transmission lines, filters), control theory and physics. For everyday spreadsheets you will rarely need them, but they make it possible to keep a whole calculation in Excel instead of switching to a maths package.
Examples
1Evaluate at the imaginary unit i
| A | B | |
|---|---|---|
| 1 | Complex number | |
| 2 | i | 1.1752011936438i |
Result: 1.1752011936438i
The sine of a pure imaginary number is imaginary: sin(i) = i·sinh(1) ≈ 1.1752i.
2Sine of 4+3i
| A | B | |
|---|---|---|
| 1 | Complex | |
| 2 | 4+3i | -7.61923172032141-6.548120040911i |
Result: -7.61923172032141-6.548120040911i
sin 4·cosh 3 = -0.7568 × 10.068 ≈ -7.619 and cos 4·sinh 3 = -0.6536 × 10.018 ≈ -6.548: the result is far outside -1…1.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | The text is not a valid complex number — for example it contains spaces (3 + 4i), a capital I, or a misplaced sign. | Create the value with COMPLEX or remove spaces with SUBSTITUTE. |
#VALUE! | The argument is a logical value, or the formula mixes the i and j suffixes. | Use one suffix consistently throughout a calculation. |
Tips
Google Sheets
IMSIN also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
IMSIN in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Danish | IMAGSIN |
| Dutch | C.SIN |
| Finnish | KOMPLEKSI.SIN |
| French | COMPLEXE.SIN |
| Hungarian | KÉPZ.SIN |
| Italian | COMP.SEN |
| Polish | SIN.LICZBY.ZESP |
| Portuguese (Brazil) | IMSENO |
| Portuguese (Portugal) | IMSENO |
| Russian | МНИМ.SIN |
| Spanish | IM.SENO |
| Turkish | SANSIN |