Вы находитесь на странице: 1из 44

Excel For Engineers

By Osama Alkoshak

1
Excel For Engineers
By Osama Alkoshak

2
Excel For Engineers
By Osama Alkoshak


.
. .

mega upload
:

3
Excel For Engineers
By Osama Alkoshak

)SUM(n1, n2, n3, ... SUM


)SUMPRODUCT(array1, array2, ... SUMPRODUCT


)SUMSQ(n1, n2, n3, ... SUMSQ


)SUMX2MY2(array_x, array_y SUMX2MY2
.)x2 - y2(

)SUMX2PY2(array_x, array_y SUMX2PY2
.)x2+ y2(

)SUMXMY2(array_x, array_y SUMXMY2
)x - y)2

)GCD(n1, n2, n3, ... GCD



SUMX2PY2
Sum
X2 x
P plus
Y2 y

4
Excel For Engineers
By Osama Alkoshak

summation of squared x plus squared y


SUMX2MY2 m minus


GCD greatest common divisor
SUMSQ summation of squared values
:



DIGITS )ROUND(n, digits ROUND
FIX

)ROUNDUP(n, digits ROUNDUP

)ROUNDDOWN(n, digits ROUNDDOWN


N )CEILING(n, multiple CEILING
multiple

N )FLOOR(n, multiple FLOOR
multiple
)EVEN(n EVEN
)ODD(n ODD
)INT(n INT

)trUNC(n, digits trUNC
DIGIT



( )

5
Excel For Engineers
By Osama Alkoshak

9.5
)CEILING(9.5;2
9.5 2 10


) FLOOR(9.5;2 9.5 2 8

9.5468
)ROUND(9.5468; 2
9.55

)LOG(n, base LOG

10
)LOG10(n LOG10

)LN(n LN

en )EXP(n EXP

)POWER(n, p POWER

(en - e-n)/2 )SINH(n SINH

(en + e-n)/2 )COSH(n COSH

)(en - e-n) / (en + e-n )TANH(n TANH

6
Excel For Engineers
By Osama Alkoshak

)MDETERM(cell range MDETERM

)MINVERSE(cell range MINVERSE

)MMULT(cell range 1, cell range 2 MMULT

)trANSPOSE(cell range trANSPOSE

)MAX(Data Max

)MIN(Data Min


)LARGE(Data,n largest
5 n

)SMALL(Data,n smallest

)COUNT(Data count

"
"

7
Excel For Engineers
By Osama Alkoshak

)len(text len

)upper(text upper

)lower(text lower

TRUE
)(and AND
FALSE
TRUE
)(or OR
FALSE

)IF(TEST;IF TRUE;ELSE IF

FALSE FALSE FALSE

TRUE TRUE TRUE

TRUE FALSE NOT not

" "

8
Excel For Engineers
By Osama Alkoshak

IF OR , AND
IF OR ; AND

B2 C

)IF(AND(B2>C3;B2>C4;B2>C5;B2>C6;B2>C7);TRUE;FALSE

B2 C
)IF(OR(B2>C3;B2>C4;B2>C5;B2>C6;B2>C7);TRUE;FALSE

intercept




)Intercept ( known x ; known y
known y - known x

9
Excel For Engineers
By Osama Alkoshak


LINEST LOGEST - TREND Excel
Scientific and Engineering Cookbook

.

()

()

10
Excel For Engineers
By Osama Alkoshak

convert


analysis tool back


:
)CONVERT(number,from_unit,to_unit

Number from_units .

From_unit .
To_unit .
CONVERT

From_unit to_unit

""g

""sg

""lbm ( )

""u (U )

""ozm ( )

From_unit to_unit

""m

""mi

""Nmi

11
Excel For Engineers
By Osama Alkoshak

""in

""ft

""yd

""ang

""Pica ( 72/1)

From_unit to_unit

""yr

""day

""hr

""mn

""Sec

From_unit to_unit

""Pa

""atm

""mmHg

From_unit to_unit

""N

""dyn

""lbf

12
Excel For Engineers
By Osama Alkoshak

From_unit to_unit

""J

""e

""c

""cal

""eV

""HPh

""Wh

""flb
""BTU BTU

From_unit to_unit

""HP

""W

From_unit to_unit

""T

""ga

From_unit to_unit

""C

""F

""K

13
Excel For Engineers
By Osama Alkoshak

From_unit to_unit

""tsp

""tbs

""oz

""cup

""pt U.S. pint


""uk_pt

""qt

""gal

""l

1 )"=CONVERT(1.0, "lbm", "kg

