Summarize Data from table - deal with dublicates

nikolacm

New Member
Joined
Mar 31, 2021
Messages
31
Office Version
  1. 365
Platform
  1. Windows
The following table presents room type categories (Local Name) and sub categories (1-bd to 5-bd). In terms of categories several dublicates are situated. How can we deal with them ?
The new table should indicate Local Name (cleared from dublicates) and for each subcategory (1-bd to 5-bd) the total number of units. The latter can be done by using sumif function.

Excel Formula:

Local NameTotalTotal GFA1-bd2-bd3-bd4-bd5-bd
Slot 3 Apartments717,300.0035279--
Slot 3 Apartments353,970.0011177--
Slot 3 Villas51,530.00--23-
Slot 3 Villas41,260.00--13-
Slot 3 Villas102,940.00--64-
Slot 3 Villas1550.00-----
Slot 3 Villas42,300----3
Slot 2 Apartments131,360.00652--
Slot 2 Apartments192,060.00874--
Slot 2 Apartments445,255.00112310--
Slot 2 Apartments293,395.009137--
Slot 2 Villas184,590.00-99--
Slot 2 Apartments142,052.00266--
Slot 2 Villas41,000.00-22--
Slot 2 Villas1650.00-----
Slot 2 Apartments243,915.00-915--
Slot 2 Apartments91,315.00144--
Slot 2 Apartments111,900-38--
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
If you make your data table an actual Excel Table so that your formulas automatically expand you can do something like this:

Book2
ABCDEFGHIJKLMNOPQR
1Local NameTotalTotal GFA1-bd2-bd3-bd4-bd5-bdLocal NameTotalTotal GFA1-bd2-bd3-bd4-bd5-bd
2Slot 3 Apartments717,300.0035279Slot 3 Apartments1061127046441600
3Slot 3 Apartments353,970.0011177Slot 3 Villas248580009103
4Slot 3 Villas51,530.0023Slot 2 Apartments1632125237705600
5Slot 3 Villas41,260.0013Slot 2 Villas2362400111100
6Slot 3 Villas102,940.0064
7Slot 3 Villas1550
8Slot 3 Villas42,3003
9Slot 2 Apartments131,360.00652
10Slot 2 Apartments192,060.00874
11Slot 2 Apartments445,255.00112310
12Slot 2 Apartments293,395.009137
13Slot 2 Villas184,590.0099
14Slot 2 Apartments142,052.00266
15Slot 2 Villas41,000.0022
16Slot 2 Villas1650
17Slot 2 Apartments243,915.00915
18Slot 2 Apartments91,315.00144
19Slot 2 Apartments111,90038
Table
Cell Formulas
RangeFormula
K2:K5K2=UNIQUE(Table1[Local Name])
L2:R5L2=SUMIFS(INDEX(Table1,0,MATCH(L$1,Table1[#Headers],0)),Table1[Local Name],$K2#)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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