Sumproduct Array selection based on condition

amolvijay

Board Regular
Joined
Nov 13, 2012
Messages
101
Office Version
  1. 365
Platform
  1. Windows
Hi Experts,
Requesting your help...
I am working on a table where in I need to get value based on sumproduct of two columns. One set of column values should be taken from array based on specific condition...

A, B, C is array which should be picked up for sumproduct, based on E1-K1 values.....For E n F, we should select Array A2:A7, for G, H it should be B and for J, K it should be C

ABCDEFGHIJK
1​
FY22FY23FY23-1FY22FY22FY23FY23FY23-1FY23-1FY23-1
2​
1​
10​
100​
MARAPRMAYJUNJULAUGSEP
3​
2​
20​
200​
1​
1​
1​
1​
1​
1​
1​
4​
3​
30​
300​
1​
1​
1​
1​
1​
1​
1​
5​
4​
40​
400​
1​
1​
1​
1​
1​
1​
1​
6​
5​
50​
500​
1​
1​
1​
1​
1​
1​
1​
7​
6​
60​
600​
1​
1​
1​
1​
1​
1​
1​
8​
1​
1​
1​
1​
1​
1​
1​
8​
10​
Total
21​
21​
210​
210​
2100​
2100​
2100​
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
It's a strange sample data you have shared - From E3:K8 all values are 1

What all values you want to pull from Column A:C in Column E:K should be clear from the sample data.

All that can be understood is that you are trying to pull some data on the basis of FY you have marked from A1:C1

Post a better sample data to understand your need and to help you in a better way.
 
Upvote 0
How about
Fluff.xlsm
ABCDEFGHIJK
1FY22FY23FY23-1FY22FY22FY23FY23FY23-1FY23-1FY23-1
2110100MARAPRMAYJUNJULAUGSEP
32202001111111
43303001111111
54404001111111
65505001111111
76606001111111
81111111
9
10Total2121210210210021002100
Data
Cell Formulas
RangeFormula
E10:K10E10=SUMPRODUCT(($A$1:$C$1=E1)*($A$2:$C$7)*(E3:E8))
 
Upvote 0
Solution
How about
Fluff.xlsm
ABCDEFGHIJK
1FY22FY23FY23-1FY22FY22FY23FY23FY23-1FY23-1FY23-1
2110100MARAPRMAYJUNJULAUGSEP
32202001111111
43303001111111
54404001111111
65505001111111
76606001111111
81111111
9
10Total2121210210210021002100
Data
Cell Formulas
RangeFormula
E10:K10E10=SUMPRODUCT(($A$1:$C$1=E1)*($A$2:$C$7)*(E3:E8))
Hi Fluff

Thank you very much....solution works for me...
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,700
Messages
6,126,301
Members
449,308
Latest member
VerifiedBleachersAttendee

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