Sum all only once with column containing potential duplicates

helpmeplz_

New Member
Joined
Aug 25, 2017
Messages
17
Office Version
  1. 365
Platform
  1. Windows
I have 7 columns that I have "automated," but now they don't like the automation because the dataset must be sorted a to z to function. Can you help me re-automate these functions so the data doesn't need to be sorted a to z?

Excel Formula:
=IF($A4=$A5,"",SUMIFS($I:$I,$A:$A,$A4))
Excel Formula:
=IFERROR(IF($A4=$A5,"",SUMIFS($N:$N,$A:$A,$A4))+IF($A4=$A5,"",SUMIFS($P:$P,$A:$A,$A4)),"")
Excel Formula:
=IF($A4=$A5,"",SUMPRODUCT(($A$4:$A$1000=$A4)*($B$4:$B$1000)*$K$4:$K$1000)/$L4)


Column A is just data that was originally sorted a to z to automate, starting at A4 but would now be unsorted. Trying to not double count data because it's based on column A and column A will now not be sorted.

Column A
A4 Amazon
A5 Amazon
A6 Best Buy
A7 Amazon
A8 Best Buy
A9 Target
A10 Amazon
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
=IFERROR(IF($A5=$A6,"",SUMIFS($N:$N,$A:$A,$A5))+IF($A5=$A6,"",SUMIFS($P:$P,$A:$A,$A5)),"")
Can't understand the need of IFERROR

Check this and revert -

Excel Formula:
=IF(Countifs($A$4:$A5,$A5)>1,"",SUMIFS($N:$N,$A:$A,$A5)+SUMIFS($P:$P,$A:$A,$A5))
 
Upvote 1

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,624
Latest member
gregg777

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