Formula to get unique summary from data instead of Pivot/duplicate remove option

harinsh

Active Member
Joined
Feb 7, 2012
Messages
273
Hi Team,

I am looking for some help here, I have base data and need to get the unique info based on one criteria in the below example is is "Category".

Why I am looking formula is because it should dynamic and should not perform pivot/remove duplicate every time.


Base Data
ProjectCategoryAssigned ToCustomerHoursDays
Project 1Category 1Employee 1Cust 150059
Project 3Category 1Employee 2Cust 150059
Project 2Category 2Employee 4Cust 240031
Project 4Category 2Employee 3Cust 240031
Project 8Category 2Employee 1Cust 240031
Project 5Category 3Employee 2Cust 330039
Project 6Category 4Employee 4Cust 55009
project 9Category 4Employee 1Cust 55009
Project 7Category 5Employee 1Cust 275024

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>

Require Output
CategoryHours
Category 1500
Category 2400
Category 3300
Category 4500
Category 5750

<colgroup><col><col></colgroup><tbody>
</tbody>

Thank you,
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
How about

Excel 2013/2016
ABCDEFGHI
1ProjectCategoryAssigned ToCustomerHoursDaysCategoryHours
2Project 1Category 1Employee 1Cust 150059Category 1500
3Project 3Category 1Employee 2Cust 150059Category 2400
4Project 2Category 2Employee 4Cust 240031Category 3300
5Project 4Category 2Employee 3Cust 240031Category 4500
6Project 8Category 2Employee 1Cust 240031Category 5750
7Project 5Category 3Employee 2Cust 330039
8Project 6Category 4Employee 4Cust 55009
9project 9Category 4Employee 1Cust 55009
10Project 7Category 5Employee 1Cust 275024
Project
Cell Formulas
RangeFormula
I2=IFERROR(INDEX($E$2:$E$10,MATCH(H2,$B$2:$B$10,0)),"")
H2{=IFERROR(INDEX($B$2:$B$10,MATCH(0,COUNTIF($H$1:H1,$B$2:$B$10),0)),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Hi Fluff,

Thanks for your quick solution.

Its working perfect but taking more time in calculating ..is it because of array function? Is there any way to speed up the formula? Thank you
 
Upvote 0
How about
=IFERROR(INDEX($B$2:$B$10,MATCH(0,INDEX(COUNTIF($H$1:H1,$B$2:$B$10),,),)),"")
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,216,084
Messages
6,128,724
Members
449,465
Latest member
TAKLAM

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