Originally posted on Excel Forum: Converting three calculators on a worksheet into one with a dropdown box
I have attached a copy of my calculator, which manipulates the figure depending on the data input in various cells.
The user inputs a number in D6, D10 & E10 or D14 & E14 depending on the situation.
C6:D7 for No Payments
=IF(ISBLANK(D6),"",(C6*D6))
C10, D10 & E10 for Credit on Account
=IF(ISBLANK(E10),"",(C10+E10))
C14, D14 & E14 for Debit on Account
=IF(ISBLANK(E14),"",(C14*D14-E14))
I want to merge everything so that the user uses the same boxes for each scenario by choosing whether there are no payments, a credit on the account or a debit on the account from a dropdown box that should appear in B5 with those options.
This would dictate whether there were three headings or four and the formula/calculation/validation used as mentioned above.
If the user selected no payments, the headings would be Monthly Amount, Instalments and Total.
If the user selected credit on account, the headings would be Monthly Amount, Instalments, Credit and Total
If the user selected debit on account, the headings would be Monthly Amount, Instalments, Debit and Total
The options must be hardcoded, not referring to external cells. It's close to working, but not quite.
I am trying to avoid having extra cells and was looking for a hard coded solution as I said before. I've attached my spreadsheet so you can see my progress.
Mine works fairly well, except for three issues.
Problems:
The first is the way that the debit calculator resets itself to hide a row when "No Payments" is selected, particularly now that the Day & Discount calculator has been introduced. Using the reset buttons causes multiple columns to be hidden incorrectly instead of "Credit" in Cell F10.
The second is the way that the day and discount calculator doesn't hide the other options when a selection is made. I'm trying to replicate the same type of behavior used with the debit calculator for the column, but with the relevant rows instead (obviously now with the same flaw hiding lots of rows).
The dropdown arrow also seems to move to the second to last row when the option changes from "No Discount". I want it to stay put.
Spreadshet: WCD EXPORT.xlsm
Thank you for your help.
I have attached a copy of my calculator, which manipulates the figure depending on the data input in various cells.
The user inputs a number in D6, D10 & E10 or D14 & E14 depending on the situation.
C6:D7 for No Payments
=IF(ISBLANK(D6),"",(C6*D6))
C10, D10 & E10 for Credit on Account
=IF(ISBLANK(E10),"",(C10+E10))
C14, D14 & E14 for Debit on Account
=IF(ISBLANK(E14),"",(C14*D14-E14))
I want to merge everything so that the user uses the same boxes for each scenario by choosing whether there are no payments, a credit on the account or a debit on the account from a dropdown box that should appear in B5 with those options.
This would dictate whether there were three headings or four and the formula/calculation/validation used as mentioned above.
If the user selected no payments, the headings would be Monthly Amount, Instalments and Total.
If the user selected credit on account, the headings would be Monthly Amount, Instalments, Credit and Total
If the user selected debit on account, the headings would be Monthly Amount, Instalments, Debit and Total
The options must be hardcoded, not referring to external cells. It's close to working, but not quite.
I am trying to avoid having extra cells and was looking for a hard coded solution as I said before. I've attached my spreadsheet so you can see my progress.
Mine works fairly well, except for three issues.
Problems:
The first is the way that the debit calculator resets itself to hide a row when "No Payments" is selected, particularly now that the Day & Discount calculator has been introduced. Using the reset buttons causes multiple columns to be hidden incorrectly instead of "Credit" in Cell F10.
The second is the way that the day and discount calculator doesn't hide the other options when a selection is made. I'm trying to replicate the same type of behavior used with the debit calculator for the column, but with the relevant rows instead (obviously now with the same flaw hiding lots of rows).
The dropdown arrow also seems to move to the second to last row when the option changes from "No Discount". I want it to stay put.
Spreadshet: WCD EXPORT.xlsm
Thank you for your help.