I have an excel input data like below
purchase revenue FY_1920 FY_2021 FY_2122
PID21 kids & adults (KA) 75 75 80
PID21Elderly and old (EO) 75 75 80
PID76Men or boys 80 75 80
PID52 Women or ladies 100 25 100
Total 330 250 340
which looks like below
Now, I would like to fill the below output
table based on below logic
Fill in cars
row based on keywords PID21 and PID24
of input table
Fill in Electric Vehicle
row based on values of keywords from PID43, PID76, PID152
of input table
criteria table looks like below
I was trying something like below with the help of online support
SUMIFS(C$21:C$25, $B$21:$B$25, INDEX(Sheet1!$A:$A, LARGE(IF(Sheet1!$B:$B = Input!$B5, ROW(Sheet1!$B:$B), ""),1))
I expect my output to be like as below