SOLVED

Formula Help

Copper Contributor

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

9 Replies

@CalJones 

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.

@Sergei Baklan 

I can't show my data as it contains sensitive info.

Please find attached a mock layout etc.

 

best response confirmed by CalJones (Copper Contributor)
Solution

@CalJones 

Thank 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").

@CalJones 

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.

@NikolinoDE 

This data structure is some different from the screenshot.

Couldn't see the previous answer to understand better. For me the whole thing always hangs a bit, somehow I get the updates in the forum always delayed ... strange. Anyway it is how it is, do you carry on?

@NikolinoDE 

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.

Thank you very much.
Cal

@CalJones , you are welcome

1 best response

Accepted Solutions
best response confirmed by CalJones (Copper Contributor)
Solution

@CalJones 

Thank 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").

View solution in original post