Re: $$Excel-Macros$$ Needle Gauge Chart Calculation
Thanks for this Dave, what is the purpose of the offset function you used. thanks On Sat, Feb 18, 2012 at 11:27 PM, David Grugeon da...@grugeon.com.auwrote: OK. first I find the number in the dial which is the greatest number less than or equal to the required value. I use match to find how far down it is from J2. This number goes in P7. Then I find out the chart value and corresponding angle for that lower amount and these go int P8 and Q8 Next I find the next value (which will be the chart indication above the lowest amount greater than the price). This goes in P9 and Q9 Now we can interpolate the actual price by calculating the excess of the price over the lower price as a proportion of the gap between the prices. This is used to calculate the angle required (or more precisely the scale value required for the needle). All this is done in the formula in Q11. The formula in Q11 could be expressed the angle for the lower threshold +(the price less the lower threshold)divided by the difference between the upper and lower thresholds multiplied by the difference between the lower and upper angles. Let me know if this is not clear. Best regards David Grugeon On 19 February 2012 04:52, hilary lomotey resp...@gmail.com wrote: Wow Dave,and wow again, this is a gret solution, never mind replying late, this is so incredible. after a while i thought it was not possible, great mind you got over there, thumbs up seven times, but sorry man you need to expalin the relevance of using the offset function there and the formula for getting the angle required. i was just browsing through what you did and cant see how the whole stuff you done applies to the chart. or i guess the angle required is connected to the price, could you kindly explain to me the logic behind this. On 2/18/12, David Grugeon da...@grugeon.com.au wrote: Forgot the attachment On 16 February 2012 18:44, hilary lomotey resp...@gmail.com wrote: Thanks Dave, thanks a lot for responding, i have attached the file to demonstrate what i want to achieve, basically what i want is when a stock is selected i want the needle to move to price of the stock, the stock prices are within the range specified in the file attached headed prices. On Thu, Feb 16, 2012 at 12:00 AM, David Grugeon grug...@gmail.com wrote: Because the graduations on the dial are non linear (and not even logarithmic) you cannot automatically calculate the values. You have to do it by trial and error. I have made a new column with my suggestions. You could fine tune this if you wanted to by using more fractional numbers but for practical purposes my suggestions will probably be adequate. I do not understand exactly what you are trying to do so if this is not OK try giving more of an explanation. On 16 February 2012 00:51, hilary lomotey resp...@gmail.com wrote: Dear Experts, i have created a speedometer chart, however i am trying to calculate the needle or indicator using the parameters as attached but having difficulty in doing so, i would be grateful if i get some suggestions.thanks -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- David Grugeon -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to
Re: $$Excel-Macros$$ Needle Gauge Chart Calculation
Wow Dave,and wow again, this is a gret solution, never mind replying late, this is so incredible. after a while i thought it was not possible, great mind you got over there, thumbs up seven times, but sorry man you need to expalin the relevance of using the offset function there and the formula for getting the angle required. i was just browsing through what you did and cant see how the whole stuff you done applies to the chart. or i guess the angle required is connected to the price, could you kindly explain to me the logic behind this. On 2/18/12, David Grugeon da...@grugeon.com.au wrote: Forgot the attachment On 16 February 2012 18:44, hilary lomotey resp...@gmail.com wrote: Thanks Dave, thanks a lot for responding, i have attached the file to demonstrate what i want to achieve, basically what i want is when a stock is selected i want the needle to move to price of the stock, the stock prices are within the range specified in the file attached headed prices. On Thu, Feb 16, 2012 at 12:00 AM, David Grugeon grug...@gmail.com wrote: Because the graduations on the dial are non linear (and not even logarithmic) you cannot automatically calculate the values. You have to do it by trial and error. I have made a new column with my suggestions. You could fine tune this if you wanted to by using more fractional numbers but for practical purposes my suggestions will probably be adequate. I do not understand exactly what you are trying to do so if this is not OK try giving more of an explanation. On 16 February 2012 00:51, hilary lomotey resp...@gmail.com wrote: Dear Experts, i have created a speedometer chart, however i am trying to calculate the needle or indicator using the parameters as attached but having difficulty in doing so, i would be grateful if i get some suggestions.thanks -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- David Grugeon -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- David Grugeon -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or
Re: $$Excel-Macros$$ Needle Gauge Chart Calculation
OK. first I find the number in the dial which is the greatest number less than or equal to the required value. I use match to find how far down it is from J2. This number goes in P7. Then I find out the chart value and corresponding angle for that lower amount and these go int P8 and Q8 Next I find the next value (which will be the chart indication above the lowest amount greater than the price). This goes in P9 and Q9 Now we can interpolate the actual price by calculating the excess of the price over the lower price as a proportion of the gap between the prices. This is used to calculate the angle required (or more precisely the scale value required for the needle). All this is done in the formula in Q11. The formula in Q11 could be expressed the angle for the lower threshold +(the price less the lower threshold)divided by the difference between the upper and lower thresholds multiplied by the difference between the lower and upper angles. Let me know if this is not clear. Best regards David Grugeon On 19 February 2012 04:52, hilary lomotey resp...@gmail.com wrote: Wow Dave,and wow again, this is a gret solution, never mind replying late, this is so incredible. after a while i thought it was not possible, great mind you got over there, thumbs up seven times, but sorry man you need to expalin the relevance of using the offset function there and the formula for getting the angle required. i was just browsing through what you did and cant see how the whole stuff you done applies to the chart. or i guess the angle required is connected to the price, could you kindly explain to me the logic behind this. On 2/18/12, David Grugeon da...@grugeon.com.au wrote: Forgot the attachment On 16 February 2012 18:44, hilary lomotey resp...@gmail.com wrote: Thanks Dave, thanks a lot for responding, i have attached the file to demonstrate what i want to achieve, basically what i want is when a stock is selected i want the needle to move to price of the stock, the stock prices are within the range specified in the file attached headed prices. On Thu, Feb 16, 2012 at 12:00 AM, David Grugeon grug...@gmail.com wrote: Because the graduations on the dial are non linear (and not even logarithmic) you cannot automatically calculate the values. You have to do it by trial and error. I have made a new column with my suggestions. You could fine tune this if you wanted to by using more fractional numbers but for practical purposes my suggestions will probably be adequate. I do not understand exactly what you are trying to do so if this is not OK try giving more of an explanation. On 16 February 2012 00:51, hilary lomotey resp...@gmail.com wrote: Dear Experts, i have created a speedometer chart, however i am trying to calculate the needle or indicator using the parameters as attached but having difficulty in doing so, i would be grateful if i get some suggestions.thanks -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- David Grugeon -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula
Re: $$Excel-Macros$$ Needle Gauge Chart Calculation
Hi Hilary Sorry to take forever to respond. Try the attached. I have set my calcs out rather than combine them in one massive formula so they are easier to read and understand. Best regards David Grugeon On 16 February 2012 18:44, hilary lomotey resp...@gmail.com wrote: Thanks Dave, thanks a lot for responding, i have attached the file to demonstrate what i want to achieve, basically what i want is when a stock is selected i want the needle to move to price of the stock, the stock prices are within the range specified in the file attached headed prices. On Thu, Feb 16, 2012 at 12:00 AM, David Grugeon grug...@gmail.com wrote: Because the graduations on the dial are non linear (and not even logarithmic) you cannot automatically calculate the values. You have to do it by trial and error. I have made a new column with my suggestions. You could fine tune this if you wanted to by using more fractional numbers but for practical purposes my suggestions will probably be adequate. I do not understand exactly what you are trying to do so if this is not OK try giving more of an explanation. On 16 February 2012 00:51, hilary lomotey resp...@gmail.com wrote: Dear Experts, i have created a speedometer chart, however i am trying to calculate the needle or indicator using the parameters as attached but having difficulty in doing so, i would be grateful if i get some suggestions.thanks -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- David Grugeon -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- David Grugeon -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com
Re: $$Excel-Macros$$ Needle Gauge Chart Calculation
Forgot the attachment On 16 February 2012 18:44, hilary lomotey resp...@gmail.com wrote: Thanks Dave, thanks a lot for responding, i have attached the file to demonstrate what i want to achieve, basically what i want is when a stock is selected i want the needle to move to price of the stock, the stock prices are within the range specified in the file attached headed prices. On Thu, Feb 16, 2012 at 12:00 AM, David Grugeon grug...@gmail.com wrote: Because the graduations on the dial are non linear (and not even logarithmic) you cannot automatically calculate the values. You have to do it by trial and error. I have made a new column with my suggestions. You could fine tune this if you wanted to by using more fractional numbers but for practical purposes my suggestions will probably be adequate. I do not understand exactly what you are trying to do so if this is not OK try giving more of an explanation. On 16 February 2012 00:51, hilary lomotey resp...@gmail.com wrote: Dear Experts, i have created a speedometer chart, however i am trying to calculate the needle or indicator using the parameters as attached but having difficulty in doing so, i would be grateful if i get some suggestions.thanks -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- David Grugeon -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- David Grugeon -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com Needle Gauge Chart (Solution)(2).xlsx Description: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Re: $$Excel-Macros$$ Needle Gauge Chart Calculation
Thanks Dave, thanks a lot for responding, i have attached the file to demonstrate what i want to achieve, basically what i want is when a stock is selected i want the needle to move to price of the stock, the stock prices are within the range specified in the file attached headed prices. On Thu, Feb 16, 2012 at 12:00 AM, David Grugeon grug...@gmail.com wrote: Because the graduations on the dial are non linear (and not even logarithmic) you cannot automatically calculate the values. You have to do it by trial and error. I have made a new column with my suggestions. You could fine tune this if you wanted to by using more fractional numbers but for practical purposes my suggestions will probably be adequate. I do not understand exactly what you are trying to do so if this is not OK try giving more of an explanation. On 16 February 2012 00:51, hilary lomotey resp...@gmail.com wrote: Dear Experts, i have created a speedometer chart, however i am trying to calculate the needle or indicator using the parameters as attached but having difficulty in doing so, i would be grateful if i get some suggestions.thanks -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- David Grugeon -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com Needle Gauge Chart (Solution)(1).xlsx Description: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Re: $$Excel-Macros$$ Needle Gauge Chart Calculation
Because the graduations on the dial are non linear (and not even logarithmic) you cannot automatically calculate the values. You have to do it by trial and error. I have made a new column with my suggestions. You could fine tune this if you wanted to by using more fractional numbers but for practical purposes my suggestions will probably be adequate. I do not understand exactly what you are trying to do so if this is not OK try giving more of an explanation. On 16 February 2012 00:51, hilary lomotey resp...@gmail.com wrote: Dear Experts, i have created a speedometer chart, however i am trying to calculate the needle or indicator using the parameters as attached but having difficulty in doing so, i would be grateful if i get some suggestions.thanks -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- David Grugeon -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com Needle Gauge Chart (Solution).xlsx Description: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet