+ Reply to Thread
Results 1 to 9 of 9

Easy one

  1. #1
    Registered User
    Join Date
    09-26-2006
    Posts
    2

    Easy one

    Hi,

    This is my first time here and my first time trying to program in Excel.

    I have a workbook called myworkbook and within this I have 3 sheets called good, better and best.

    I have 2 questions:
    1.) How do I sum all the values in a column and then display the answer in another column of sheet GOOD. Lets say the values are from b1 - b20 and the total must appear in b22. This must be done when the user clicks a button on the sheet - ie onclick.

    2.) In my sheet called BETTER, I have a value which will always be in b22. This value will ALWAYS be less than the value in sheet GOOD, postion b22. In sheet BETTER, I now want a button that when clicked will go into a loop which adds 0.01 to the value in sheet BETTER, postion b22 until this value (in BETTER, b22) is equals to the value in GOOD, postion b22. It only has to be accurate to the closest whole number (dont worry about decimals).

    I other words - all I'm trying to do is add 0.01 to a value in one sheet until it is equal to the value in another sheet.

    Hope you can help.

    Thanks,
    NNB

  2. #2
    Forum Contributor funkymonkUK's Avatar
    Join Date
    01-07-2005
    Location
    London, England
    Posts
    500
    refer to example attachment
    Attached Files Attached Files

  3. #3
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    This does what you want all you have to do is create the buttons! however it doesnt count the amount of 0.1's that are added!

    regards,
    Simon

    Please Login or Register  to view this content.

  4. #4
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    >>>>>>>>>>>>>>>Pays Homage to Funkymonk a true god!<<<<<<<<<<<<

    I know when ive been beaten!

    Regards,
    Simon

  5. #5
    Forum Contributor funkymonkUK's Avatar
    Join Date
    01-07-2005
    Location
    London, England
    Posts
    500
    Sorry for stepping on your toes Simon but I think I bet you to it.

    Just some advice you should add .value when you are refer to values for a particular cell oh and they way you did it allows the user to see what the formula is but you can use this function application.worksheetfunction.sum (range) check my example.


  6. #6
    Forum Contributor funkymonkUK's Avatar
    Join Date
    01-07-2005
    Location
    London, England
    Posts
    500
    Quote Originally Posted by Simon Lloyd
    >>>>>>>>>>>>>>>Pays Homage to Funkymonk a true god!<<<<<<<<<<<<

    I know when ive been beaten!

    Regards,
    Simon
    hehehe but you beaten me by the amount of posts you have submitted.

  7. #7
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    I did say i wasn't an expert.........see limited knowledge gets you knowledge..thanks for the pointer and i did check your example.........Very smart!

    Thanks again oh great one!

    Regards,
    Simon

  8. #8
    Registered User
    Join Date
    09-26-2006
    Posts
    2

    Thanks!!

    Hi all,

    Just want to say thanks for the help. It works perfectly and this little app has saved us a WHOLE LOT of time!!!

    Thank you very-very much.
    NNB

  9. #9
    Forum Contributor funkymonkUK's Avatar
    Join Date
    01-07-2005
    Location
    London, England
    Posts
    500
    glad it has been some sort of assistance and that I was able to help

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1