Cells as Category Values

I have a table that has a column of categories, and then a column of values. I'd like to build a chart that used the first column as the values for the categories of the chart. Is there a way to do this?
If my table had
MATH 10
READING 5
SCIENCE 9
It'd build a bar chart using 10, 5 and 9 as values, and to the left, the values would be listed as MATH, READING and SCIENCE.
The charts that I'm being asked to do have a common format, but different categories. So the next graph I have to build from this template may have SPEECH, MATH, and GYM, for example. Right now, I need to alter those categores by changing each line of the chart by hand.
Thanks!

A simpler workflow could be:
1. Paste everyone's raw score data into table 1 (name, test taken, score).
2. In table 2, type the person's name in cell A1. The table automatically fills with all tests and scores for that person and plots those test scores. Alternatively, the name could be typed into a separate one-cell table (as Jerry did) if you modify my formula (shown below) a bit.
For the simplest case I have assumed the following:
1. All test scores for a particular person are to be charted. We can work around this easily if this assumption is not true.
2. No zero scores for a test that was taken. It appears that a 1 is the lowest score, even if all questions were missed.
3. No repeated tests. We can kind of work around this as well, I'm just taking the easiest case to start.
Table 2 is set up as follows (one time setup):
1. Cells A2 and down are pre-filled with all possible test categories. In other words, type them in manually. Only needs to be done once.
2. Type the following formula into B2 and fill down to end of the column. This formula matches the name and test type (table 1 columns A and B, respectively) and returns the score (table 1 column C). If there is a possibility that someone took a test more than once, the formula can be supplemented with a COUNTIFS test to throw an error.
=SUMIFS(Table 1 :: C,Table 1 :: A,$A$1,Table 1 :: B,A2)
3. Create a chart of B2 through end of the table (i.e., chart the scores for ALL test categories)
4. Filter table 2 so only rows with scores greater than zero are displayed. The chart will only plot the displayed rows.
Now, all you need to do is paste the raw test scores in table 1 and type the person's name in the upper left cell (A1) of table 2 and you have a chart. I can post an image if it would help you visualize this.

