+ Reply to Thread
Results 1 to 31 of 31

Error: "to create this stock chart arrange the data on your sheet in this order"

  1. #1
    Registered User
    Join Date
    05-10-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    39

    Error: "to create this stock chart arrange the data on your sheet in this order"

    Hi.

    I have made a big list of numbers.
    But i can't make a candlestick chart of it.

    A row contains Open
    B row contains High
    C row contains Low
    D row contains Close

    But when i click "create candlestick" picture it's saying "To create this stock chart, arrange the data on your sheet in this
    order: high price, low price, closing price. Use dates or stock names
    as labels"

    Here is an example of my numbers:

    Please Login or Register  to view this content.
    What is the problem?

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    have you read this
    http://www.officetooltips.com/excel/...ock_chart.html
    Last edited by martindwilson; 06-25-2012 at 09:13 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,308

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    Hi persson121,

    See if this attached sample helps. I think you need to select the cells before clicking on Insert Chart.??
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    05-10-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    Yes. I have read that.
    It didn't help me.

  5. #5
    Registered User
    Join Date
    05-10-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    But i've slecting the cells but it's the same story when i press "candlestick" button.
    But I might slecting at wrong way. How do you mean?

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,308

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    In my example I select from A1 to E5 and leave it selected. Then I click on Insert Chart of type Open-High-Low-Close and a chart appears.

  7. #7
    Registered User
    Join Date
    05-10-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    Quote Originally Posted by MarvinP View Post
    In my example I select from A1 to E5 and leave it selected. Then I click on Insert Chart of type Open-High-Low-Close and a chart appears.
    But i use csv file. You use xlxs file.
    I have convert from csv to xlsx now.

    But it's the same.
    Last edited by persson121; 06-25-2012 at 09:57 PM.

  8. #8
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,308

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    Check the numbers in your file or attach a sample. I'd bet they are TEXT and not real numbers. Excel will barf if you try to use text instead of numbers for a chart. Try to add two of them together and see what happens. OR - Convert them in another range by adding zero to all of them to make the numeric.

    Also - don't trust spaces if you are importing into XL. I've seen too many CHR(160) that look like spaces but not. You may have this problem also.

  9. #9
    Registered User
    Join Date
    05-10-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    Try this. I have also tested to remove the date row then make a chart. I didn't work neither.

    http://uppit.com/l50w67sggkah/Copy_o...ge_USDJPY.xlsx

  10. #10
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    persson121 no one is or should click on that link, you can attach a workbook directly to this forum
    go advanced and click the paperclip icon

  11. #11
    Registered User
    Join Date
    05-10-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    Copy of exchange_USDJPY.xlsx

    Here.

    I haveing also to made a script who can delete the date row and makes rows like this
    =TODAY()
    =A1-1
    =A2-2
    etc

  12. #12
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    you obviously didn't check the numbers to see if they were text see sheet 1
    fixed on sheet 2 by adding 0 to all cells try using that as your source
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    05-10-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    Quote Originally Posted by martindwilson View Post
    you obviously didn't check the numbers to see if they were text see sheet 1
    fixed on sheet 2 by adding 0 to all cells try using that as your source
    So in datecolumn it cannot be 2002-03-04 or ######?
    I need the datenumbers. That's why im gonna zoom in to month or years or weeks with it.

    exchange_USDJPY.xlsx

    It's not the same file, but this won't work with a candlestick too. Why?
    Last edited by persson121; 06-26-2012 at 09:21 AM.

  14. #14
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,308

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    Hi persson121,

    Using your file above I added zero to each of the cells and then did an Open, close, high, low chart. See the attached. It seems the entire problem is that your data (or some of it) IS NOT numbers. Excel knows numbers from text and will not do charts with text. See the attached for the answer.
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    05-10-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    Okej. Thanks.

    But how did you write the =A2611+0 etc?`
    Did you use VBA or is it a function at Excel who can do that?
    In A column i write date numbers like 2004-03-20
    In B column i write Open numbers like 234.3
    In C column i write High numbers like 254.3
    In D column i write Low numbers like 233.7
    In E column i write Close numbers like 244.3

    Then i mark it and press "candlestick" button and i get an error. But when you do it, it works.
    I don't realy understanding what you are trying to say with " I added zero to each of the cells ". I cannot se any zero numbers.

    I didn't have any text in my file.xlsx as i know/see.

  16. #16
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    put 0 in a spare cell, copy it select all your numbers, right click paste special /add
    Attached Images Attached Images
    Last edited by martindwilson; 06-26-2012 at 01:08 PM.

  17. #17
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,308

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    The whole answer is that you have text instead of numbers in your cells. They look like numbers but Excel knows the difference. You need to learn how to change or convert those text cells to numbers. Then your candelstick charts will work.

    It is like magic!! If you start with a text of 120 (this is text not a value to excel) and you add zero to it, excel will then know it is a value and change it to a value from text. It looks exactly the same but excel knows it is now a number and not text. When you try to do a chart that has text in it, Excel knows and gives an error message. This is what you are running into.

    Martin is suggesting you use method 4 from http://support.microsoft.com/kb/291047 to convert your text to numbers.

  18. #18
    Registered User
    Join Date
    05-10-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    It worked half ways.
    I have add 0 to the OHLC cloumns, but it's not working.
    I have not add 0 to date columns and the element Open, High, Low, Close

    But still, no candlestick

  19. #19
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    I have not add 0 to date columns and the element Open, High, Low, Close
    why not?
    how many times do you have to be to add 0 to everything.
    test the cells as i did use =istext(a1) if its a number it should say false. come back when all your values show false

  20. #20
    Registered User
    Join Date
    05-10-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    Quote Originally Posted by martindwilson View Post
    why not?
    how many times do you have to be to add 0 to everything.
    test the cells as i did use =istext(a1) if its a number it should say false. come back when all your values show false
    I have done exactly as this one
    http://www.excelforum.com/attachment...9&d=1340730533

    I have only marked the "numbers" like the picture. Then ad it to 0.

  21. #21
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    post your workbook again but have you tested the cells?

  22. #22
    Registered User
    Join Date
    05-10-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    Quote Originally Posted by martindwilson View Post
    post your workbook again but have you tested the cells?
    Yes. I have tested the cells.
    exchange_USDJPY.xlsx

  23. #23
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    where is your test ?
    well they are still text, look here are the results for the first 48 b2:e13 , they should all be false
    now add 0 to d2 the formula in i2 should change to false
    you can see anyway all those aligned left are text all those aligned right are numbers
    Attached Files Attached Files
    Last edited by martindwilson; 06-26-2012 at 03:26 PM.

  24. #24
    Registered User
    Join Date
    05-10-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    Quote Originally Posted by martindwilson View Post
    where is your test ?
    well they are still text, look here are the results for the first 48 b2:e13 , they should all be false
    now add 0 to d2 the formula in i2 should change to false
    you can see anyway all those aligned left are text all those aligned right are numbers
    This is hard! Why cant excel accept this "numbers" just as they are?

    Waint!!!!
    120.34 = text
    120,34 = number

    Im a python coder and i find it more easier to change the text into numbers, but i will learn VBA but it's also hard for me beacuse im new into it. I will upload a new one.

    Now it WORKS!
    It's the same numbers but i change '.' to ','
    But i cannot upload it right now cuz the attachments says "error. Wait an hour".
    Last edited by persson121; 06-26-2012 at 03:46 PM.

  25. #25
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    ah it must be your regional settings you should be able to find . replace with ,
    then again i didnt know hell used , for decimal places, there is a reason that you are asked for your location this is one of them

  26. #26
    Registered User
    Join Date
    05-10-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    Quote Originally Posted by martindwilson View Post
    ah it must be your regional settings you should be able to find . replace with ,
    then again i didnt know hell used , for decimal places, there is a reason that you are asked for your location this is one of them
    By the way.
    When i download the the source i get it from here
    http://www.global-view.com/forex-tra...ory/index.html

    I download EUR/USD
    http://www.global-view.com/forex-tra...0Daily%20Stats

    then i run this code:
    Please Login or Register  to view this content.
    This gives only Date-High-Low-Close
    But in Forex, close = open if it's a daily chart.
    Can i do this in VBA too?

    Here is my new source:
    exchange.xlsx

    How can i zoom into the candlestick? I can only se years in candlesticks.
    Last edited by persson121; 06-26-2012 at 04:20 PM.

  27. #27
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    now you are getting into stuff way out my depth but i think those are 2 new questions really and you should start a thread for each in the appropriate sub forum

  28. #28
    Registered User
    Join Date
    05-10-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    Quote Originally Posted by martindwilson View Post
    now you are getting into stuff way out my depth but i think those are 2 new questions really and you should start a thread for each in the appropriate sub forum
    I have ready did start a new thread
    But thanks for your help. Your long Blueyellow neighborcountry thanking you.

  29. #29
    Registered User
    Join Date
    07-04-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    Hi, im having the same problem; i can't get an OHLC chart up. I've converted the cells and data to numbers, and tested like was said on this thread, but still i get the message "To create this stock chart, arrange the data on your sheet....". Can someone please help me with this, i'm really at a loss here.

    Thanks.

  30. #30
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    jrp1982 please start your own thread linking to this one if necessary.also if you have read this thread you will see a workbook would be helpful

  31. #31
    Registered User
    Join Date
    07-04-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Error: "to create this stock chart arrange the data on your sheet in this order"

    Hi Martin, ive done as suggested. Please have a look when you've got a free min, thanks. JRP

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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