+ Reply to Thread
Results 1 to 14 of 14

How to make a chart with the dater in the middle and expanding left and right.

  1. #1
    Registered User
    Join Date
    02-05-2021
    Location
    Ottawa, Ontario
    MS-Off Ver
    2013
    Posts
    48

    How to make a chart with the dater in the middle and expanding left and right.

    I am trying to make a chart that expand from the center to right and left. The idea is, the data would go into the center pole and if the number increases then a bar would aromatically expand out to the left or right. I have a sample sheet to help clarify this.

    Let me know if this is possible please.
    Attached Files Attached Files

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: How to make a chart with the dater in the middle and expanding left and right.

    I am correctly understand.
    If Y values increase, X-Axis should expand from -X to X.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Registered User
    Join Date
    02-05-2021
    Location
    Ottawa, Ontario
    MS-Off Ver
    2013
    Posts
    48

    Re: How to make a chart with the dater in the middle and expanding left and right.

    I am not sure I understand your question. But if the vertical is Y and horizontal is X. Then if 5 ones comes in then X would have a bar going from 1 going to the right and stop at 5.
    I hope this make it clearer.

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: How to make a chart with the dater in the middle and expanding left and right.

    Maybe something like:

    Please Login or Register  to view this content.
    and connect it into Worksheet_Change with range of Y values.

    Increase Y value in yellow cells on attached file and check how Xaxis is expanded or shrink.
    Attached Files Attached Files
    Last edited by KOKOSEK; 04-20-2021 at 09:08 AM. Reason: replace attachemtn

  5. #5
    Registered User
    Join Date
    02-05-2021
    Location
    Ottawa, Ontario
    MS-Off Ver
    2013
    Posts
    48

    Re: How to make a chart with the dater in the middle and expanding left and right.

    KOKOSEK I have no idea what you gave me or how to put this thing to work. But I did learned something. I have to think this thing through a little more. So let me do that and get back to you.

  6. #6
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: How to make a chart with the dater in the middle and expanding left and right.

    Bar expand in both sides now, depends of vertical value.
    Analyse ranges and vba code.


    p.s. server works very slow today? Or it is only my issue.
    Attached Images Attached Images
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-05-2021
    Location
    Ottawa, Ontario
    MS-Off Ver
    2013
    Posts
    48

    Re: How to make a chart with the dater in the middle and expanding left and right.

    Hear is a much better idea of what I am doing. I have attach a file the same name.
    Attached Files Attached Files

  8. #8
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: How to make a chart with the dater in the middle and expanding left and right.

    Sorry I do not get it. Maybe somebody else can help.

  9. #9
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: How to make a chart with the dater in the middle and expanding left and right.

    So you are looking for a column chart (histogram) that shows how often each number (1-50) shows up in the MAX.xlsx workbook? You are using the COUNT() function to count the frequencies (a FREQUENCY() or COUNTIFS() function or even a pivot table might be easier in the long run for the counting step). At this point, it seems like it should be as easy as:
    1) Select A4:AX5
    2) Insert a column chart that uses row 4 as the horizontal category x axis values and row 5 as the vertical axis y values. You may need to use the Select Data Dialog after chart creation if Excel's default choices do not reflect this.
    3) Format any chart elements as desired. For example, it sounds like you want the vertical axis to cross at the number 15 (category 15), so format the horizontal axis and set the "vertical axis crosses at" property to by category 15.

    Did I understand correctly what you are trying to do?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  10. #10
    Registered User
    Join Date
    02-05-2021
    Location
    Ottawa, Ontario
    MS-Off Ver
    2013
    Posts
    48

    Re: How to make a chart with the dater in the middle and expanding left and right.

    Yes you seem to have a pretty good idea of what I am doing. I notice you mentioned the FREQUENCY(). I do not know how to use that function and maybe that would work much better.

    But now I am confuse and don't know what to do. Now the chart do not have to be left and right, it could top and bottom, if that's easier.

  11. #11
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: How to make a chart with the dater in the middle and expanding left and right.

    Help file for the FREQUENCY() function: https://support.microsoft.com/en-us/...7-fd9ea898fdb9 I don't know that it works "better" -- it really depends on what is going on in MAX.xlsx and other parts of how you intend to obtain these counts. Your OP is asking about the chart creation, so I think we are assuming that you know how to do the counting part of the overall task. We can talk about the counting step, if you want, but you have not shared anything about how you intend to do the counting step.

    Column chart (left right) or bar chart (up down) doesn't really matter. They are effectively the same difficulty. It's just a matter of which you select when you create the chart.

    Without knowing exactly what you are trying to do, I'm not sure what to recommend. The kind of chart you are describing seems quite similar to a histogram. Perhaps this short tutorial about building a histogram using the FREQUENCY() function and a column chart will help: https://exceljet.net/formula/histogram-with-frequency

  12. #12
    Registered User
    Join Date
    02-05-2021
    Location
    Ottawa, Ontario
    MS-Off Ver
    2013
    Posts
    48

    Re: How to make a chart with the dater in the middle and expanding left and right.

    The counting part I know how to do that I just need to chart it now.

  13. #13
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: How to make a chart with the dater in the middle and expanding left and right.

    So we can focus on the chart, then. If you start with your file in post #7 and add a column chart as I outline in post #9, do you get something that make sense? What do you like about it? What do you wish it showed differently?

  14. #14
    Registered User
    Join Date
    02-05-2021
    Location
    Ottawa, Ontario
    MS-Off Ver
    2013
    Posts
    48

    Re: How to make a chart with the dater in the middle and expanding left and right.

    I was looking on how to create chart in excel and I think I might be able to figure it out. I will try this and get back to you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Index, Match, left and middle equations
    By zeez36 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-01-2020, 07:34 AM
  2. Issue with left formula - need to get characters in the middle
    By cchap in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-03-2016, 10:05 AM
  3. Position shape to middle left of cell
    By biznez in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2016, 11:36 AM
  4. [SOLVED] How to make Chart Tick Labels Alignment to Left?
    By HerryMarkowitz in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 08-29-2015, 05:06 AM
  5. [SOLVED] Formula wanted to extract the middle, not the Left and Right bits.
    By rbion in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 08-02-2012, 03:28 PM
  6. trim, left, right, middle
    By sarahkatt in forum Excel General
    Replies: 1
    Last Post: 03-16-2011, 02:13 PM
  7. Replies: 4
    Last Post: 01-12-2011, 11:17 AM

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