Forum Discussion

AnnabelleMay's avatar
AnnabelleMay
Copper Contributor
Mar 31, 2022
Solved

Adjusting Premade Template - Textboxes to calculate table info

Kia ora,  I have downloaded a template to calculate meal costs and am in the process of editing it to suit my needs however I'm struggling to figure out how to do what I want (see image). The first ...
  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Mar 31, 2022

    AnnabelleMay I'm sure mathetes won't mind if I add some comments. You can customise this template, though it will require quite a bit of manual "labour". And depending on your skills (you mention to be a newbie) that might be a challenge.

     

    The template is driven by calculations on a hidden sheet called "calculations". When ever you type a Category in the shopping list it will include in a list that will be used to sum the totals by category. But, beware, if you miss-spell a category name you'll end up with two separate ones. Not very smart, I would say. Leaving the Category empty will place the product in "Other". Then it goes through several steps to rank all categories by amount and sort them in descending order, but these formulae contain hard-coded numbers that you need to change yourself if you have added a category.

     

    The fancy shapes in the list on the right-hand side are linked, again by hard-coded references, to the ranked list of amounts per category in the calculations sheet. And the shapes intend to be displayed in ascending order. If the number of categories changes you'll have to be very careful that you add shapes in the correct place with the correct reference to the calculation sheet for both the category name and the amount. Increasing the number of decimals, by the way is done by changing the formulae in column L of the calculation sheet to round to 2 decimals.

     

    Confused? I'm not surprised. This template works just fine, although it's not very well designed, if you stick to its initial set-up. Use no more that 4 named categories, group everything else in Other by leaving the category blank. This will then fill the 6 shapes correctly (4 named, 1 other and 1 for the total) without having to change the formulae.

     

    I attached the template that has one extra category "Chilled". I just changed the one on row 7. Also adjusted the amounts in the shapes to display two decimals.

     

    As a final recommendation I would suggest you learn about Data Validation and Pivot Tables and ditch this template. True, the end result may not be as colourful as the template, but it will be a lot easier to maintain. Added an example of a simple pivot table in the file.

     

Resources