# IMSUB

The IMSUB function is used in Excel to subtract complex numbers. It is especially handy when dealing with calculations involving imaginary numbers or complex arithmetic in engineering, physics, mathematics, and other fields.

## Syntax

=IMSUB(`complex_number1`

, `complex_number2`

)

`complex_number1` | The first complex number from which you want to subtract. |

`complex_number2` | The complex number to subtract from the first complex number. |

## About IMSUB

When you find yourself working with complex mathematical operations that involve subtraction of complex numbers in Excel, IMSUB comes to the rescue. It simplifies the process of computing differences between two complex numbers, streamlining your tasks in various technical disciplines requiring complex arithmetic manipulation. This function provides a straightforward and efficient approach to subtracting complex numbers within your worksheets, aiding in enhanced productivity and accuracy in calculations involving imaginary quantities and complex values.

## Examples

Imagine you have two complex numbers: 3 + 2i as the first complex number and 1 - i as the second complex number. To subtract the second complex number from the first, you can use the IMSUB function as follows: =IMSUB("3+2i", "1-i") This will yield the result of 2 + 3i.

Consider a scenario where you need to subtract 4i from 6 + 2i. Utilize the IMSUB function to achieve this calculation: =IMSUB("6+2i", "4i") The result will be 6 - 2i.

## Questions

**What happens if the input complex numbers are not in the correct format for the IMSUB function?**

If the input complex numbers are not in the correct format (e.g., missing or incorrectly placed 'i' or 'j'), Excel may return an error or incorrect result. It is crucial to ensure the proper formatting of complex numbers for the function to work accurately.

**Can I use the IMSUB function with real numbers or only with complex numbers?**

The IMSUB function is specifically designed for subtracting complex numbers in Excel. While it operates on complex numbers, you can still work with real numbers by using '0i' as the imaginary part in the complex number format. However, the primary utility of IMSUB lies in handling complex arithmetic operations.

**Is there a specific order in which I need to input the complex numbers for subtraction with IMSUB?**

The order in which you input the complex numbers matters. The IMSUB function subtracts the second complex number from the first one. Hence, ensure that you provide the complex numbers in the correct sequence to obtain the desired subtraction result.

## Related functions

IMADD

IMAGINARY

IMCONJUGATE

IMDIV

IMEXP

IMLN

IMPOWER

IMPRODUCT

IMREAL