+ Reply to Thread
Results 1 to 7 of 7

automatic label in the last entry

  1. #1
    Forum Contributor
    Join Date
    12-17-2019
    Location
    Portugal
    MS-Off Ver
    office 2019
    Posts
    167

    automatic label in the last entry

    hi everyone,

    In the graphic attchament I would like the label for the last entry goes automatic to last entry. In the example the label is on June but July have already a value. How can the label goes automatic to July ??

    thanks for your help.
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: automatic label in the last entry

    In the process of working this out, I somehow destroyed the X-Axis. It shows only every other month.

    What I did was create a second series. Cells E37:G38 contain the calculations.

    Cell G37 has the formula: =MATCH(TRUE,ISNUMBER($Z$6:$Z$143),1) - this is entered as an array formula.

    This cell essentially looks for the value TRUE from the bottom up. TRUE first appears where there is a number instead of N/A - In this case it is found in row 109 of the data (which is physical row 114) - This is what makes the formula dynamic.

    Cell G38 has the formula =INDEX($Z$6:$Z$143,G37,1) - this formula gets the value associated with this row number

    This information is entered as a second series (X-Y Scatter Plot) in the chart as shown in the image.
    Attached Images Attached Images
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Contributor
    Join Date
    12-17-2019
    Location
    Portugal
    MS-Off Ver
    office 2019
    Posts
    167

    Re: automatic label in the last entry

    Thanks for your help. I try do make what you tell me but I have a problem to make the serie with X and Y. When I tell to make a new Serie only open "Series name" and "Serie X values". What I must do to appear also Series Y Values ?
    thanks again.

  4. #4
    Forum Contributor
    Join Date
    12-17-2019
    Location
    Portugal
    MS-Off Ver
    office 2019
    Posts
    167

    Re: automatic label in the last entry

    Thanks again for your help.
    I make it as you tell and Works !
    But in the example I send you with a graph with 2 different values (1 e 2) , when I try to add a new value for values 2 it comes with the Serie X and Y and I just want with the X to selet the values. SOmetimes is need to have X and Y another times is only need the X. How can we open with both or only the X ???
    My problem is select in "2" the values because appers the Y also.
    Attached Files Attached Files

  5. #5
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: automatic label in the last entry

    I am not sure I understand the question. All I did in the following is add the data label.

    If you want it offset with the leader line, I'll have to add some VB code to accomplish this.

    Also, I have some unused calculations, you can get rid of these. They are Year, Row Number and X.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    12-17-2019
    Location
    Portugal
    MS-Off Ver
    office 2019
    Posts
    167

    Re: automatic label in the last entry

    Thanks again for your help.
    In the Sheet You send ( Livro123C) as you see I have the Values (AC10:AC82) for the line Blue (register 1) and the label of the last value with my format. (register 1 Mes).
    You add the (Register 2) but not show the line with the values (AH10:AH82). This is the problem!
    Then you add the (register 2 Mes) for the label and is ok.
    The diference between Register 1 (is ok) and register 2 (Don't appear) is if you select register 1 just ask you for the name of the Serie and the values for the serie. If you select register 2 it will ask you for the name of the serie, the Values of "X" and the values for the "Y". What I can do when I select register 2 to ask me Only the name and the values, like in 1 ??
    Hope you can undestand my qestion and 1 more time thanks for your help.

  7. #7
    Forum Contributor
    Join Date
    12-17-2019
    Location
    Portugal
    MS-Off Ver
    office 2019
    Posts
    167

    Re: automatic label in the last entry

    Thanks again for your help.
    In the Sheet You send ( Livro123C) as you see I have the Values (AC10:AC82) for the line Blue (register 1) and the label of the last value with my format. (register 1 Mes).
    You add the (Register 2) but not show the line with the values (AH10:AH82). This is the problem!
    Then you add the (register 2 Mes) for the label and is ok.
    The diference between Register 1 (is ok) and register 2 (Don't appear) is if you select register 1 just ask you for the name of the Serie and the values for the serie. If you select register 2 it will ask you for the name of the serie, the Values of "X" and the values for the "Y". What I can do when I select register 2 to ask me Only the name and the values, like in 1 ??
    Hope you can undestand my qestion and 1 more time thanks for your help.

+ 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. Automatic Label Caption update failed
    By poizones in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-12-2018, 12:42 AM
  2. [SOLVED] Label caption changes on textbox entry
    By rob_h in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-27-2017, 09:19 AM
  3. Chemical Inventory- Create unique number for each entry to label
    By wijoga in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-17-2013, 12:33 PM
  4. performing automatic print on a label
    By itsmejan24 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-09-2012, 12:23 PM
  5. automatic erasing of field entry and date entry
    By roadkill in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-24-2008, 10:20 AM
  6. Automatic label arrangement in a pie chart
    By Pierre in forum Excel General
    Replies: 0
    Last Post: 09-29-2005, 11:30 AM
  7. Automatic nameing of ranges based on a label
    By skuzapo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-26-2005, 04:05 PM

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