Results 1 to 3 of 3

CSV: Long Number Scientific Notation issue

Threaded View

  1. #1
    Registered User
    Join Date
    10-04-2019
    Location
    Abu Dhabi, UAE
    MS-Off Ver
    2019
    Posts
    5

    CSV: Long Number Scientific Notation issue

    Hi All,

    I'm working on a master sheet which contains 50,000 users that belong to 140 departments. So I split them to 140 worksheets using this script:-

    Sub SplitandFilterSheet()
    
    Dim Splitcode As Range
    Sheets("Master").Select
    Set Splitcode = Range("Splitcode")
    
    For Each Cell In Splitcode
    Sheets("Master").Copy after:=Worksheets(Sheets.Count)
    ActiveSheet.Name = Cell.Value
    
    With ActiveWorkbook.Sheets(CStr(Cell.Value)).Range("MasterData")
    .AutoFilter Field:=2, Criteria1:="<>" & Cell.Value, Operator:=xlFilterValues
    .Offset(1, 0).SpecialCells(xlCellTypeVisible).EntireRow.Delete
    End With
    
    ActiveSheet.AutoFilter.ShowAllData
    Next Cell
    End Sub
    Then I save them as seperate CSV files using this script:-

    Sub CreateNewWBS()
    Dim wbThis As Workbook
    Dim wbNew As Workbook
    Dim ws As Worksheet
    Dim strFilename As String
    
        Set wbThis = ThisWorkbook
        For Each ws In wbThis.Worksheets
            strFilename = wbThis.Path & "/" & ws.Name
            ws.Copy
            Set wbNew = ActiveWorkbook
            wbNew.SaveAs strFilename, xlCSVUTF8
            wbNew.Close
        Next ws
    End Sub
    My issue is that the master sheet has one column contains Arabic names and Two others Columns contain long numbers >15. So there are two Scenarios.
    1-When I Save the files as xlCSVUTF8 the Arabic names are OK but Long numbers are converted in e.g. 9.71434E+14.
    2- When I Save the files as xlCSVMac the long numbers are OK ( no scientific notation) but Arabic names are turned into ?????.

    I have tried all the csv format but only UTF 8 accepts arabic.
    Import Text wizard solution is not effective as I have so many files.
    Is there any way to get all the csv files fixed and have Arabic names and numbers OK?

    Thanks
    Last edited by AliGW; 10-05-2019 at 03:16 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Issue with Excel converting value to scientific notation
    By kermit_d_frog in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2019, 09:55 AM
  2. How to turn a scientific notation E number into a string of text?
    By bigscientist in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-24-2019, 06:47 PM
  3. Custom Number format to get scientific notation and percent
    By lwflip in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-14-2012, 09:53 AM
  4. scientific notation
    By jrsmoke in forum Excel General
    Replies: 4
    Last Post: 03-15-2007, 04:37 AM
  5. scientific notation
    By aaron.kempf@gmail.com in forum Excel General
    Replies: 26
    Last Post: 01-09-2006, 03:31 PM
  6. Long numbers show up as Scientific Notation
    By berryware421243 in forum Excel General
    Replies: 5
    Last Post: 02-08-2005, 12:06 AM
  7. convert scientific notation to a number
    By Peter in forum Excel General
    Replies: 1
    Last Post: 01-04-2005, 04:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1