How To Consolidate Data Conditionally?

xlmaniac

Well-known Member
Joined
Jul 2, 2009
Messages
531
Office Version
  1. 2010
Platform
  1. Windows
Dear All,
I have got the following sample data set in Sheet1 across A1:D9 as follows:-
1719918706055.png

I need to populate Summary in Sheet2 as follows:-
1719918784320.png

The formulae need to populate aggregated value from Sheet1 based on the TYPE(Column B) and return the result across B2:C3
Please help with the formulae in Sheet2 across B2:C3 which can return the desired result as shown above.
Regards
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
In Sheet1, add this formula in Column E2 and drag it down:

Excel Formula:
=IFERROR(INDEX($B$2:$B$9,MATCH(0,COUNTIF($E$1:E1,$B$2:$B$9),0)),"")

In Sheet2, add this formula in Column B1:

Excel Formula:
=TRANSPOSE(Sheet1!E2:E9)

Cell B2 Formula:

Excel Formula:
=SUMIF(Sheet1!$B$2:$B$9,B$1,Sheet1!$C$2:$C$9)

Cell B3 Formula:

Excel Formula:
==SUMIF(Sheet1!$B$2:$B$9,B$1,Sheet1!$D$2:$D$9)

Cell C2 Formula:

Excel Formula:
==SUMIF(Sheet1!$B$2:$B$9,C$1,Sheet1!$C$2:$C$9))

Cell C3 Formula:

Excel Formula:
==SUMIF(Sheet1!$B$2:$B$9,C$1,Sheet1!$D$2:$D$9))
 
Upvote 0
Thanks for your reply!!
In Sheet1, after putting the formulae, I am getting entire blank columns.
Please check once.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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