Lookup to return value from last column from matching criteria

amolvijay

Board Regular
Joined
Nov 13, 2012
Messages
102
Office Version
  1. 365
Platform
  1. Windows
Hi Expert.. I am working on a big table wherein I need to summarize the content.. base table looks as below




PracticeLocationQ1Q1Q1Q2Q2Q2
SPOffshore
1​
2​
3​
1​
2​
3​
CLDOnsite
2​
3​
4​
2​
3​
4​
CLDOffshore
3​
4​
5​
3​
4​
5​
CLDOnsite
4​
5​
6​
4​
5​
6​
CLDOffshore
5​
6​
7​
5​
6​
7​
SPOnsite
6​
7​
8​
6​
7​
8​
ENTOffshore
7​
8​
9​
7​
8​
9​
ENTOnsite
8​
9​
10​
8​
9​
10​
ENTOffshore
9​
10​
11​
9​
10​
11​
ENTOnsite
10​
11​
12​
10​
11​
12​
SPOffshore
11​
12​
13​
11​
12​
13​
CLDOnsite
12​
13​
14​
12​
13​
14​


The summary table should look like, which is summary of resources from last month of the financial quarter... Please help me with formula to create below table

Q1Q1Q2Q2
OffshoreOnsiteOffshoreOnsite
CLD
12​
24​
12​
24​
ENT
20​
22​
20​
22​
SP
16​
8​
16​
8​
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Book1
ABCDEFGHIJKLMN
1PracticeLocationQ1Q1Q1Q2Q2Q2Q3Q3Q3Q4Q4Q4
2SPOffshore123123123123
3CLDOnsite234234234234
4CLDOffshore345345345345
5CLDOnsite456456456456
6CLDOffshore567567567567
7SPOnsite678678678678
8ENTOffshore789789789789
9ENTOnsite8910891089108910
10ENTOffshore91011910119101191011
11ENTOnsite101112101112101112101112
12SPOffshore111213111213111213111213
13CLDOnsite121314121314121314121314
14
15Q1Q1Q2Q2Q3Q3Q4Q4
16OffshoreOnsiteOffshoreOnsiteOffshoreOnsiteOffshoreOnsite
17CLD1224122412241224
18ENT2022202220222022
19SP168168168168
Sheet1
Cell Formulas
RangeFormula
C17:D19C17=SUMPRODUCT(($A$2:$A$13=$B17)*($B$2:$B$13=C$16),$E$2:$E$13)
E17:F19E17=SUMPRODUCT(($A$2:$A$13=$B17)*($B$2:$B$13=E$16),$H$2:$H$13)
G17:H19G17=SUMPRODUCT(($A$2:$A$13=$B17)*($B$2:$B$13=G$16),$K$2:$K$13)
I17:J19I17=SUMPRODUCT(($A$2:$A$13=$B17)*($B$2:$B$13=I$16),$N$2:$N$13)
 
Upvote 0
@kevin9999 Thank you very much for your response. The formula you have suggested have manual selection of last column of each quarter, I am looking for a generic formula which will be used across without specific column selection
 
Upvote 0

Forum statistics

Threads
1,223,239
Messages
6,170,947
Members
452,368
Latest member
jayp2104

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