Calculating when double up of information

Vegas01

New Member
Joined
Jun 15, 2021
Messages
43
Office Version
  1. 2019
Platform
  1. Windows
Afternoon

Below is a sample of data, Column D (Ward) - this the unique identifier but has appeared twice in the data pull I have.

How do I calculate the total in Column C (TotalPatie) with only 1 incident of Column D (Ward)

Where there is a double up of Column D (Ward) the amount in Column C needs to be added to the highest number that it relates to in Column A and not on the lower number is column A

Therefore I would like to see

Column A Column D
1463 ALN2 sum 1 - nothing sum for 757
1463 ALP4 sum 7 - nothing sum for 757
1463 ALP5 sum 10 - nothing sum for 757
1463 ALP6 sum 12 - nothing sum for 757
1463 ALP7 sum 13 - nothing sum for 757
1463 ALPS sum 7 - nothing sum for 757


Giving a total of 79 for 1463 Community
Total of 0 for 757 Community


Hope this make sense
Thanks in advance

1704259894656.png
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
From your data, its hard to know if you always have only 2 types of number in Col A.

But does this give you what you need ? (its checking colA for the "1463" reference instead ? (an is this always the same reference ?)

Excel Formula:
=SUMIFS(C2:C17,A2:A17,"=1463")

I used SUMIFS initially as I wasn't sure if there was further criteria to be added later...

cheers
Rob
 
Upvote 0

Forum statistics

Threads
1,215,084
Messages
6,123,029
Members
449,092
Latest member
ikke

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