Similar Messages

  • I want the max date but only look at rows with a certain category value.

    I want a way to get the max date but only look at rows with a certain category value - ignoring the other rows.  My detail table contains expenditures including date (col A) and category (col D) the number of rows will increase with expenditures over time.  My summary table will have a cell for each category and display the last expense date for that category using a functionality that I must ask of you, dear community.
    I am using the latest numbers on an iPad (4) with IOS6.
    Secondarily, I would like to add another cell in the summery table with the value (col E) of the last expense for each category.
    Thank you,
    Warren

    ...later...
    With the addition of an auxiliary column to the Main table, a second header row to the Most recent table, and a minor modification to the formula on the second table, the tables can handle a range of dates set by entering the first and last date into A1 abd B1 respectively of the summary table, Most recent.
    Note that the selected range, shown with a green background in the auxiliary column, does not contain any category B expenses. Using LOOKUP, this would result in a repeat of the January 6 expense bering listed in this row. Switching to VLOOKUP, which can be set to require an exact match, allows the result shown—if there are no expenses in a given category, the formula returns "none" (or whatever message you substitute for "none" in the formula in that column).
    Formulas:
    Main::A2: =IF(OR(B<Most recent :: $A$1,B>Most recent :: $B$1),"x"&E,E)
    Fill down to the end of column A.
    This column must be located on the left side of the table (ie. must be column A), but may be hidden.
    Most recent::A2: =IFERROR(VLOOKUP($D,Main :: $A:$D,COLUMN()+1,FALSE),"none")
    "FALSE" will display as "Exact match" in Numbers's formula editor.
    Fill down to the end of the table and right to column C.
    Regards,
    Barry

  • Is it possible to reference one cell from the value of another?

    Is it possible to reference one cell from the value of another e.g.
    value of b1 = value of c(value of a1)
    So if a1 = 3 then b1 = c3, if a1 = 5 then b1 = c5.

    Excellent!
    Thanks Wayne. Just saved me many hours and a headache.
    Works like a dream.
    Thank you for your succinct (and accurate) answer.
    Mark

  • PRODUCT CATEGORY VALUE INSTEAD OF PRODUCT DESCRIPTION ON SC SCREEN-

    Hi All,
      We are running on SRM 4.0(classic)..My query is on the SC  screen,when i add item to the SC,on the next screen,in the Item details(Step 2),in the Field "CATEGORY"(display mode)..I get the value for Category Descrition...There instead of the Product Category description ,i want my product category value to flow in that field....Is thsi possible?If so ..how??any changes in tHE std code be done???Please help.
    regards,
    Disha.

    Hello!
    I have a similar question. I have added a custom field to PO item overview. My field is of 25 Char and I have maintained values in Domain Value Range.
    Ex: ZORDTYPE (25 Chars)
        1      Repair
        2      Professional Serv.
    When I am in change mode, I see value as "1-Repair". However, when I am in display mode I only see "1".
    Any ideas on how I can fix this.
    Thanks in advance.

  • ME51N -  Account Assigment Category Value

    Hi All,
    My need is, While creating purchase requisition (ME51N) based on purchase requisition type ( combo box value ) in Line Item Account assignment category value should be defaulted. How can i achieve this?
    Points will be rewarded
    Thanx in advance.
    GLADIATOR
    Edited by: GLADIATOR on Jun 17, 2008 2:49 PM
    Edited by: GLADIATOR on Jun 17, 2008 2:55 PM

    hi,
    check these exits and badi's for me51n.
    if any of these contains structure which has ur field then u can default ur values.
    Transaction Code - ME51N                    Create Purchase Requisition
    Enhancement/ Business Add-in            Description
    Enhancement
    MEREQ001                                Customers' Own Data in Purchase Requisition
      Business Add-in
    ME_COMMITMNT_PARKING                    BAdI for Redefining Commitment Interface When Parking
    ME_MEREQ_PARKING                        BAdI Purchase Requisition: "Hold"
    ME_REQ_HEADER_TEXT                      Copy Header Text: Enjoy Purchase Requisition
    reward points if hlpful.

  • Merchandise Category: Value-Only Article Categories

    Hello,
       Could someone explain to me what is meant by Merchandise Category: Value-Only Article Categories with a real time example ?

    Yo, do me a favor - can you explain your question more in detail.
    Do you ask in general what a Merch Cat is and/or what you can do with it - sense or nonsense within Trade.
    Markus
    Anyway: Maybe this section out of the Retail Standard documentation help:
    http://help.sap.com/ERP2005_EHP_03/helpdata/EN/12/084a37470311d1894a0000e8323352/content.htm
    If you need different information - let me know - otherwise be so kind and mark this question as answered.
    Also: If you are looking for answers about how to use - or how sell at POS articles on value only article categories - you will find that within the documentation when you open up the library structure (red arrows) - Here you find the difference between Merch Cat articles sales and Merch Cat Hierarchy articles. Usual Merch Cat article sales is Donuts at a Grocer. It does not matter if plain, chocolate or whatever! At POS they press one button to record the sales of Donuts. Usually the remaining donuts will be counted at the end of business day to evaluate further production.
    You of course can use all possible varieties within SAP: keep record at article level of a merch cat, record at merch cat level (donuts, even so there are differences) and merch cat hierarchy level (if it makes sense for you).
    Hasta la vista
    Markus
    Edited by: Markus Semar on Jun 23, 2009 8:30 PM

  • How to export table data with coloring of cell according to value.

    Hi all,
    I am using jdeveloper 11.1.1.6
    i want to export table data with lot of formatting. like with coloring of cell according to value and so many.How to do that?

    Hi,
    like with coloring of cell according to value and so many.How to do that?
    Answer is, you can't
    Frank

  • Defining column for chart category values

    Problem
    I want to produce a chart from a table imported from Excel. The data imported perfectly but since the X axis values (just a series of years) are in a column Numbers appears to treat them as another data series, this situation is compounded by the fact some of data columns are non contiguous.
    I've tried creating a new table with just two columns, the labels and values, copied from the original table but the new columns are still treated as two series.
    I tried creating a new table with a header column and row. Then tried referencing one of the value cells in the original table for the header column. That produced a copy of the whole row but no category data.
    Questions:
    Is it possible to define a column as the X axis category labels as you can with Excel charts?
    If not then how do you create a set of X axis values/labels with an imported table.
    Thanks
    RB

    I solved the problem by copying each column and pasting it into Numbers.
    In this way I was able to put the X axis data into the header column without a problem.
    The problem I had must have been caused by opening the excel file with Numbers.
    FYI:
    I tested this with one column of data and the X values.
    Then pasted in the other columns and found that to add the new series to the chart all you have to do is drag the column selection in the table over the newly added columns. Delightfully simple!
    Thanks for suggestion.
    RB

  • Conditional inclusion of column cells based on value in another column?

    I was wondering if something like the following is possible -- I've looked through the forums and Numbers user guide but can't figure it out:
    Suppose I have a column A of sales figures, and columns B and C which basically have different attributes (say, color (yellow or green), size (small or large), and material (cotton or polyester)).
    I want to run basic statistics on various combinations: e.g. all yellow items regardless of size, all green cotton items regardless of size, all large yellow items regardless of material, etc.
    I want to be able to specify something like this:
    'Compute the average of every cell in column A where column B=="green" and column C=="large"'
    Is there a good way to go about doing this? Would I want to attack the problem using categories, sorting, and multiple tables? Or is there a way to conditionally include cell values from a range based on the value of that row's cell in another column?
    Thanks for any help.

    All I can think of to solve the quartile and median functions is to have another table of the same size as your original table that gets populated with just the items that match. Then you can do the quartile and median (and average) on that table. It's a one-at-a-time affair; you can only do one selection of size, color, and/or material at a time but you can get the median, mean, and quartiles of it. Of course, you could have multiple copies of this second table if you want to do more than one comparison at a time.
    In the attached file, unhide the hidden rows in Table 2 to see the formulas that do all the work.
    [files.me.com/pwb3/6hobt0.numbers.zip]
    Message was edited by: Badunit
    Message was edited by: Badunit

  • How to fill an empty cell with the value above

    Hello,
    Please help me on the following issue related to BEx query and it's output in BEx analyzer as well as on Web.
    I am trying to modify a query output where the empty cells are to be filled with the value in the above cell.
    e.g. there is a column for transaction number, and this transaction number is the same for three rows, so it turns out to be two empty cells and only appears as if the transaction number applies to the first row only.
    not sure how to paste screenshot or attach document but would love to provide more information if the above isn't suffice.
    Please advise on what and where to modify in BEx designer.
    Thank you for your help!

    Thanks a lot...yes, now it works in BEx Analyzer but for some reason doesn't work in the Web view.
    Any ideas why is that?
    Thanks again for your prompt help.
    Edited by: One Idea on Jan 15, 2009 12:17 AM

  • Cell with boolean value not rendering properly in Swing (custom renderer)

    Hello All,
    I have a problem rendenring boolean values when using a custom cell renderer inside a JTable; I managed to reproduce the issue with a dummy application. The application code follows:
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.lang.reflect.InvocationTargetException;
    import java.util.ArrayList;
    import java.util.Date;
    import java.util.List;
    import java.util.logging.Logger;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.SwingUtilities;
    * Simple GUI that uses custom cell rendering
    * @author josevnz
    public final class SimpleGui extends JFrame {
         private static final long serialVersionUID = 1L;
         private Logger log = Logger.getLogger(SimpleGui.class.getName());
         private JTable simpleTable;
         public SimpleGui() {
              super("Simple GUI");
              setPreferredSize(new Dimension(500, 500));
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              setLayout(new BorderLayout());
         public void constructGui() {
              simpleTable = new JTable(new SimpleTableModel());
              simpleTable.getColumnModel().getColumn(2).setCellRenderer(new HasItCellRenderer());
              SpecialCellRenderer specRen = new SpecialCellRenderer(log);
              simpleTable.setDefaultRenderer(Double.class, specRen);
              simpleTable.setDefaultRenderer(String.class, specRen);
              simpleTable.setDefaultRenderer(Date.class, specRen);
              //simpleTable.setDefaultRenderer(Boolean.class, specRen);
              add(new JScrollPane(simpleTable), BorderLayout.CENTER);          
              pack();
              setVisible(true);
         private void populate() {
              List <List<Object>>people = new ArrayList<List<Object>>();
              List <Object>people1 = new ArrayList<Object>();
              people1.add(0, "Jose");
              people1.add(1, 500.333333567);
              people1.add(2, Boolean.TRUE);
              people1.add(3, new Date());
              people.add(people1);
              List <Object>people2 = new ArrayList<Object>();
              people2.add(0, "Yes, you!");
              people2.add(1, 100.522222);
              people2.add(2, Boolean.FALSE);
              people2.add(3, new Date());
              people.add(people2);
              List <Object>people3 = new ArrayList<Object>();
              people3.add(0, "Who, me?");
              people3.add(1, 0.00001);
              people3.add(2, Boolean.TRUE);
              people3.add(3, new Date());
              people.add(people3);
              List <Object>people4 = new ArrayList<Object>();
              people4.add(0, "Peter Parker");
              people4.add(1, 11.567444444);
              people4.add(2, Boolean.FALSE);
              people4.add(3, new Date());
              people.add(people4);
              ((SimpleTableModel) simpleTable.getModel()).addAll(people);
          * @param args
          * @throws InvocationTargetException
          * @throws InterruptedException
         public static void main(String[] args) throws InterruptedException, InvocationTargetException {
              final SimpleGui instance = new SimpleGui();
              SwingUtilities.invokeAndWait(new Runnable() {
                   @Override
                   public void run() {
                        instance.constructGui();
              instance.populate();
    }I decided to write a more specific renderer just for that column:
    import java.awt.Color;
    import java.awt.Component;
    import javax.swing.JTable;
    import javax.swing.UIManager;
    import javax.swing.table.DefaultTableCellRenderer;
    * Cell renderer used only by the DividendElement table
    * @author josevnz
    final class HasItCellRenderer extends DefaultTableCellRenderer {
         protected static final long serialVersionUID = 2596173912618784286L;
         private Color hasIt = new Color(255, 225, 0);
         public HasItCellRenderer() {
              super();
              setOpaque(true);
         @Override
         public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
              Component comp = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
              int desCol = table.convertColumnIndexToView(1);
              if (! isSelected && value instanceof Boolean && column == desCol) {
                   if (((Boolean) value).booleanValue()) {
                        comp.setForeground(hasIt);     
                   } else {
                        comp.setForeground(UIManager.getColor("table.foreground"));
              return comp;
          * Override for performance reasons
         @Override
         public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) {
              // EMPTY
         @Override
         protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {
              // EMPTY
         @Override
         public void revalidate() {
              // EMPTY
         @Override
         public void validate() {
              // EMPTY
    } // end classBut the rendering comes all wrong (a String saying true or false, not the expected checkbox from the default renderer) and also there is a weird flickring effect as this particular boolean column is editable (per table model, not show here)...
    I can post the table model and the other renderer if needed (didn't want to put too much code on the question, at least initiallty).
    Should I render a checkbox myself for this cell in the custom renderer? I'm puzzled as I expected the default renderer part of the code to do this for me instead.
    Thanks!
    Edited by: josevnz on Apr 14, 2009 12:35 PM
    Edited by: josevnz on Apr 14, 2009 12:37 PM

    camickr
    Thats because the default render is a JLabel and it just displays the text from the toString() method of the Object in the table model.What I meant to say is that I expected the JCheckbox not a String representation of the boolean value.
    Thats because a different renderer is used depending on the Class of data in the column. Look at the source code for the JTable class to see what the "default >renderer for the Boolean class" is. Then you can extend that or if its a private class then you will need to copy all the code and customize it.At the end I looked at the code and replicated the functionality I needed. I thought than maybe there was a way to avoid replicating the same logic all over again in order to implement this functionality. Good advice, though.
    see you learned nothing from your last posting. This is NOT a SSCCE. 90% of the code you posted is completely irrelevant for the described problem. There is abosutelly no need to post the custom TableModel, because there is no need to use a custom TableModel for this problem. The TableModel has nothing to do with how a column is rendererd.The custom table model returns the type of the column (giving a hint to the renderer on what to expect, right?) and for the one that had a problem it says than the class is Boolean. That's why I mentioned it:
    public Class getColumnClass(int columnIndex) {
        // Code omited....
    You also posted data for 4 columns worth of data. Again, irrelevant. Your question is about a single column containing Boolean data, so forget about the other columns.
    When creating a SSCCE you don't start with your existing code and "remove" code. You start with a brand new class and only add in what is important. That way hopefully if you made a mistake the first time you don't repeat it the second time.That's what I did, is not the real application. I copy & pasted code in a haste from this dummy program on this forum, not the best approach as it gave the wrong impression.
    Learn how to write a proper SSCCE if you want help in the future. Point taken, but there is NO need for you to be rude. Your help is appreciated.
    Regards,
    Jose.

  • How do I change a cell to display values in Scientific Notation?

    I have to display values that are around 0.00000000225000000
    How do I get these cells to automatically display as 2.25x10^-9 ? (or 2.25E-9)
    I can only find forums for how to disable.
    Thank you!

    select the cell then open the cell formatter and choose the format from the pop-up menu:

  • ABAP WebDynpro: Table cells with different values.

    Hello,
    I am not sure how the following can be achieved.
    I have a table with 10 rows in it. First column should have different values in cells (static value that do not come from anywhere). For example, colors: black, green, yellow, etc.
    I inserted a table column. In that column I inserted a Cell Editor of type TextView. If I define a 'text' property of this element than it marks all cells in this column with this text. I need to assign different values to each cell.
    How can this be done?
    Thank you.

    Probably you should post this the Web Dynpro Forum
    Web Dynpro Java
    Regards,
    Ravi
    Note : Please close this thread.

  • Cell to bring value and formatting both

    Hi,
    I enter formula =sheet1'!A1 in cell A1 on sheet2. It brings value from sheet1 A1. I want it to bring value as well as formatting both. Is it possible by vba code ? if so please help.
    I have long list of articles. I change them frequently in sequence. I need to print them in A4 size. I have to get the long sheet to get break down in A4 size printable sheet retaining first two lines and last one line same (headings and name etc) in all
    sheets. The sequence should change as I do in changes in long sheet.
    regards

    Hi Drsantoshsinghrathore,
    Hi,
    Thank you,
    This code will format cell as number from text format ? Then it is not so helpful for my current problem. I want formatting about cell lining of border etc.
    regards
    Yes, the code would format cell to the number format based on the source cell. We also could set the cell format using
    CellFormat object. And here is an example that set the border for the cell for your reference:
    With Selection.Borders(xlEdgeLeft)
    .LineStyle = xlContinuous
    .ColorIndex = 0
    .TintAndShade = 0
    .Weight = xlMedium
    End With
    With Selection.Borders(xlEdgeTop)
    .LineStyle = xlContinuous
    .ColorIndex = 0
    .TintAndShade = 0
    .Weight = xlMedium
    End With
    With Selection.Borders(xlEdgeBottom)
    .LineStyle = xlContinuous
    .ColorIndex = 0
    .TintAndShade = 0
    .Weight = xlMedium
    End With
    With Selection.Borders(xlEdgeRight)
    .LineStyle = xlContinuous
    .ColorIndex = 0
    .TintAndShade = 0
    .Weight = xlMedium
    End With
    Also we can use the Recod Macro to get the simpliar code if we are not familair with Excel Object devleoping.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can I make a chart ignore cells until their value is changed from 0?

    In the corresponding table, I used conditional formatting to hide zeros in the highlighted row by conditionally changing the text color to that of the table background. However, the zero value's are still represented in the corresponding chart as you can see in the attached photo . How can I make the chart ignore certain cells only until their values are changed from zero? Thanks in advance!
    Ryan

    Hi Ryan,
    Leave the cells empty until they're needed, or, if the cells' contents are determined by a formula, revise the formula to insert a null string if the value is zero.
    =IF(your formula = 0, "", your formula)
    Regards,
    Barry

Maybe you are looking for

  • Web Dynpro Application URL

    Hi All, I need to run a Web Dynpro application without using Portal, is there a was to do so? Can I run the application by calling it directly using a URL? Thanks, Rajiv

  • Filter per activity for resources who are included in more than one group

    Have several resources who participates in 3 Groups (Design, Assembly, and testing) Would like to somehow filter or Group in a Way so a report can be viewed only showing the actual work they are doing för the specific Group. I.e. showing their assemb

  • 10 million messages in one jms-queue

    Hi all,           we want to put about 10 million jms-messages in a jms-queue with a jdbc           persistent store on oracle database.           Does anyone of you made experiences with that much messages in one           queue? Are there any known

  • Protecting RAW files on server

    I'm new to both Mac and Aperture, so please forgive my newness. I have a lot of experience with PC's and generally I "get in the weeds" on file structure, management, etc. My initial perception of working with MAC's is that the applications like to t

  • Frequency of string values in a column

    I have a column (1500 rows) in which 5 different string values occur (R1, R2, R3, R4, R5). is there any way to count the frequency of each string value so the distribution can be charted? Many Thx. Malbara