Hi All!
Happy Tuesday! Thanks, in advance, for any support you can provide. The data below are all fictitious.
I have been working on dynamically plotting data points in an Excel chart (scatterplot) based on specific conditions within my dataset. Specifically, my goal is to display data points only for rows where a certain condition is met in one column (CU), which contains TRUE or FALSE values. I want to plot the corresponding data points from another column (Series Name from column B; X value from column CW; Y value from CX) in the order of their occurrences of TRUE values.
To achieve this, I am using formulas that I have incorporated into the Name Manager that dynamically checks for TRUE values in column CU, counts their occurrences, and retrieves the corresponding data points from the aforementioned columns for plotting. For instance, if the 1st occurrence of TRUE is in row 3, and the 2nd occurrence is in row 5, I want the data from columns for these rows to be plotted in the chart in the same order.
Formula examples:
Series Name 1:
X Value 1:
Y Value 1:
I am using checkbox linked to the cells in CU to indicate whether the value in CU cells should be TRUE or FALSE.
Additionally, I need to handle cases where there are fewer occurrences of TRUE than the desired threshold. For example, if I'm looking for the 20th occurrence of TRUE, but there are only 15, the chart should not display any erroneous or placeholder values such as '0'. I have attempted to mitigate this issue by using advanced Excel functions like INDEX, SMALL, IF, and IFERROR to manage the data dynamically and ensure accurate plotting. However, if I leave the Data Series active in the 'Select Data Source' and deselect a participant from the participants menu the data point remains plotted at 0,0 in the chart.
This seems to only happen when I use the named ranges, as opposed to "hard coding" the cell references. That is, when I uncheck the checkboxes next to participant names, their data is not reflect in the chart, even if their data series is still active/checked in the 'Select Data' window.
For example, the chart below is what is produced when I edit the series as:
Series Name: =Data_Table!$C$3
Series X Values: =Data_Table!$CW$3
Series Y Values: =Data_Table!$CX$3
Is there a way that I can have the same result using named ranges/formulas in the Name Manager? Any support/guidance is appreciated.
Thanks,
MerlinCLT
Happy Tuesday! Thanks, in advance, for any support you can provide. The data below are all fictitious.
I have been working on dynamically plotting data points in an Excel chart (scatterplot) based on specific conditions within my dataset. Specifically, my goal is to display data points only for rows where a certain condition is met in one column (CU), which contains TRUE or FALSE values. I want to plot the corresponding data points from another column (Series Name from column B; X value from column CW; Y value from CX) in the order of their occurrences of TRUE values.
To achieve this, I am using formulas that I have incorporated into the Name Manager that dynamically checks for TRUE values in column CU, counts their occurrences, and retrieves the corresponding data points from the aforementioned columns for plotting. For instance, if the 1st occurrence of TRUE is in row 3, and the 2nd occurrence is in row 5, I want the data from columns for these rows to be plotted in the chart in the same order.
Formula examples:
Series Name 1:
=IF(COUNTIF(Data_Table!$CU$3:$CU$500, TRUE) = 0, NA(), INDEX(Data_Table!$C$3:$C$500, MATCH(TRUE, Data_Table!$CU$3:$CU$500, 0))) |
=IF(COUNTIF(Data_Table!$CU$3:$CU$500, TRUE) >= 1, INDEX(Data_Table!$CW$3:$CW$500, MATCH(TRUE, Data_Table!$CU$3:$CU$500, 0)), "") |
=IF(COUNTIF(Data_Table!$CU$3:$CU$500, TRUE) >= 1, INDEX(Data_Table!$CX$3:$CX$500, MATCH(TRUE, Data_Table!$CU$3:$CU$500, 0)), "") |
I am using checkbox linked to the cells in CU to indicate whether the value in CU cells should be TRUE or FALSE.
Additionally, I need to handle cases where there are fewer occurrences of TRUE than the desired threshold. For example, if I'm looking for the 20th occurrence of TRUE, but there are only 15, the chart should not display any erroneous or placeholder values such as '0'. I have attempted to mitigate this issue by using advanced Excel functions like INDEX, SMALL, IF, and IFERROR to manage the data dynamically and ensure accurate plotting. However, if I leave the Data Series active in the 'Select Data Source' and deselect a participant from the participants menu the data point remains plotted at 0,0 in the chart.
This seems to only happen when I use the named ranges, as opposed to "hard coding" the cell references. That is, when I uncheck the checkboxes next to participant names, their data is not reflect in the chart, even if their data series is still active/checked in the 'Select Data' window.
For example, the chart below is what is produced when I edit the series as:
Series Name: =Data_Table!$C$3
Series X Values: =Data_Table!$CW$3
Series Y Values: =Data_Table!$CX$3
Is there a way that I can have the same result using named ranges/formulas in the Name Manager? Any support/guidance is appreciated.
Thanks,
MerlinCLT