I have an excel worksheet that contains data as pic related
I want to create a formula (not VBA, unless it is mandatory) so that I can multiply the values under "POT(MW)" by a column established in another sheet. Note that this must be for each row
Ive tried doing SUMPRODUCT(D3:JC3*(D2:JC2="POT(MW)"), A2:A53)
However, this doesnt work, as each unit (U1, U2, U6...) contains 5 columns, which creates an array in D3:JC3*(D2:JC2="POT(MW)" with a dimension bigger than the one I need to multiply by (A2:A53)
Is there a way to make this with a formula or do I need to hop into VBA? My problem is creating an array formed only by the columns "POT(MW)"
>>328395
Thinking about it I also accept VBA code, as I think a formula would be unnecessary complex and hard to handle
Unsure, done nothing that complicated before.
Maybe press F4 to make your references absolute.