B
bm
hello to anyone,
the following Formula works if I put it in any cell and fill the required
informations on the related cells
=WENN(A1="f";WENN(G1="SA";((D1-B1)*60+(E1-C1)-510);((D1-B1)*60+(E1-C1)-450))
;WENN(A1="s";((D1-B1)*60+(E1-C1)-540);WENN(A1="n";WENN(B1>D1;(((24+D1)-B1)*6
0+(E1-C1)-540);((D1-B1)*60+(E1-C1)-540));((D1-B1)*60+(E1-C1)-540))))
The point is that I want to generate this Formula with VBA during I create a
new Sheet.
That means I want to genreate it dynamically while opening a File.
thanx in advance
bameh1
the following Formula works if I put it in any cell and fill the required
informations on the related cells
=WENN(A1="f";WENN(G1="SA";((D1-B1)*60+(E1-C1)-510);((D1-B1)*60+(E1-C1)-450))
;WENN(A1="s";((D1-B1)*60+(E1-C1)-540);WENN(A1="n";WENN(B1>D1;(((24+D1)-B1)*6
0+(E1-C1)-540);((D1-B1)*60+(E1-C1)-540));((D1-B1)*60+(E1-C1)-540))))
The point is that I want to generate this Formula with VBA during I create a
new Sheet.
That means I want to genreate it dynamically while opening a File.
thanx in advance
bameh1