반응형

양의 값 중 가장 큰 값과 가장 작은 값 찾기

 

엑셀배열함수를 이용하여 값을 쉽게 찾을 수 있다.

 

if 함수

max 함수

min 함수

 

 

A열에 값이 들어 있다.

 

 

양의 값중 가장 큰 값 찾는 방법

D2셀에

=MAX(IF(A1:A7>0,A1:A7))  입력하고 ctrl+shift+enter을 누른다.

 

양의 값중 가장 작은 값 찾는 방법

D2셀에

=MIN(IF(A1:A7>0,A1:A7))  입력하고 ctrl+shift+enter을 누른다.

 

양의 값 중 max, min 찾기
양의 값 중 max, min 찾기

 

 

양의값중가장큰값작은값찾기.xlsx
0.01MB

반응형

'엑셀' 카테고리의 다른 글

제곱의 합을 구하는 함수(sumSQ)  (0) 2022.01.19
convert 함수  (0) 2022.01.11
복소수의 계산 Complex numbers  (0) 2022.01.04
2차방정식의 해찾기  (0) 2022.01.04
Numerical methods  (0) 2021.12.29
반응형

Complex numbers

 

=COMPLEX(1,2)    1+2i

 

=IMPRODUCT("1+2i","1+i")  -3+4i

x + yi 또는 x + yj 텍스트 형식인 복소수를 1개에서 255개까지 곱한 결과를 반환합니다.

두 복소수의 곱은 다음과 같이 계산된다.

(a+bi)(c+di) = (ac-bd)+(ad+bc)i

 

C90셀에 1+2i일때

=IMPRODUCT(C90,C90) -3+4i

반응형

'엑셀' 카테고리의 다른 글

convert 함수  (0) 2022.01.11
양의 값 중 가장 큰 값과 가장 작은 값 찾기  (0) 2022.01.08
2차방정식의 해찾기  (0) 2022.01.04
Numerical methods  (0) 2021.12.29
엑셀 matrix 함수  (0) 2021.12.29
반응형

엑셀에서 2차방정식의 해를 찾으면

다음과 같은 경우에 오류가 발생할 수 있다.

 

ax^2+ bx + c = 0 

 

a=1, b=10^7, c=1

 

x=9.96515E-8과 1E-07 차이가 남

 

 

이런 차이를 해결하기 위해서는 다음과 같이 풀이하면 된다.

 

이렇게 

ax^2+ bx + c = 0 

 

 

ax^2+ bx + c = 0 은 c/x^2 + b/x + a = 0으로 쓸 수 있다.

 

1/x에 대해 풀면

 

b >= 0 이면 d= -b - sqrt(b^2-4*a*c)

b < 0 이면   d= -b + sqrt(b^2-4*a*c)

2차방정식의해.xlsx
0.01MB

반응형

'엑셀' 카테고리의 다른 글

양의 값 중 가장 큰 값과 가장 작은 값 찾기  (0) 2022.01.08
복소수의 계산 Complex numbers  (0) 2022.01.04
Numerical methods  (0) 2021.12.29
엑셀 matrix 함수  (0) 2021.12.29
함수 삽입을 이용한 함수 사용 방법  (0) 2021.12.29
반응형

Numerical methods

 

John D. Fenton
Institute of Hydraulic Engineering and Water Resources Management
Vienna University of Technology, Karlsplatz 13/222,
1040 Vienna, Austria
URL: http://johndfenton.com/
URL: mailto:JohnDFenton@gmail.com

 

Abstract
These notes provide an introduction to numerical methods for the solution of physical problems.
Extensive use will be made of Excel Solver for the solving or approximating the solution of systems
of equations.

 

 

Accompanying documents
The following Excel documents can be found in the same directory as this file:
URL: http://johndfenton.com/Lectures/Numerical-Methods/
and are referred to in the subsequent notes
File name Description
1-FUNCTIONS.XLS Basic Excel functions
2-SOLUTION.XLS Solution of a single equation in a single variable
3-SOLVER.XLS Solver applied to solution of equations, interpolation, and approximation
4-FITTING.XLS A curve fitting example where using Excel Trendline gave poor results
5-DIFF-EQNS.XLS Different problems solved by different methods
6-SPLINES.XLS Use of cubic splines for interpolation
SPLINES.XLS Contains the spline functions necessary for the previous spreadsheet

반응형

'엑셀' 카테고리의 다른 글

복소수의 계산 Complex numbers  (0) 2022.01.04
2차방정식의 해찾기  (0) 2022.01.04
엑셀 matrix 함수  (0) 2021.12.29
함수 삽입을 이용한 함수 사용 방법  (0) 2021.12.29
0.5단위로 올림하기  (0) 2021.12.21
반응형

엑셀 matrix 함수

 

행렬에 상수 더하기

{=A+3}

 

행렬의 scalar 곱

{=A*B}

 

행렬의 곱(MMULT)

{=MMULT(A,B)}

 

행렬식(MDETERM)

=MDETERM(B)

 

전치행렬(TRANSPOSE)

{=TRANSPOSE(A)}

 