68 )"=CONVERT(68, "F", "C



)"=CONVERT(2.5, "ft", "sec
)(#N/A


......

( )

14
Excel For Engineers
By Osama Alkoshak

-1 :

)DEC2HEX(n, digits

DEC2HEX(64000,8)= 0000FA00


)HEX2DEC(n

HEX2DEC(1F0CC3)=2,034,883

-2

2 -4


15
Excel For Engineers
By Osama Alkoshak

:

A1
((IF(A1>4;"WRONG";IF(A1<2;"WRONG";"RIGHT


16
Excel For Engineers
By Osama Alkoshak


B3

17
Excel For Engineers
By Osama Alkoshak

:



" "


osama


=sum(osama)

18
Excel For Engineers
By Osama Alkoshak

osama






osama

command button edit


19
Excel For Engineers
By Osama Alkoshak

c4 c3

c3 first
c4 second

visual basic visual basic

20
Excel For Engineers
By Osama Alkoshak

calc plus double


osama first second
plus
plus
c++
" "
run execute c++

run

21
Excel For Engineers
By Osama Alkoshak



visual basic

Public Function v_Mag(v As Range) As Double
Dim x As Double
Dim y As Double
Dim z As Double

x = v.Cells(1).Value
y = v.Cells(2).Value
z = v.Cells(3).Value

)v_Mag = Sqr(x2 + y2 + z2
End Function


)=v_Mag(cell range
v-mag
sqrt visual basic sqr

. . . . .

22
Excel For Engineers
By Osama Alkoshak

:

.
. .
Excel Scientific and Engineering Cookbook

Public Function v_Mag(v As Range) As Double


( c++ ) v-mag

Dim x As Double
Dim y As Double
Dim z As Double

dim as visual basic

x = v.Cells(1).Value
y = v.Cells(2).Value
z = v.Cells(3).Value
x,y,z
)v_Mag = Sqr(x ^ 2 + y ^ 2 + z ^ 2

Cf :

23
Excel For Engineers
By Osama Alkoshak

Rn
12000


. TOOLS- GOAL SEEK
. . . .
. .

C5
C4
Cf
Cf C5

SOLVER

24
Excel For Engineers
By Osama Alkoshak


SUBJECT TO THE CONSTRAINTS
MAX MIN

OFFICE SOLVER
:

SOLVER ADD IN

:
Cf 6000-12000


Cf

panadol extra !


VISUAL BASIC

VISUAL BASIC Excel
Scientific and Engineering Cookbook
C1 RN_1

25
Excel For Engineers
By Osama Alkoshak

C2 RN_2
C3 RN
C4 CF
C5 C5

Rn2=12000 Rn1 = 6000

compute cf
VISUAL BASIC module

26
Excel For Engineers
By Osama Alkoshak

) (Public Sub ComputeCf


Dim inc As Double

)"With Worksheets("Nonlinear equation


inc = (.Range("Rn_2") - .Range("Rn_1")) / 20

For i = 0 To 20
).Range("Rn") = .Range("Rn_1") + (inc * i
)".Range("Fx").GoalSeek goal:=0, ChangingCell:=.Range("Cf
)".Cells(10 + i, 2) = .Range("Rn
)".Cells(10 + i, 3) = .Range("Cf
Next i
End With
End Sub


Dim inc As Double
increment
dim .. as
inc
:

)"With Worksheets("Nonlinear equation


. .
. .
Nonlinear equation

with end with


class

inc = (.Range("Rn2") - .Range("Rn1")) / 20




)".Range("Rn2
Range C2 12000
For i = 0 To 20

27
Excel For Engineers
By Osama Alkoshak

FOR 1-20
).Range("Rn") = .Range("Rn_1") + (inc * i

RN RN C3

)".Range("Fx").GoalSeek goal:=0, ChangingCell:=.Range("Cf

.Range("Fx").GoalSeek goal:=0

GOALSEEK FX C4
GOAL SEEK
)" ChangingCell:=.Range("Cf CF FX

)".Cells(10 + i, 2) = .Range("Rn
)".Cells(10 + i, 3) = .Range("Cf

Next i


COMPUTE CF

28
Excel For Engineers
By Osama Alkoshak



(
)



-
-



e



ctr+e
ctr+e

29
Excel For Engineers
By Osama Alkoshak

:
txt


txt

30
Excel For Engineers
By Osama Alkoshak

fixed width
Start import at rows 60
61
0

31
Excel For Engineers
By Osama Alkoshak

32
Excel For Engineers
By Osama Alkoshak

33
Excel For Engineers
By Osama Alkoshak

34
Excel For Engineers
By Osama Alkoshak



. . .
. .
. .

! ! !

. .
. . . .

35
Excel For Engineers
By Osama Alkoshak


Password
Recovery

recover

36
Excel For Engineers
By Osama Alkoshak

setting



setting sympol set

37
Excel For Engineers
By Osama Alkoshak

look up :



:
look
up

38
Excel For Engineers
By Osama Alkoshak

LOOK UP

)=LOOKUP(lookup value, lookup vector, result vector

lookup value
lookup vector

result vector

39
Excel For Engineers
By Osama Alkoshak

F17
))=LOOKUP(F14, IF(F15="ft",D8:D12,E8:E12), IF(F16="Steel", F8:F12,G8:G12

VLOOKUP


)=VLOOKUP(lookup value, table, column, match flag
lookup value
table

40
Excel For Engineers
By Osama Alkoshak

Column
match flag true or false
( )

vlookup


=
VLOOKUP($E$17;$C$4:$K$12;2(

41
Excel For Engineers
By Osama Alkoshak

HLOOKUP

MATCH

42
Excel For Engineers
By Osama Alkoshak

: CLTD


CLTD
.
. .
CLTD
LOOK UP IF
CLTD
CLTD

" .... "

()

43
Excel For Engineers
By Osama Alkoshak




. .
. .

.
. .


Scientific and
Engineering Cookbook

CLTD

osama21mx@yahoo.com
.

OSAMA ALKOSHAK

44

Вам также может понравиться