Sum unique values

creative999

Board Regular
Joined
Jul 7, 2021
Messages
85
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
  2. MacOS
Trying to do a sum of column B if col A = Finished (and where col c value is unique).
For example

'Finished' should = 350

Book3
ABC
1STATUSSELL PRICEREF
2START300RET5644403
3FINISHED200RET77600004
4FINISHED150RET5644403
5TBC200RET5644403
6FINISHED 200RET77600004
7FINISHED150RET5644403
8TBC200RET77600004
Sheet2
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
First thing I came up with was:

Book5
ABCDE
1STATUSSELL PRICEREF
2START300RET56444031350
3FINISHED200RET77600004
4FINISHED150RET5644403
5TBC200RET5644403
6FINISHED200RET77600004
7FINISHED150RET5644403
8TBC200RET77600004
9FINISHED1000RET9999
Sheet1
Cell Formulas
RangeFormula
E2E2=SUM(INDEX(UNIQUE(FILTER(A2:C9,A2:A9="FINISHED")),,2))
 
Upvote 0
Rows 3 & 4 match Rows 6 & 7 respectively. Where is the uniqueness you are referring to...
 
Upvote 0
Found a case where my initial approach didn't work. Rechecking?
 
Upvote 0
There is only one unique value in column C @ C9.
 
Upvote 0
When there are duplicates in column C, will the corresponding values in B also be the same? So, B3 will be the same as B6 because the C columns are the same?
 
Upvote 0
@kweaver the post does not make sense. If you look at the very first line of Post #1 the OP is looking for unique values in Column C when Column A = Finished. That criteria does not exist in the sample data provided...
 
Upvote 0
The majority of times an OP says unique, they actually mean distinct. I would have thought you'd have realised that by now, given your number of posts & length of time you have been a member here.
 
Upvote 0
@Fluff perhaps you can explain the difference between Unique and Distinct and how can it be applied here...
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,071
Latest member
cdnMech

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