Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.charting
|
|||
|
|||
![]()
I have read the posts about Excel charts plotting cells that are
empty. I'm not sure I understood what I read, and our particular circumstances may be a bit different. (I'm not sure.) Anyway. Our problem is: We use Excel 2003 MSQuery to extract the results of an Access query and automatically put them in an Excel spreadsheet. Depending on the circumstances, the query doesn't always return the same amount of data. In order to automatically expand or shrink the range of cells that actually contain data, we use the OFFSET function DonationsTotals=OFFSET(Donations!$K$2,0,0,COUNTA(D onations!$K:$K),1). From this data, we have a chart that is supposed to plot only the cells that are not empty: =NewReport.xls!DonationsTotals. This works great except that the resulting column chart appears to be plotting cells (at the far right) that don't have any data in them. Makes for an odd looking chart, Can anyone suggest a solution to this problem? (In terms a rookie like me could understand). We would be ever so grateful. Thanks very much for your time!!! S |
#2
![]()
Posted to microsoft.public.excel.charting
|
|||
|
|||
![]()
COUNTA counts any cells with formulas, even if the formulas return "" to the
cell. Also, if there are more categories than values, the chart will still have room for all categories. - Jon ------- Jon Peltier, Microsoft Excel MVP Tutorials and Custom Solutions Peltier Technical Services, Inc. - http://PeltierTech.com _______ "SJ" wrote in message ... I have read the posts about Excel charts plotting cells that are empty. I'm not sure I understood what I read, and our particular circumstances may be a bit different. (I'm not sure.) Anyway. Our problem is: We use Excel 2003 MSQuery to extract the results of an Access query and automatically put them in an Excel spreadsheet. Depending on the circumstances, the query doesn't always return the same amount of data. In order to automatically expand or shrink the range of cells that actually contain data, we use the OFFSET function DonationsTotals=OFFSET(Donations!$K$2,0,0,COUNTA(D onations!$K:$K),1). From this data, we have a chart that is supposed to plot only the cells that are not empty: =NewReport.xls!DonationsTotals. This works great except that the resulting column chart appears to be plotting cells (at the far right) that don't have any data in them. Makes for an odd looking chart, Can anyone suggest a solution to this problem? (In terms a rookie like me could understand). We would be ever so grateful. Thanks very much for your time!!! S |
#3
![]()
Posted to microsoft.public.excel.charting
|
|||
|
|||
![]()
On Aug 6, 3:03*pm, "Jon Peltier"
wrote: COUNTA counts any cells with formulas, even if the formulas return "" to the cell. Also, if there are more categories than values, the chart will still have room for all categories. - Jon ------- Jon Peltier, Microsoft Excel MVP Tutorials and Custom Solutions Peltier Technical Services, Inc. -http://PeltierTech.com _______ "SJ" wrote in message ... I have read the posts about Excel charts plotting cells that are empty. *I'm not sure I understood what I read, and our particular circumstances may be a bit different. (I'm not sure.) Anyway. *Our problem is: We use Excel 2003 MSQuery to extract the results of an Access query and automatically put them in an Excel spreadsheet. *Depending on the circumstances, the query doesn't always return the same amount of data. *In order to automatically expand or shrink the range of cells that actually contain data, we use the OFFSET function DonationsTotals=OFFSET(Donations!$K$2,0,0,COUNTA(D onations!$K:$K),1). From this data, we have a chart that is supposed to plot only the cells that are not empty: *=NewReport.xls!DonationsTotals. This works great except that the resulting column chart appears to be plotting cells (at the far right) that don't have any data in them. Makes for an odd looking chart, Can anyone suggest a solution to this problem? *(In terms a rookie like me could understand). *We would be ever so grateful. Thanks very much for your time!!! S- Hide quoted text - - Show quoted text - Hi Jon. Thanks for taking the time to help. I changed the COUNTA to COUNT and I got an error saying a formula was making an invalid reference. So I changed it back. The worksheet cells that hold the data that we have extracted from Access do not contain any formulas so I don't see how that applies. Also, there are never more categories than values because in the initial query in Access, the categories have to have a value in order to be part of the result. Those with corresponding values are the only records it extracts. Chances are good that I'm misunderstanding what you were trying to to tell me, but I wasn't able to make it work. Regardless, we really do appreciate your help. S |
#4
![]()
Posted to microsoft.public.excel.charting
|
|||
|
|||
![]()
On Aug 7, 9:08*am, SJ wrote:
On Aug 6, 3:03*pm, "Jon Peltier" wrote: COUNTA counts any cells with formulas, even if the formulas return "" to the cell. Also, if there are more categories than values, the chart will still have room for all categories. - Jon ------- Jon Peltier, Microsoft Excel MVP Tutorials and Custom Solutions Peltier Technical Services, Inc. -http://PeltierTech.com _______ "SJ" wrote in message ... I have read the posts about Excel charts plotting cells that are empty. *I'm not sure I understood what I read, and our particular circumstances may be a bit different. (I'm not sure.) Anyway. *Our problem is: We use Excel 2003 MSQuery to extract the results of an Access query and automatically put them in an Excel spreadsheet. *Depending on the circumstances, the query doesn't always return the same amount of data. *In order to automatically expand or shrink the range of cells that actually contain data, we use the OFFSET function DonationsTotals=OFFSET(Donations!$K$2,0,0,COUNTA(D onations!$K:$K),1). From this data, we have a chart that is supposed to plot only the cells that are not empty: *=NewReport.xls!DonationsTotals. This works great except that the resulting column chart appears to be plotting cells (at the far right) that don't have any data in them. Makes for an odd looking chart, Can anyone suggest a solution to this problem? *(In terms a rookie like me could understand). *We would be ever so grateful. Thanks very much for your time!!! S- Hide quoted text - - Show quoted text - Hi Jon. *Thanks for taking the time to help. I changed the COUNTA to COUNT and I got an error saying a formula was making an invalid reference. *So I changed it back. The worksheet cells that hold the data that we have extracted from Access do not contain any formulas so I don't see how that applies. Also, there are never more categories than values because in the initial query in Access, the categories have to have a value in order to be part of the result. *Those with corresponding values are the only records it extracts. Chances are good that I'm misunderstanding what you were trying to to tell me, but I wasn't able to make it work. Regardless, we really do appreciate your help. S- Hide quoted text - - Show quoted text - I think I found the solution. In the COUNTA portion of the Names OFFSET function, I changed both the labels and data ranges to specific cells e.g.DonationsTotals=OFFSET(Donations!$K$2,0,0,COUN TA(Donations!$K$2:$K $50),1). This eliminated all of the empty points that were being plotted. Seems to work. Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Chart empty with new data in the dynamic range chart. | Excel Discussion (Misc queries) | |||
Dynamic chart, OFFSET, #N/A Help | Charts and Charting in Excel | |||
Formula returns empty; chart plots zero; I want to skip | Charts and Charting in Excel | |||
Offset function and Dynamic Ranges | Excel Discussion (Misc queries) | |||
How do I remove empty chart plots from linked worksheet charts | Charts and Charting in Excel |