Solved

Struggling with rotation and donut charts

Posted on 2013-12-11
6
535 Views
Last Modified: 2013-12-22
Following getting some help on a previous question Old Quesiton I thought I had it all sorted and closed the question however I've now discovered an issue I didn't anticipate.

As can be seen in the attached Excel workbook.  I have donut chart showing the positions of some curtains on a circular track.  There are 4 curtains on an outer track and one curtain on an inner track.  In the example the curtains all move about 5 times so there are 5 groups of numbers and charts

The columns are:-

A - The Label of the points of each curtain (a startting point and ending point for each curtain).
B - The colour of the curtain
C - The position of the point.  This is essentially in degrees with trailing 00's with 0 at the top centre.  This number can be negative or multiple rotations
D- I was trying to break the figure in C into a single rotation of a circle in degrees thinking this may help
E - The segment size for the donut chart

So the rows with values only in col E are the remainder of a 360 circle not taken up by the segments with curtains.

My issue comes in that Im getting lost with negative values or anything more complicated than the curtains being in the 1st rotation.
Curtain-Rotations.xlsx
0
Comment
Question by:simonwait
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39711018
Use this formula in column D

=C2/100-INT(C2/36000)*360
0
 
LVL 1

Author Comment

by:simonwait
ID: 39712393
Thanks for that but Im not sure this works.  I think its because the values in Col D arent sorted into a numerical order.  The trouble is I need to keep the order the same (Outer1, Outer 2, Outer 3 etc...)

                                                          300
Outer 1      Red              42000      60                20
Outer 2      Red              40000      40                0.3
Outer 3      Yellow      39970      39.7      3        19.62
Outer 4      Yellow      35932      359.32       115.32
Outer 5      Orange      24400      244                37
Outer 6      Orange      20700      207                0
Outer 7      Green      20700      207                88
Outer 8      Green      11900      119                119
Inner 1      Blue                9000      90                90
Inner 2      Blue               -9000      270                180
                                                          90
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39713142
Im not sure this works

What does not work? What is it supposed to do?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:simonwait
ID: 39713504
From the figures above the chart appears as in the image attached Chart using data I think that the Red curtain should be between 40 & 60 degrees (around 2 o'clock) and the yellow should go from around 12 o'clock (359 deg) to close to the red (39.7 deg). The orange should be around 7/8 o'clock (207-244 deg) and the green should be quite large between about 4 oclock and 7 oclock (119 - 207 deg)
0
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 500 total points
ID: 39728542
I have redone the entire thing using shapes and macros. Try it and give your comments.
Copy-of-Curtain-Rotations-1.xlsm
0
 
LVL 1

Author Comment

by:simonwait
ID: 39735035
Wow that certainly looks like it will probably work.  I'm now trying to figure out what you have done so that I can use it in my workbook.  The idea being that as the code imports the figures it then also creates the image for those figures before moving down the sheet and importing the next set of figures.  I've got as far as understanding the if statements but I'm now trying to understand from when you start resolving x & y.
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question