Excel import rounding up decimal values

In my excel file I have a column that contains dollars and cents (e.g. 49.95). When I run the import the values in this column are rounded up to the next integer (e.g. 49.95 is rounded up to 50). Is this a bug or am I doing something wrong?
Thanks,
Peter

Hi All,
I have already migrated lakhs of records and I am facing the same problem for decimal value migration. Shall I know whether anyone has fixed this problem? Is there any other free tool for SQL Server to ORACLE migration? Please do guide me as soon as possible.
Thanks,
Srinivasan.T

Similar Messages

  • Rounding a decimal value to 3 digits

    I have opened a UDF and copied the value of Total (LC) column in that field. I want to round off the copied value to 2 digits.
    Below is the query written to copy the value.
    SELECT ($[$38.21.NUMBER] * $[$38.U_GST.1.11]) / 100
    Below is the query written to ROUND the value.
    SELECT ROUND(($[$38.21.NUMBER] * $[$38.U_GST.1.11]) / 100, 2)
    Thanks & Regards,

    Try: SELECT ROUND(($[$38.21.NUMBER\] * $[$38.U_GST.NUMBER\]) / 100, 3)
    However, I think it is probably not working because B1 has internal checking to make sure the decimal value follow your setting. If you setup your currency by 2 decimals, you may never get any additional decimal place.
    Thanks,
    Gordon

  • 1.5.1: Excel import - Problem with NULL values in date fileds

    Hi,
    I'm trying to import Excel Data via CSV with the import into table feature of SQLDeveloper.
    Everything works fine, but if I select some of my date colums I get an error telling me that I have null or invalid values in a date column:
    Verifying if the Date columns have date formats
    FAILED
    Date columns SOA_CONTROLLING_NO, SOA_DATE_OF_CONTROLLING, PAYOUT_ME_2_SUM, PAYOUT_ME_1_SUM, PAYOUT_PLUS_SUM, PAYOUT_6_SUM, PAYOUT_5_SUM, PAYOUT_4_SUM, PAYOUT_3_SUM, PAYOUT_2_SUM, PAYOUT_1_SUM, CONTRACT_APPENDIX_SUM, CONTRACT_BASE_SUM, ME_CONVENANT_SUM, REF_SUM_NO_REPAY, SEL_CONVENANT_SUM, ME_REQ_SUM, REF_REQ_SUM_NO_REPAY, SEL_REQ_SUM,  have invalid or null date formats
    I tried:
    +20012121313,demo1,,+
    +20012121313,demo1,NULL,+
    +20012121313,demo1,to_date(NULL),+
    but none of them worked...
    How may I import those columns, where some of the rows contain NULL values?
    Same story using 1.5... ;-(
    Thank you!
    Best regards,
    Johann

    Look at the query Andy proposed:
    SELECT NULL LINK, start_date, NVL(sum_of_trans, 0) + 0.001 VALUE
      FROM (SELECT   TRUNC (startdate) start_date,
                     CASE
                        WHEN :p9_view_by = 1
                           THEN ROUND (DURATION / 60, 3)
                        ELSE 1
                     END sum_of_trans
                FROM TRANSACTION
               WHERE trans_id = x AND startdate BETWEEN y AND z
            GROUP BY TRUNC (startdate)) xDoes this query deliver anything?
    Denes Kubicek

  • Round up decimal value

    Hi Guru,
    Good day.
    I have 5 output as bellow:
      .15       2.2     1 .4       14.8    .43
    I need to show them like bellow:
       1        3        2          15         1
    how can i get the desired output.
    please help me.
    With thanks
    Moshiur
    Moderator Message: Very basic question. Could be answered with a simple search and/or a few lines of code.
    Edited by: kishan P on Sep 18, 2010 4:05 PM

    Hi  moshiur sohel,
    Use FM 'ROUND' to round any value. Your scenario is of Positive rounding, for that give SIGN parameter as '+'.The following is the example code.
    PARAMETER P_VAL TYPE P DECIMALS 2.
    CALL FUNCTION 'ROUND'
      EXPORTING
    *   DECIMALS            = 0
        INPUT               = P_VAL
       SIGN                = '+'
    IMPORTING
       OUTPUT              = P_VAL
    EXCEPTIONS
       INPUT_INVALID       = 1
       OVERFLOW            = 2
       TYPE_INVALID        = 3
       OTHERS              = 4
    Close the thread if you have solved your query.
    Thanks & Regards,
    Rock.

  • Rounding of decimal values into XML using DOM

    I want to roundoff 10.456 to 10.4(while generating the xml) using DOM.
    Please let me know how to handle this?
    Thanks in advance

    read the java.lang.Math API
    there are rounding functions there
    and next time please just use a search engine

  • Round Decimal value based on last digit

    Hi Experts,
    I'm trying to round the decimal value based on its last digit. If the last digit is >5 then add +1 to the digit before that and remove the last digit else just remove.
    ie.
    -59664.15000000005 should become -59664.15
    -21308625.00000002 should become -21308625
    -85234500.00000006 should become -85234500.0000001
    18288102.85714287 should become 18288102.8571429I tried with Round Function but it did not help,
    Pls assist.
    Thanks!

    Got it done just took the length and did the change.. sorry for this lame question.. should have tried before posting the question. Tx for your time...

  • How to make the Decimal values into Round off value

    Hi Experts,
    I have an internal table with 3 columns, the 3rd column having decimal values, Now i want to convert the values in to whole number, Ex: 15.67 will be 15.7
    Anyone plz help this.
    Mohana

    hii
    use following code
    DATA:
      wa_val type p decimals 2,
      L_ANDEC     like T006-ANDEC value 1,
      wa_val2 type p decimals 1.
      wa_val = '15.67' .
      CALL FUNCTION 'ROUND'
        EXPORTING
         DECIMALS            = L_ANDEC
          input              = wa_val
          SIGN                = '+'
       IMPORTING
         OUTPUT              = wa_val2
       EXCEPTIONS
         INPUT_INVALID       = 1
         OVERFLOW            = 2
         TYPE_INVALID        = 3
         OTHERS              = 4
    WRITE:/ wa_val2.
    regards
    twinkal

  • Rounding off to a variable value to 4 decimal values in sap script ouput

    Hi All,
    I have a value getting displayed in sap script output as 235.6789 i want to Round off this variable value to 4 decimal values!
    What is the formatting option need to be used & how!
    Thanks in advance.
    Thanks,
    Deep.

    Hi,
    1.In layout just call that variable, where you need like:
    &variable(.4)&.
    Just see these:
    &symbol(Z)&  Omit Leading Zeros 
    &symbol(S)&  Omit Leading Sign 
    &symbol(<)&  Display Leading Sign to the Left 
    &symbol(>)&  Display Leading Sign to the Right 
    &symbol(C)&  Compress Spaces 
    &symbol(.N)&  Display upto N decimal places 
    &symbol(T)&  Omit thousands separator 
    &symbol(R)&  Right justified 
    &symbol(I)&  Suppress output of the initial value
    Regards,
    If helpful reward with points(Don't forget).

  • Excel import With Sequance Value

    Hi
    I need to import data From Excel, but how i can set primary key from a Sequence value??

    You do it from outside the Excel -> Import wizard in SQL Developer.
    Define your table so your column is populated by a sequence. You can do this via an INSERT TRIGGER.
    When you define your Import scenario, leave the ID field alone, i.e. set it such that no values are passed, then your trigger will fire and the sequence.nextval will be used.

  • ALV: issue in truncating decimal values (rounding up)

    Hi,
    I have been receiving a problem truncating decimal values in alv environment using this abap code.
    WRITE gwa_komv-kwert TO gv_out_tax CURRENCY rte0143sf-currency
            DECIMALS l_decimals LEFT-JUSTIFIED.
    where l_decimals = 0.
    More exactly the value is rounded up but this is not my expectation.
    Any idea?
    Thanks.
        Giovanni

    Standard behaviour with DECIMALS 0: rounding up or own.
    And when you use the addition DECIMALS, then the CURRENCY addition is ignored as well.

  • Any function module to round of a value to two decimal places?

    Hi gurus,
    Any function module to round of a value to two decimal places?

    Hi,
    you can use FM 'ROUND'.
    Thanks.

  • Round a double value to a specific number of decimal places?

    Hello,
    Is there standard java function which will round a double value to a specified number of decimal places? Something like:
    double d = 4.34523;
    d = round(d, 2);
    where d is finally assigned the value of 4.34?
    Thanks!
    -exits

    No, because doubles hold values in binary (as do all values in a computer, of course, but there's no additional stuff to indicate decimal values).
    If you want values with specific rounding rules in decimal, use java.math.BigDecimal.
    If you just want to format the number with a specified number of decimal digits, use java.text.DecimalNumber.

  • BPEL round function with precision for a decimal value?

    Dear All,
    I need to do a rounding of a higher value to 3 precisioned one.
    As per the round function available in Jdeveloper, I can only round a decimal to its respective integer value.
    But my requirement is to retain the decimal value, but with a limited precision value...
    How can I accomplish this.. Is there any extension of round function in BPEL to do this...?
    Please update..
    Many thanks...

    Use the function format-number(variable,precision_num)+.
    Thanks,
    Sen

  • Issue in Decimal value round off

    Hi All, I am facing an issue wherein Decimal value of 0.01 is getting converted to 0.00. Let me brief you about Source-target Types -  Source - Flat FileTarget - DB2Powercenter Version - 9.6.1 HF2 Issue -  Field in Source File is defined as Number(5,2).Corrosponding field from Db2 Target Table is defined as Decimal(5,2). Mapping is simple straight forward mapping with 1:1 loading from Source to target. Now, my Source File contain data as below -  0.010.020.0312.01 When I execute mapping, DB2 target Table gets loaded with all records.Value from corrosponding DB2 Target Table is -  0.000.020.0312.01 As you can see value of 0.01 is getting converted to 0.00 whereas all other values are working fine as expected. As a quick fix, I have applied to_decimal(source_field,2) before loading it to target. Could anyone please explain if this is an issue with Powercenter or there's some other issue. If I think it's a rounding issue then how come value of 0.02 is working fine? Please advise.

    Hi All,  I have one scenario to read the source file . The file delimiter is '|' . The no of pipeline for each line is 17. So if a line containing more than 17 , send an error email. For this first i am printing tota pipeline in ecah line to afile called pipelinecount.txt . Then i will read this file and send each value to while loop /for loop , where it will get > 17 , it will exit the process and send an email.  But here in script i am getting error at while line. Could anyone help.   #! /bin/kshset -x SOURCE_DIR=/vp01/SrcFilessed 's/[^|]//g' /vp01/SrcFiles/Test.txt | awk '{ print length }'> /vp01/SrcFiles/pipelinecount.txtcd $SOURCE_DIRwhile line in `cat pipelinecount.txt`; do if [ $line -eq 17 ];thenecho "No issue in pipeline"exit 0;fiif [ $line -gt 17 ];thenecho "No of pipelines exceeded the expected. Please verify the source file." | mailx -s "WKFS Load: Failed" [email protected]

  • Re: Issue in Decimal value round off in DB2

    Hi All, It is happening only only when the decimal separator of source is ',' and behaving normally when decimal separator is '.'. Some how ..we casted the incoming field to TO_DECIMAL(IN_FIELD,2) ..in that case it is working fine.  Regards,Srinivas

    Hi All, I am facing an issue wherein Decimal value of 0.01 is getting converted to 0.00. Let me brief you about Source-target Types -  Source - Flat FileTarget - DB2Powercenter Version - 9.6.1 HF2 Issue -  Field in Source File is defined as Number(5,2).Corrosponding field from Db2 Target Table is defined as Decimal(5,2). Mapping is simple straight forward mapping with 1:1 loading from Source to target. Now, my Source File contain data as below -  0.010.020.0312.01 When I execute mapping, DB2 target Table gets loaded with all records.Value from corrosponding DB2 Target Table is -  0.000.020.0312.01 As you can see value of 0.01 is getting converted to 0.00 whereas all other values are working fine as expected. As a quick fix, I have applied to_decimal(source_field,2) before loading it to target. Could anyone please explain if this is an issue with Powercenter or there's some other issue. If I think it's a rounding issue then how come value of 0.02 is working fine? Please advise.

Maybe you are looking for

  • HOW CAN I ADD/UPDATE/INSERT IN A USER TABLE WITH MATRIX

    Hi All, I have one User table (Defined as No Object) and what i need to do is a form with a matrix to Add/Update/Delete data in my user table. I already create the form and the matrix that already give me the user table data. But now i have several p

  • Calender display in ALV Grid

    Hi, I need to call calender up on clicking the cell in my ALV Report. How can I do this ? Can you please help

  • With ios 7, going to safari I am asked to authenticate  with name and password

    In  trying to open safari I am asked to authenticate with ID and passsword. Which ID and passeord?  Why was this not asked in ios 6?

  • 30EA2 Code completion weirdness

    Start with this in the worksheet: select ai, i, sum(e), sum(n) from cp_2 group by ai, i; Start type ", sum(" at the end of the line. I have got several results, depending I suppose, on typing pauses. For some reason additions are made to the "group b

  • Iweb not establishing a connection

    I am trying to upload my website to a ftp that has worked without a problem in the past.  I keep getting a message that says it can not establish a connection.  I have verified the information for the ftp and it is all correct.  My hosting company ha