역행렬(MINVERSE)

{=MINVERSE(B)}

 

단위행렬(MUNIT)

{=MUNIT(3)}

 

 

Matrix Math.xlsx
0.01MB

반응형

'엑셀' 카테고리의 다른 글

2차방정식의 해찾기  (0) 2022.01.04
Numerical methods  (0) 2021.12.29
함수 삽입을 이용한 함수 사용 방법  (0) 2021.12.29
0.5단위로 올림하기  (0) 2021.12.21
5mm 단위로 올림하는 방법  (0) 2021.12.09
반응형

VBA's Built-in Data Types

 

Data Type Storage Required Range of Values
Boolean (Logical) 2 bytes True or False
Integer 2 bytes -32,768 to 32,767
Long integer 4 bytes -2,147,483,648 to 2,147,483,647
Single precision 4 bytes -3.402823E+38 to -1.401298E-45
for negative values; 1.401298E-45
to 3.402823E+38 for positive
values
Double precision 8 bytes -1.797693 13486232E+308 to
-4.9406564584 1247E-324 
for negative values;
4.94065645841247E-324 to
1.797693 13486232E+308 
for positive values
-922,337,203,685,477.5808 to
922,337,203,685,477.5807
Currency 8 bytes
Date 8 bytes Any Object reference
Object 4 bytes
String 1 byte character
Variant 16 bytes
+ 1 byte/character
Any numeric value up to the
range of a Double or anv text
반응형
반응형

Address  Returns the reference of a cell or range, as text.

 


Columns  Returns a Range object that represents a single column or multiple columns.

 


ConvertFormula  Converts cell references in a formula between A1 and R1 C l-style, and between relative and absolute.

 


Evaluate  Converts a formula to a value.

 


Intersect Returns the reference that is the intersection of two ranges.

 


Rows  Returns a Range object that represents a single row or multiple rows.

 


Volatile  Marks a user-defined function as volatile. The function recalculates whenever calculation occurs in any cell of the worksheet.

 

 

반응형

'VBA' 카테고리의 다른 글

Excel에서 특정 셀이 변경될 때 매크로 실행  (0) 2022.01.23
VBA's Built-in Data Types  (0) 2021.12.29
VBA Information 함수 일부  (0) 2021.12.29
VBA text함수 일부  (0) 2021.12.29
VBA 수학 함수 일부  (0) 2021.12.29
반응형

VBA Information 함수 일부

 

IsArray  Returns True if the variable is an array.

 

IsDate Returns True if the expression is a date.

 

IsEmpty Returns True if the variable is uninitialized.

 

IsError Returns True if the expression returns an error.

 

IsMissing Returns True if an optional value has not been passed to a Function procedure.

 

IsNull  Returns True if the expression is null (i.e., contains no valid data).

 

IsNumeric Returns True if the expression can be evaluated to a number.

 

Isobject  Returns True if the expression references a valid object.

 

LBound Returns the lower limit of an array dimension.

 

UBound Returns the upper limit of an array dimension.

 

 

 

반응형
반응형

VBA text함수 일부

 

 

Asc 문자의 ASCII code를 반환한다.

 

Chr ASCII code에 해당하는 문자를 반환한다.

 

Format  기본 제공 또는 사용자 정의에 따라 숫자 형식 지정 숫자 형식 표현. 결과는 문자열입니다.

 

lnstr  문자열 내에서 부분 문자열의 첫 번째 발생을 반환합니다. Excel의 FIND 워크시트 기능과 유사합니다.

 

Len 문자열의 길이(문자 수)를 반환합니다.

 

Left 문자열의 가장 왼쪽 문자를 반환합니다.

 

Right 문자열의 가장 오른쪽 문자를 반환합니다.

 

Mid 문자열에서 지정된 수의 문자를 반환합니다.

 

LTrim 선행 공백이 없는 문자열을 반환합니다.

 

RTrim 후행 공백이 없는 문자열을 반환합니다.

 

Trim 선행 또는 후행 공백 없이 문자열을 반환합니다.

 

Str 숫자를 문자열로 변환합니다. 선행 공간이 예약되어 있습니다.
숫자의 표시를 위해; 숫자가 양수이면 문자열에는 선행 공백이 포함됩니다.

 

LCase  문자열을 소문자로 변환합니다.

 


UCase 문자열을 대문자로 변환합니다.

 

 

반응형
반응형

VBA 수학 함수 일부

 

Abs  절대값을 반환한다.

 

Atn  arctangent값을 반환한다. 결과는 radians이다.

 

Cos cosine값을 반환한다. 결과는 radians이다.

 

EXP  e의 거듭제곱을 반환한다.

 

Int 숫자의 정수부를 반환한다.(rounds down)

 

Log 자연로그 값을 반환한다.

 

Rnd 0보다 크고 1보다 작은 난수를 반환한다.

 

Sin sine값을 반환한다. 결과는 radians이다.

 

Sqr root값을 반환한다.

 

Tan tangent값을 반환한다. 결과는 radians이다.

 

 

반응형

+ Recent posts