List Unique "Names" from Column

Really easy to create a quick sales report of our dealers sales volume/realized profit using Google Sheets,

just do as Pasted below:


What is the function for UNIQUE in Numbers?


Thanks,


Mars


REPORT CSV OUTPUT"=unique(G4:G)"=sumif($G$4:$G, $K2:$K,H$4:H)"=sumif($G$4:$G, $K2:$K,I$4:I)"=sumif($G$4:$G, $K2:$K,J$4:J)
Customer NameRealized ProfitTotal SalesVolumeCustomer NameRealized ProfitTotal SalesVolume
Name1$1,924.00$2,886.0072Name1$42,110.00$63,165.001579
Name1$6,783.00$10,174.50254Name2$25,723.00$38,584.50965
Name2$6,684.00$10,026.00251Name7$34,741.00$52,111.501303
Name7$8,659.00$12,988.50325Name9$38,045.00$57,067.501427
Name9$8,699.00$13,048.50326Name8$29,242.00$43,863.001097
Name8$565.00$847.5021Name3$24,667.00$37,000.50925
Name1$5,071.00$7,606.50190Name4$12,705.00$19,057.50476
Name3$6,766.00$10,149.00254Name5$25,152.00$37,728.00943
Name4$3,397.00$5,095.50127Name6$31,990.00$47,985.001200
Name5$5,468.00$8,202.00205
Name6$9,403.00$14,104.50353
Name7$6,063.00$9,094.50227
Name9$7,904.00$11,856.00296
Name8$124.00$186.005
Name1$1,048.00$1,572.0039
Name3$3,956.00$5,934.00148
Name4$1,663.00$2,494.5062
Name5$8,363.00$12,544.50314
Name6$1,608.00$2,412.0060
Name1$7,550.00$11,325.00283
Name2$9,044.00$13,566.00339
Name7$3,710.00$5,565.00139
Name9$5,246.00$7,869.00197
Name8$5,425.00$8,137.50203
Name1$6,215.00$9,322.50233
Name1$2,266.00$3,399.0085
Name2$3,442.00$5,163.00129
Name7$487.00$730.5018
Name9$889.00$1,333.5033
Name8$9,727.00$14,590.50365
Name1$727.00$1,090.5027
Name3$6,539.00$9,808.50245
Name4$5,468.00$8,202.00205
Name5$427.00$640.5016
Name6$6,309.00$9,463.50237
Name7$8,211.00$12,316.50308
Name9$3,840.00$5,760.00144
Name8$9,809.00$14,713.50368
Name1$4,650.00$6,975.00174
Name3$4,888.00$7,332.00183
Name5$9,868.00$14,802.00370
Name6$5,635.00$8,452.50211
Name7$7,519.00$11,278.50282
Name9$5,771.00$8,656.50216
Name8$1,202.00$1,803.0045
Name1$1,380.00$2,070.0052
Name3$2,518.00$3,777.0094
Name4$2,177.00$3,265.5082
Name5$1,026.00$1,539.0038
Name6$9,035.00$13,552.50339
Name1$4,496.00$6,744.00169
Name2$6,553.00$9,829.50246
Name7$92.00$138.003
Name9$5,696.00$8,544.00214
Name8$2,390.00$3,585.0090

Mac Pro, OS X Yosemite (10.10.2), Early 2013 4 Core

Posted on Nov 4, 2016 9:10 AM

Reply
4 replies

Nov 4, 2016 10:24 AM in response to marsofearth

add one extra column an this is easy:

User uploaded file


Column E is a new column I inserted BEFORE the column with "Customer Name".

E3=IF(COUNTIF($A$2:A2, A3)=0,MAX($E$2:E2)+1, "")


this is shorthand for... select cell E3, then type (or copy and paste from here) the formula:

=IF(COUNTIF($A$2:A2, A3)=0,MAX($E$2:E2)+1, "")


select cell E3, copy

select cells E3 thru the end of column E, paste


F3=IF((ROW()−3)<MAX(E), OFFSET($A$2, MATCH(ROW()−2 ,E)−2, 0), "")

select cells F3 thru the end of column F, paste




you can even hide the new column E if you do not want to see it:

User uploaded file

Nov 4, 2016 11:02 AM in response to marsofearth

"I just don't see our sales guys getting this nerdy"


There's no reason for your sales guys to make any modifications to the formula in the extra column, or for them to even see that column. Once the formulas are there and filled into all non-header rows of the table. Numbers will automatically fill them to rows added to the table, index any rows containing a new name, and add the results to the sums in the appropriate rows to the right.


The only entries needed from your sales guys are the ones in columns A, B, C and D. If the formulas are set up correctly, the rest is all calculated by the spreadsheet—just like it is now.


Regards,

Barry


PS: Note from the English Inquisition: "Unique" is the property of being the only one of its existence within the defined universe. The function in Google Sheets and the formula set in Wayne's solution extracts each distinct name on its first appearance in the list. Pity the person (or committee) in charge of function names confused the two words, and misnamed this function.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

List Unique "Names" from Column

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.