Help please. Condensing list and adding numbers in separate cells.

Mandy_

New Member
Joined
Jan 29, 2021
Messages
39
Office Version
  1. 365
Platform
  1. MacOS
Hi,

I was wondering if you could help me please.

I have a list of ingredients. Screen shot is attached. with the quantities next to it.

I'd like to reduce the list to only show the items once, but add the numbers next to the fields.

I have 365 so can use dynamic arrays.

Thank you for your help.
 

Attachments

  • Capture 18.1.25.PNG
    Capture 18.1.25.PNG
    11.6 KB · Views: 10

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hello, you could e.g. try:

Excel Formula:
=GROUPBY(A1:A5,B1:B5,SUM,,0)

or

Excel Formula:
=HSTACK(UNIQUE(A1:A5),SUMIFS(B1:B5,A1:A5,UNIQUE(A1:A5)))
 
Upvote 0
Solution
Another alternative might be to add headings (or perhaps in your real data you already have them?) and use Excel's built-in Pivot Table feature (found on the 'Insert' ribbon tab)

25 01 19.xlsm
ABCDE
1IngredientsQuantitySum of Quantity
2Carrots2IngredientsTotal
3Blueberries3Blueberries3
4Strawberries5Carrots6
5Carrots4Strawberries7
6Strawberries2Grand Total16
7
PT
 
Upvote 0
Another alternative might be to add headings (or perhaps in your real data you already have them?) and use Excel's built-in Pivot Table feature (found on the 'Insert' ribbon tab)

25 01 19.xlsm
ABCDE
1IngredientsQuantitySum of Quantity
2Carrots2IngredientsTotal
3Blueberries3Blueberries3
4Strawberries5Carrots6
5Carrots4Strawberries7
6Strawberries2Grand Total16
7
PT
This is a great idea!! Thank you.
 
Upvote 0

Forum statistics

Threads
1,226,100
Messages
6,188,913
Members
453,510
Latest member
Tastech

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top