A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi Richard
=PRODUCT(A2, IF(B2:D2=1, B$1:D$1))
or
=PRODUCT(A2, IF(B2:D2, B$1:D$1))
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
If I have a table with which indicates if a number is to be multiplied and then another
whoch states the amout to multiply by so;
so the first row would 2 * 2 *3 *4 and the second would be 3 * 3 what is the best way I have though of switch, obviously if I were summing each I could use an array so;
SUMPRODUCT( B5 *(C3:E3*C5:E5) )
the best i have come up with is just a lot of ifs;
any better ways, let ?
Richard.
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
Hi Richard
=PRODUCT(A2, IF(B2:D2=1, B$1:D$1))
or
=PRODUCT(A2, IF(B2:D2, B$1:D$1))
I did not know I could use IF on an array to get a spill of results
With Excel versions that support dynamic arrays (currently 2021 and 365)
Just to add, I did not know I could use IF on an array to get a spill of results,
Thanks,
RD
Thank you,
Richard.
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more