# IMSUB

Spread for WinForms provides advanced software components that support Excel import/export, full cell customization, an extensive calculation engine with over 450 functions and more, all with zero dependencies on Excel.

## Content



This function returns the difference of two complex numbers in the x+yi or x+yj text format.

## Syntax

IMSUB(*complexnum1*,*complexnum2*)

## Arguments

The *complexnum1* is a complex number from which to subtract the other complex number *complexnum2*.

## Remarks

An error is returned if the arguments are not in the form "x+yi" or "x+yj". For more information, refer to [Complex Numbers in Engineering Functions](/spreadnet/docs/latest/online-formula/formulas-overview/formulas-functs/formulas-functtypes/formulas-functsengineer/formulas-complexnumbers).

## Data Types

Accepts number and string data. Returns string data.

## Examples

`IMSUB("2+5j","5+3i")`

## Version Available

This function is available in product version 2.0 or later.

## See Also

[COMPLEX](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsAtoC/FunctionCOMPLEX) \| [IMSUM](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsFtoK/FunctionIMSUM) \| [Engineering Functions](/spreadnet/docs/latest/online-formula/formulas-overview/formulas-functs/formulas-functtypes/formulas-functsengineer) \| [Complex Numbers in Engineering Functions](/spreadnet/docs/latest/online-formula/formulas-overview/formulas-functs/formulas-functtypes/formulas-functsengineer/formulas-complexnumbers)