"ProductIF" with Spill

alibini

New Member
Joined
Mar 15, 2020
Messages
30
Office Version
  1. 365
Platform
  1. Windows
Hi, I am trying to do something simple but finding it very hard.

I have a table like this:

NameTicket
Bill7
Bill5
Bill8
Tom6
Tom7
Tom4
James2
James3

I want to add one SPILL/Dynamic formula in a third column to give me the product of all Ticket values for each name. I don't mind if it is duplicated or not.

The result can look like one of these:


NameTicketProductNameTicketNameProduct
Bill7280Bill7Bill280
Bill5280Bill5Tom168
Bill8280Bill8James6
Tom6168Tom6
Tom7168Tom7
Tom4168Tom4
James26James2
James36James3

I can only succeed with this task if I apply a formula in every row rather than dynamically.

Many thanks and HNY.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Hello, one way to do it could be:

Excel Formula:
=MAP(A2:A9,LAMBDA(x,PRODUCT(FILTER(B2:B9,A2:A9=x))))
 
Upvote 0
IF you have the new GROUPBY function you could also do it simply like this

25 01 01.xlsm
ABCDE
1NameTicket
2Bill7Bill280
3Bill5James6
4Bill8Tom168
5Tom6
6Tom7
7Tom4
8James2
9James3
Products
Cell Formulas
RangeFormula
D2:E4D2=GROUPBY(A2:A9,B2:B9,PRODUCT,,0)
Dynamic array formulas.


Another option might be to use Excel's built-in Pivot Table feature (on the Insert ribbon tab)

25 01 01.xlsm
ABCDE
1NameTicketRow LabelsProduct of Ticket
2Bill7Bill280
3Bill5James6
4Bill8Tom168
5Tom6
6Tom7
7Tom4
8James2
9James3
Products (2)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,225,462
Messages
6,185,129
Members
453,279
Latest member
MelissaOsborne

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