CountIFS and Sumif based on duplicate value in other columns

jennybell

New Member
Joined
Sep 10, 2024
Messages
3
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
  2. MacOS
Hi,

I have a large dataset made of orders (duplicate order id in column A for orders containing multiple items). I need to calculate total price of order based on unit price/item.
I have tried to sumif(take(filter but it doesn't work.

Same for a countifs based on multiple criteria located in different columns BUT with the need to remove the duplicates in column A. I have tried the sumproduct, filter,
unique, distinct, they all return as 1 instead of giving me proper value.

I am completely stuck... please help me. This is what my table looks like for the first question with the first order id being the SAME but with different items.

order idunit priceOrder accepted time
xxxxxxx8.990.4
xxxxxxx0.990.4
yyyyyyy1.630.7
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
What would determine whether a row is a duplicate in column A? Would the first two rows of info be duplicates, or not duplicates because their unit prices are different? What result would you want for order id xxxxxxx?
 
Upvote 0
in column A the order id would be a duplicate if they are exactly the same, for example the first two rows are the same order but the person ordered two different items priced at 8.99 and 0.99. For this specific order I would want a new column to return total price of order such as 8.99+0.99
 
Upvote 0
What would determine whether a row is a duplicate in column A? Would the first two rows of info be duplicates, or not duplicates because their unit prices are different? What result would you want for order id xxxxxxx?
in column A the order id would be a duplicate if they are exactly the same, for example the first two rows are the same order but the person ordered two different items priced at 8.99 and 0.99. For this specific order I would want a new column to return total price of order such as 8.99+0.99
 
Upvote 0

Forum statistics

Threads
1,224,800
Messages
6,181,045
Members
453,014
Latest member
Chris258

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