다음을 통해 공유


WorksheetFunction.Complex Method (Excel)

Converts real and imaginary coefficients into a complex number of the form x + yi or x + yj.

Syntax

.Complex(Arg1, Arg2, Arg3)

A variable that represents a WorksheetFunction object.

Parameters

Name

Required/Optional

Data Type

Description

Arg1

필수

Variant

The real coefficient of the complex number.

Arg2

필수

Variant

The imaginary coefficient of the complex number.

Arg3

선택

Variant

The suffix for the imaginary component of the complex number. If omitted, suffix is assumed to be "i".

Return Value

String

Remarks

  • If Arg1 is nonnumeric, Complex generates an error.

  • If Arg2 is nonnumeric, Complex generates an error.

  • If Arg3 is neither "i" nor "j", Complex generates an error.

참고

All complex number functions accept "i" and "j" for suffix, but neither "I" nor "J". Using uppercase generates an error. All functions that accept two or more complex numbers require that all suffixes match.

참고 항목

개념

WorksheetFunction Object Members

WorksheetFunction Object