fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    "write to file" is posting all data within 1 column

    Questions & Answers
    5
    6
    1559
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      coinmaster last edited by coinmaster

      I'm trying to use the "write to file" block and all of the 'columns' are posted in the first row.

      alt text

      I know this was a problem a few years ago and the admin fixed it but the problem is back again, unless I'm doing something wrong?

      jstap 1 Reply Last reply Reply Quote 0
      • jstap
        jstap @coinmaster last edited by

        @coinmaster These values are what is called comma separated, am not sure but if this is a CSV then I think this is all you can do. the ; is what is used to separate values (in this case), you can get excel to place each value into separate cells but it's not a simple task.

        |If this helps this is how I get data from a comma separated sheet into another.

        =IFERROR(('C:\Users\Bob\AppData\Roaming\MetaQuotes\Terminal\06980EAAF7FCC460D7BD131105CC3518\MQL4\Files\folder[csv document name]sheet name'!$A2)," ")

        Hope this helps

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

        1 Reply Last reply Reply Quote 0
        • C
          coinmaster last edited by

          But there have been multiple other threads about the 'write to file' block where people show that it writes the data into different columns.

          1 Reply Last reply Reply Quote 0
          • TipsyWisdom
            TipsyWisdom last edited by

            excel has a feature that will allow you to separate similar data in single columns into a column of its own. I know it doesnt help with the initial problem but maybe?

            1 Reply Last reply Reply Quote 0
            • B
              Binzapella last edited by Binzapella

              By breaking the data into separate columns, you'll have more flexibility when working with it in your spreadsheet.

              1 Reply Last reply Reply Quote 0
              • M
                Meissgenry last edited by Meissgenry

                To get the data into separate columns in Excel, you could use the "Text to Columns" feature. In Excel, select the column with the data, go to the "Data" tab, and choose "Text to Columns." Then, just choose the delimiter (in your case, a comma or semicolon) to split the data into multiple columns.

                Alternatively, if you're working with a more complex file structure, you might want to explore using some VBA scripting to automate the process. There are plenty of guides online that walk through the specifics of writing data to a file in a structured format, which might be exactly what you need. For example, you can check out www.myexcelonline.com for some tips on how to manage CSV files and automate data processing in Excel.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post

                Online Users

                A
                A
                Y
                H
                B
                K
                S

                15
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors