List value only once pr. criteria

Baluba

New Member
Joined
Sep 5, 2012
Messages
7
Greetings exalted excel gurus. I have a problem which I've been trying to wrap my head around for the last hour, and any tips would be much appreciated.

I have a sheet of projects by department with corresponding revenue. The same project can be reoccuring within the same department with a different listing. It can also occur on a different department.

I would like to make a new sheet were I:

- List the projects only once pr. department, even though they appear several times in the original sheet. I will then do a sumifs on the project revenue given that department.

- The formula would need to check if the project has already been listed in this department before to avoid duplicates.

Example from original sheet:

DepartmentProject No NOK Amount
4313011454 142,003
4313010759 11,658
4313010759 2,793
4403010759 56,481

<tbody>
</tbody><colgroup><col span="2"><col></colgroup>


Here I would ie, sum the two listing from the 3010759 project for dept. 431 for a total of 14,451 and another one for this project under dept. 440 for 56,481.

Any tips on how this could be achieved smoothly?
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,213,522
Messages
6,114,112
Members
448,549
Latest member
brianhfield

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