• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Use a scroll bar to dynamically add from a horizontal list of #'s

middlingone

New Member
Hello,

I've got a horizontal row of cost data that corresponds to months 1-18. I'd like the user to be able to see the sum of the data using a scroll bar that allows them to adjust the # of months from 1-18. e.g. if they slide the bar to 12 they see the sum of the row for months 1-12. How can I do this?
 
Hi, middlingone!


First of all welcome to Chandoo's website Excel forums. Thank you for your joining us and glad to have you here.


As a starting point I'd recommend you to read the green sticky topics at this forums main page. There you'll find general guidelines about how this site and community operates (introducing yourself, posting files, netiquette rules, and so on).


Among them you're prompted to perform searches within this site before posting, because maybe your question had been answered yet.


Feel free to play with different keywords so as to be led thru a wide variety of articles and posts, and if you don't find anything that solves your problem or guides you towards a solution, you'll always be welcome back here. Tell us what you've done, consider uploading a sample file as recommended, and somebody surely will read your post and help you.


And about your question...


If you haven't performed yet the search herein, try going to the topmost right zone of this page (Custom Search), type the keywords used in Tags field when creating the topic or other proper words and press Search button. You'd retrieve many links from this website, like the following one(s) -if any posted below-, maybe you find useful information and even the solution. If not please advise so as people who read it could get back to you as soon as possible.


In this case, do this:

a) assume your data is in range A1:R1

b) leave A2 free

c) in A3 type: =SUMA(INDIRECTO("A1:"&DIRECCION(1;A2;4;1))) -----> in english: =SUM(INDIRECT("A1:"&ADDRESS(1,A2,4,1)))

d) go to the Programmer tab (if you had it disbled, enable it first from Options), Controls group, Insert icon, and insert an ActiveX scroll bar control (select a rectangle, ...)

e) right button on the added control and set the following properties to the related values:

LargeChange: 3

LinkedCell: A2

Max: 18

Min: 1


Regards!
 
Back
Top