How to add hours and min in numbers
I need to add like 400 times that are in the format of "1:25" for 1 hour and 25 min but i dont now why it wont add it if anyone know please help
Hi 52,
Have a look at the cell format.
Perhaps the cells are Date & Time format (which can display as 1:25)
Duration seems to be what you want:
=SUM(B2:B6)
Similar Messages
-
Seconds to Shift and Hour and Mins
Hi,
I have 88000 Seconds.
Every 8 Hours we have Shift.
How to identify how many shifts , Hours and Mins are available in 88000 Seconds.
I want to display like using Sqlserver.
Example
4 Shifts 3 Hours 33 Mins
raghuDECLARE @TimeinSecond INT
SET @TimeinSecond =88000
SELECT RIGHT('' + CAST((@TimeinSecond / 3600)/8 AS VARCHAR),2) + ' Shifts , ' +
RIGHT('' + CAST((@TimeinSecond / 3600)%8 AS VARCHAR),2) + ' Hours , ' +
RIGHT('0' + CAST((@TimeinSecond / 60) % 60 AS VARCHAR),2) + ' Mins '
raghu -
How can add Hours in datetime and result is also in datetime?
Hi Friends,
How can add Hours in datetime and result is also in datetime?
I want such as 22-11-2006 10:30=22-11-2006 08:30+2 from dual
Select (22-11-2006 08:30+2) from dual;
And Result should be in this form 22-11-2006 10:30
Best regards,
Shahzadsql>
select col1, col1 + interval '1' hour
from t;
COL1 COL1+INTERVAL'1'HOUR
04-DEC-06 12.21.55.000000 PM 04-DEC-06 01.21.55.000000000 PM -
How to add MenuBar and MenuItems in JSP Form
Help Me,
Dear Forum,
I am user of jDeveloper 10g working on JSP (Web Module).So How to add MenuBar and Menu Item, in Our jsp Form.What this type control exist?
regards
javed khanYou should do this instead:
iframe.setJMenuBar(i_menuBar); -
How to add ParallelElement and SerialElement in strobe Player
hey frnd,
i'm showing rtmp video from loud api to user and want to add some ads with list of mp3s.
I'm using strobe player but not getting idea to do this .
How can we send more parameters to strobe like xmllist or How to add ParallelElement and SerialElement in strobe Player.
thx in advanced,Ooohh... you mean, like the one mentioned in http://indesignsecrets.com/adding-zoom-and-print-to-indesign-swf-files.php?
But they want to get paid for their hard work, the bastards! -
How to add zooming and printing in e-magazine created by indesign?
Could you please give ma an advise me how to add zooming and printing in e-magazine created by indesign? Many thanks
Ooohh... you mean, like the one mentioned in http://indesignsecrets.com/adding-zoom-and-print-to-indesign-swf-files.php?
But they want to get paid for their hard work, the bastards! -
How to add depreciation and interest in product costing?
how to add depreciation and interest in standard cost estimate and actual costing in product costing ?
Hi,
WHy the admin and sales overhead will be deited to cost of product. The cost of product should include only the factory related direct cost and overhead cost .. not the sales and admin ovehead. exp. for those treat them as period expense and pass on the same to COPa and there those can be analysed there..
I hope i am clear..
Regards
Prabhat -
How to get max and min salary in a table
How to get max and min salary in a table
SQL> select max(sal),min(sal) from emp;
MAX(SAL) MIN(SAL)
5512 800
SQL> -
In the Funtion Module: SO_NEW_DOCUMENT_ATT_SEND_API1- How to add TO and CC email ids?
In the TABLE parameter RECEIVERS, there is field RECEIVER where we pass email ids and field COPY which should be 'X'.
But my concern is how will it distinguish that which email ids should be in TO and which should b in CC?
Kindly help. Thanks in advance.
Thanks & Regards,
Anindita GhoshHello Anindita,
Say you need to send mail to 2 receivers and the 1st one is TO and the second is CC.
Just create 2 entries in the internal table of type SOMLRECI1.
wa_receiver-receiver = <email id of TO>
wa_receiver-express = 'X'.
wa_receiver-rec_type = 'U' (if sending to an external internet id - yahoo,gmail etc)
append wa_receiver to it_receiver.
clear wa_receiver.
wa_receiver-receiver = <email id of CC>
wa_receiver-express = 'X'.
wa_receiver-rec_type = 'U' (if sending to an external internet id - yahoo,gmail etc)
wa_receiver-copy = 'X'.
append wa_receiver to it_receiver.
clear wa_receiver.
Hope this helps
Regards
Sachin -
Time difference in both hours and mins
I have used below code in column formula(OBIEE 10g)
TimestampDiff(SQL_TSI_Hour, TIMESTAMP'1998-07-31 23:35:00', TIMESTAMP'2000-04-01 14:24:00')
The result I am getting in hours. But I would like the output to be both hour and mins .
Is there any possibility to get the output this way. I have used the option decimal points
present in column properties but its not working.
The output is 3.00(Here 3 being hours)
The output requrired is 3.27(Here 3 bening hour and 27 being mins)
With above code I can only get hours.If I do on Minutes it is only showing minutesHi,
Use the following formula:
TRIM(BOTH ' ' FROM CAST(FLOOR(TimestampDiff(SQL_TSI_Minute, TIMESTAMP'2000-04-01 13:00:00', TIMESTAMP'2000-04-01 16:37:00')/60.00) AS CHAR)) || '.' || CAST(MOD(TimestampDiff(SQL_TSI_Minute, TIMESTAMP'2000-04-01 13:00:00', TIMESTAMP'2000-04-01 16:37:00'),60.00) AS CHAR)
This will give you 3.37 as a CHAR. You can cast it back to an INT if needed.
The trim has been used as CAST from INT to CHAR gives trailing spaces in 10g.
Hope this helps.
Gaurav -
How to get Max and Min in one line .
Hi Guys
I know the program which I did is stupid .. I am getting the result for max and min value?
But I how can I get the value of km, h, lit in one line
Equno..max_date,min_date,min_value_km..max_value_km....min_value_h...max_value_h...min_value_l...max_value_l
with my program i am getting the vlaue of max and min value but not in one line.
the main parameter is recdu which is KM,L,H
Can anyone tell me the logic please
REPORT ZFUEL LINE-SIZE 200 LINE-COUNT 75
NO STANDARD PAGE HEADING.
TABLES : equi,
equz,
imptt,
imrg,
eqkt,
iloa.
Type Declaration
TYPES: BEGIN OF ty_data ,
equnr type equnr, " Euipment no
eqktx type eqkt-eqktx, " Equipment Text
eqfnr type iloa-eqfnr, " Equipment Sort field
idate type imrg-idate, " Measuring Date
recdu type imrg-recdu, " Unit of measuring ='KM','L','H'
recdv type imrg-recdv, " Counter reading data
END OF ty_data.
TYPES: BEGIN OF ty_final,
equnr type equnr, " Equipment no
eqktx type eqkt-eqktx, " Equipment Text
eqfnr type iloa-eqfnr, " Equipment Sort field
min_date type imrg-idate, " Min Date
min_km type p decimals 2, " Max Km
max_km type p decimals 2, " Min km
t_max_min_km type i, " Total min_km-max_km
max_date type imrg-idate, " Max Date
min_hr type imrg-recdv, " Max hr
max_hr type imrg-recdv, " Min hr
t_max_min_hr type i, " Total min_hr-max_hr
min_lit type imrg-recdv, " Max lit
max_lit type imrg-recdv, " Min lit
t_max_min_lit type i, " Total min_lit-max_lit
fuel_con type p decimals 2, " Total_hrs / t_max_min_hr
km_l type p decimals 2, " km / L
lit_per_hr type i , " fuel comsumed / t_max_min_hr
END OF ty_final.
DATA: i_data TYPE TABLE OF ty_data, " internal table
wa_data TYPE ty_data, " work area
i_final TYPE TABLE OF ty_final, " internal table
wa_final TYPE ty_final. " work area
data: begin of itab occurs 0,
num type i,
end of itab.
data: v_min_1 type i,
v_max_1 type i,
min_km like imrg-recdv,
max_km like imrg-recdv,
min_l like imrg-recdv,
max_l like imrg-recdv,
max_dt like imrg-idate,
min_dt like imrg-idate,
t_ma_mi type p decimals 2,
V1 LIKE IMRG-RECDV ,
V2 LIKE IMRG-RECDV .
SELECTION-SCREEN BEGIN OF BLOCK blk WITH FRAME.
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: p_equnr FOR equi-equnr ,"no-extension no intervals,
p_idate FOR imrg-idate. "NO-EXTENSION NO INTERVALS OBLIGATORY,
"p_recdu FOR imrg-recdu NO-EXTENSION NO INTERVALS default 'KM' OBLIGATORY.
SELECTION-SCREEN END OF BLOCK blk1.
SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
SELECTION-SCREEN END OF BLOCK blk2.
SELECTION-SCREEN END OF BLOCK blk.
TOP-OF-PAGE.
FORMAT INTENSIFIED ON.
WRITE:/1(40) ' INVESTMENT LIMITED '.
WRITE:/50(40) ' FUEL CONSUMPTION REPORT ' CENTERED ,
2 'Page', sy-pagno.
FORMAT INTENSIFIED OFF.
WRITE:/50(40) '----
' CENTERED .
FORMAT INTENSIFIED ON.
WRITE:/2 sy-datum COLOR 3, sy-uzeit .
"WRITE:/1 S903-SPMON ."p_yearf.
ULINE.
"CENTERED.
write: /2 'Date From :'.
write: /2 'Equipment No :'.
write: /2 'Unit :'.
SKIP.
ULINE.
WRITE:/1 sy-vline,
2 'EQUIP NO', 10 sy-vline,
11 'NAME', 40 sy-vline,
41 'min date', 50 sy-vline,
51 'max date', 60 sy-vline,
61 'min km', 70 sy-vline,
71 'max km' , 80 sy-vline,
81 't_max_min_km', 90 sy-vline,
91 'min hr', 100 sy-vline,
101 'max hr', 110 sy-vline,
111 't_max_min_hr' , 120 sy-vline,
121 'min lit', 130 sy-vline,
131 'max lit', 140 sy-vline,
141 't_max_min_lit', 150 sy-vline,
151 'fuel con', 160 sy-vline,
161 'km_l', 170 sy-vline,
171 'lit_per_hr', 180 sy-vline.
FORMAT COLOR 3 ON.
ULINE.
END-OF-PAGE.
START-OF-SELECTION.
select aequnr deqktx feqfnr eidate erecdu erecdv
into table i_data
from equi AS a
inner join equz as b
on aequnr = bequnr
inner join iloa as f
on biloan = filoan
inner join imptt as c
on aobjnr = cmpobj
inner join eqkt as d
on aequnr = dequnr
inner join imrg as e
on epoint = cpoint
where a~equnr in p_equnr
and
e~idate in p_idate
and
e~recdu = 'KM'.
SORT i_data BY equnr idate descending .
loop at i_data into wa_data.
max_km = wa_data-recdv.
min_km = wa_data-recdv.
at new equnr.
read table i_data into wa_data index sy-tabix.
write:/ wa_data-equnr, wa_data-eqktx ,wa_data-eqfnr ,wa_data-idate ,'MAX KM',max_km EXPONENT 0 DECIMALS 2 color 7,wa_data-recdu .
endat.
at end of equnr.
read table i_data into wa_data index sy-tabix.
write:/ wa_data-equnr, wa_data-eqktx ,wa_data-eqfnr ,wa_data-idate ,'MIN KM', min_km EXPONENT 0 DECIMALS 2 color 7, wa_data-recdu .
endat.
at end of equnr.
write: / '----
write: /50(80) 'Subtotal' COLOR 4 .
write:/ '----
endat.
endloop.
select aequnr deqktx feqfnr eidate erecdu erecdv
into table i_data
from equi AS a
inner join equz as b
on aequnr = bequnr
inner join iloa as f
on biloan = filoan
inner join imptt as c
on aobjnr = cmpobj
inner join eqkt as d
on aequnr = dequnr
inner join imrg as e
on epoint = cpoint
where a~equnr in p_equnr
and
e~idate in p_idate
and
e~recdu = 'L'.
SORT i_data BY equnr idate descending .
loop at i_data into wa_data.
max_km = wa_data-recdv.
min_km = wa_data-recdv.
at new equnr.
read table i_data into wa_data index sy-tabix.
write:/ wa_data-equnr, wa_data-eqktx ,wa_data-eqfnr ,wa_data-idate ,'MAX LIT',max_km EXPONENT 0 DECIMALS 2 color 7,wa_data-recdu .
endat.
at end of equnr.
read table i_data into wa_data index sy-tabix.
write:/ wa_data-equnr, wa_data-eqktx ,wa_data-eqfnr ,wa_data-idate ,'MIN LIT', min_km EXPONENT 0 DECIMALS 2 color 7, wa_data-recdu .
endat.
at end of equnr.
write: / '----
write: /50(80) 'Subtotal' COLOR 4 .
write:/ '----
endat.ENDLOOP.
select aequnr deqktx feqfnr eidate erecdu erecdv
into table i_data
from equi AS a
inner join equz as b
on aequnr = bequnr
inner join iloa as f
on biloan = filoan
inner join imptt as c
on aobjnr = cmpobj
inner join eqkt as d
on aequnr = dequnr
inner join imrg as e
on epoint = cpoint
where a~equnr in p_equnr
and
e~idate in p_idate
and
e~recdu = 'H'.
SORT i_data BY equnr idate descending .
loop at i_data into wa_data.
max_km = wa_data-recdv.
min_km = wa_data-recdv.
at new equnr.
read table i_data into wa_data index sy-tabix.
write:/ wa_data-equnr, wa_data-eqktx ,wa_data-eqfnr ,wa_data-idate ,'MAX H',max_km EXPONENT 0 DECIMALS 2 color 7,wa_data-recdu .
endat.
at end of equnr.
read table i_data into wa_data index sy-tabix.
write:/ wa_data-equnr, wa_data-eqktx ,wa_data-eqfnr ,wa_data-idate ,'MIN H', min_h EXPONENT 0 DECIMALS 2 color 7, wa_data-recdu .
endat.
at end of equnr.
write: / '----
write: /50(80) 'Subtotal' COLOR 4 .
write:/ '----
endat.
endloop.Hi Guys
How can I split the max and min value with if condition for KM L AND H as below
I am getting the km value correctly but rest fields for L and H (lit and hours) it is not ?
Please comment.
*APPEND wa_data to i_data.
SORT i_data BY equnr idate descending .
loop at i_data into wa_data.
if wa_data-recdu = 'KM'.
max_km = wa_data-recdv.
min_km = wa_data-recdv.
endif.
if wa_data-recdu ='H'.
max_h = wa_data-recdv.
min_h = wa_data-recdv.
endif.
if wa_data-recdu ='L'.
max_l = wa_data-recdv.
min_l = wa_data-recdv.
endif.
at new equnr.
read table i_data into wa_data index sy-tabix.
write:/ wa_data-equnr, wa_data-eqktx ,wa_data-eqfnr ,wa_data-idate ,
'Min KM',min_km EXPONENT 0 DECIMALS 2 color 7 ,
'Min H',min_h EXPONENT 0 DECIMALS 2 color 7 ,
'Min L',min_l EXPONENT 0 DECIMALS 2 color 7.
endat.
at end of equnr.
read table i_data into wa_data index sy-tabix.
write:/ wa_data-equnr, wa_data-eqktx ,wa_data-eqfnr ,wa_data-idate ,
'Max KM', max_km EXPONENT 0 DECIMALS 2 color 7,
'Max H', max_h EXPONENT 0 DECIMALS 2 color 7,
'Max L', max_l EXPONENT 0 DECIMALS 2 color 7.
endat.
regards
Piroz -
How to Add Header and Footer in Flat file
HI All,
I am using ODI 11g.
MY interface is populating data from joining to 2 tables through sql query and Loads in to Flat file.
But i need to add Header and Footer in the Flat file.
In the below 3 lines
The 1st line is header ....2nd line is Data ....3rd line is Footer.
Any ideas how to work on this.
HSB9KT.KTPRTO.EBSDATA.D0000000 20120626020636
CFFE00263 SOLGSR014991340000527894536058173880207SOLNE06242012072420120000009048382650000247MRS
T00000000000000000000
Thanks,
LonyHi Drieux,
i am able to add Header and Footer in this.
But i want the header like Its like HSB9KT.KTPRTO.EBSDATA.D0000000 || SYSDATE (YYYYMMDDHHMMSS)
In my Out put i only see header as HSB9KT.KTPRTO.EBSDATA.D0000000 .
I have added a Variable where i am using SELECT to_char(sysdate,'YYYYMMDDHHMMSS') FROM DUAL query.
create header (HSB9KT.KTPRTO.EBSDATA.D0000000 #v_DATE)
/*$$SNPS_START_KEYSNP$CRDWG_TABLESNP$CRTABLE_NAME=FFT_SOLSNP$CRLOAD_FILE=/home/tarak/FFT_SOL.datSNP$CRFILE_FORMAT=FSNP$CRFILE_SEP_FIELD=0x0009SNP$CRFILE_SEP_LINE=0x000ASNP$CRFILE_FIRST_ROW=0SNP$CRFILE_ENC_FIELD=SNP$CRFILE_DEC_SEP=SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=descrSNP$CRTYPE_NAME=STRINGSNP$CRLINE_OFFSET=1SNP$CRLENGTH=994SNP$CRPRECISION=994SNP$CR$$SNPS_END_KEY*/
Any idea why this sysdate part is not showing in Header. -
How to add image and videos in jframeusing netbeans..
hi. im using netbeans where you can create a jframe form by just dragging and dropping items... can someone help me how to add an image? what item should i drag onto my jframe? help me pleasee...
demo:
import java.net.*;
import javax.swing.*;
public class ImageExample implements Runnable {
public void run() {
URL url = null;
try {
url = new URL("http://blogs.sun.com/roller/resources/jag/SouthParkJAG-small.png");
} catch (MalformedURLException e) {
throw new RuntimeException(e);
JFrame f = new JFrame();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.getContentPane().add(new JLabel(new ImageIcon(url)));
f.pack();
f.setLocationRelativeTo(null);
f.setVisible(true);
public static void main(String[] args) {
SwingUtilities.invokeLater(new ImageExample());
} -
How to add tab and field in purchase order
hi friends,
I have to make changes in the purchase order. i have to add tab and a field in that.
i know that badi ME_GUI_PO_CUST have to used this.
can anyone send me the code or documenation fot add a tab and field using this badi or suggest me how to do this.
if code or documenation is not available then send me the steps if possible.
my mail id is [email protected]
[email protected]
hitesh kumarHi,
1. Double-click on your implementation class
2. Click on Attributes tab
3. Add attribute SUBSCREEN1 with level Constant, visibility Public, type MEPO_NAME, initial value 'HDRSCREEN1'.
please go thourhg the below link .... in this the steps are there and the some of the standard Enchancements also there.
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
See this treads :
ME_PROCESS_PO_CUST header n item connection
Re: BADI IF_EX_ME_PROCESS_PO_CUST~PROCESS_SCHEDULE
<b>Reward points</b>
Regards -
How to add Terms and Conditions in Standard PO XSL-FO template
Hi all,
I want to add terms and conditions in PO_STANDARD_XSLFO template....
anyone has idea how to do it...
In the template one place is given to add Terms and Conditions, but i am not able to use it.....
Regards
RaviYou are not getting my question Vicha... I am explaining you.....
For POrelated work....
Like SQL,PL/SQL file we keep it in PO_TOP/SQL directory
Shell Scripts file in PO_TOP/bin directory
RDF in PO_TOP/report...directory
Now i am confused here that we have to keep this Terms and Condition file in specific directory under PO_TOP
OR
we can keep it anywhere on Server in any directory.
Regards
Ravi
Maybe you are looking for
-
My mac pro screen has vertical lines... How much does it cost to get it fixed?
-
Running Adobe Acrobat 8.1.2 on Mac Leopard Is there any way to set the marquee zoom tool as the default tool like to be able to open a pdf click an drag to zoom in. Without having to find zoom tool top of page. Can not always keep US Sheetfed Coated
-
Problems with Youtube...and "about this mac"
Hi... all of a sudden... I cant play videos on Youtube... the page comes up fine... but there is no play button showing...so the screen is just black.... this is when I use Safari... no problems when I use google chrome.. to try to fix this I wanted
-
Bi admin process chains- content master data load has failed
Hi Experts, i worked with Bi Admin cockpit set-up, all the things are going fine but Content Master data load (Attribute)has failed and i got the errors like 1)data records for package 1 selected in PSA-2 errors 2)Error 4 in the update can anyone su
-
Hi Guys, I am facing problem in BPS Variables. I created the variables 1.zqbs- employee responsible --->Userentry/default value. 2. zconpar-- contact partner---- > Replacement type is user exit(Function Module) 3. zconpar-- contact partner---- > Rep