Dec 05 2020 05:40 AM
Hello all,
I'm trying to see if there's a way to make this happen automatically in excel.
If I have a list several (including multiples) items and in another column I have the cost price, is there a way I could automatically calculate all of one item.
e.g.
Apples 2p
Bananas 12p
Apples 13p
Grapefruits 3p
Is there a way I could calculate this automatically?
Ie a lookup or if Apples, then sum of the next column?
Help me please!! Many thanks
Cal
Dec 05 2020 06:14 AM
Cal, you can, but the question is how actually the price is defined. Is "2p" the text, or that's number formatted as 2p, and is that always "p" at the end of the price or that could be another notation. Better if you provide small sample file, with data as in your post, to illustrate formatting.
Dec 05 2020 06:22 AM
I can't show my data as it contains sensitive info.
Please find attached a mock layout etc.
Dec 05 2020 06:31 AM
SolutionThank you. We don't need your entire file, just what is on screenshot but as file.
If I understood correctly you'd like to sum (OUT) by Item, perhaps by month/year as well. When PivotTable will be a right solution. As option SUMIFS(out column, item column, "Apples").
Dec 05 2020 06:33 AM
Here is a small and simple example of how something like this could be done.
It works like a small calculator, you just have to select the product via the dropdown menu and the number of the product ... everything else is automatic. As long as the correct individual price per product was set at the beginning.
I would be happy to know if I could help.
Nikolino
I know I don't know anything (Socrates)
* Kindly Mark and Vote this reply if it helps please, as it will be beneficial to more Community members reading here.
I would be happy to know if I could help.
Nikolino
I know I don't know anything (Socrates)
* Kindly Mark and Vote this reply if it helps please, as it will be beneficial to more Community members reading here.
Dec 05 2020 06:36 AM
This data structure is some different from the screenshot.
Dec 05 2020 06:40 AM
Dec 05 2020 06:45 AM
Usually I refresh before answer, previous post doesn't appear automatically. Anyway, it's always better to have the sample, we may have a lot of guesses on what is actually required.
Dec 05 2020 06:31 AM
SolutionThank you. We don't need your entire file, just what is on screenshot but as file.
If I understood correctly you'd like to sum (OUT) by Item, perhaps by month/year as well. When PivotTable will be a right solution. As option SUMIFS(out column, item column, "Apples").