+ Reply to Thread
Results 1 to 6 of 6

Drop down value to change sum of another box

  1. #1
    Registered User
    Join Date
    09-24-2011
    Location
    - Select for USA & Canada only -
    MS-Off Ver
    Excel 2010
    Posts
    4

    Drop down value to change sum of another box

    Hello.

    I am trying to create a simple function for my drop down list.
    Right now you can select "Yes" or "No" in the drop down list.

    I would like that when you select Yes the sum of a field changes (H18).

    The background of this is that i am setting up an sheet to calculate monthly interest from different loans i have.

    This drop down list should represent if i want to make monthly payments on the actual loan itself or only pay the interest.

    Column called: Interest free
    Value: YES (Equals no interest)
    Value: NO (Pay interest)

    Field H18 is the sum of H4 to H12 which are the interests from the loans.
    Field H18 is also the sum of i4 to i12 which are the payments on the loans.

    I would like that when i Select Yes (no payment on the loan) the H18 is substracted with the sum in the correct "i" field.

    I hope that i explained this in the correct way,

    I can try and upload the sheet so you can have a look at it.

    Thanks for the help.
    Attached Files Attached Files
    Last edited by Molcos; 09-25-2011 at 06:00 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Drop down value to change sum of another box

    To clarify things a little it might help to outline the expected values given your sample data.

    So for ex. given sample the value in H18 should be ?

    If E5 changes from Yes to No the value in H18 should become ?

    I would add that for H15, H18 you can look to shorten the existing syntax by using the SUM function

    Please Login or Register  to view this content.
    pending your locale (Denmark perhaps ?) you will need to adapt the above slightly

    On the subject of Location: if the locale defined in your profile is incorrect (which I suspect it is) you should update it

    As I suspect you know your locale can have a significant bearing on the correct syntax, people will generally try to adapt their suggestions based on your locale... if your locale is wrong then there's a good chance you won't be able to copy & paste the suggestions into your own file without error.

  3. #3
    Registered User
    Join Date
    09-24-2011
    Location
    - Select for USA & Canada only -
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Drop down value to change sum of another box

    Thanks for the reply DonkeyOte.

    I implemented the changes you suggested with the sum, looks better now (codewise)

    My locale is Norway, but the Excel version is english if it has anything to say?

    And to answer your question.

    If E5 is Yes then the value of i5 should be substracted from the value in H18.
    The same goes for E4 and E6, the values i4 and i6 should be substracted from h18 if the value is yes.

    I hope it is a bit clearer now.

    Thanks for the help so far.

  4. #4
    Registered User
    Join Date
    09-24-2011
    Location
    - Select for USA & Canada only -
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Drop down value to change sum of another box

    Tried some with IF commands but did not get it to work as intended.

    In my mind it would be so easy (IF E5=Yes then H18-i5)

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Drop down value to change sum of another box

    Perhaps then:

    Please Login or Register  to view this content.
    If necessary (per regional setting config.) change , in above formula to ;

  6. #6
    Registered User
    Join Date
    09-24-2011
    Location
    - Select for USA & Canada only -
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Drop down value to change sum of another box

    Perfect!!!

    That did the trick

    Awesome help from you DonkeyOte, thank you so much!

    Respectful regards.

+ 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