Formula to check if data is a bulk delivery

Prinny

New Member
Joined
Oct 24, 2015
Messages
14
Hi all, hoping you can help as I'm a bit lost with this.
My data has several columns of information regarding deliveries, the dates they were made and if all the items ordered by the customer were in the delivery.

I need a formula to check the data and put a value of "bulk" if a delivery with multiple items was made to the same company on the same date. It should only say "bulk" once for each delivery so I can later count the number of bulk deliveries.

If a delivery was made with only one item, it should not be counted.

Ultimately, I am trying to work out how many "bulk" deliveries were made in a timeframe and then how many of the ordered items in that delivery were sent or not sent.

Data would look like:

Date / company name / item name / item sent? / bulk check
01.01.2019 / company A / oranges / no / bulk
01.01.2019 / company A / apples / yes / (blank)
01.01.2019 / company A / peaches / yes / (blank)
02.02.2019 / company B / oranges / yes / (blank)
03.03.2019 / company A / oranges / yes / bulk
03.03.2019 / company A / peaches / no/ (blank)

I need the formula to show in the last column that the delivery on 01.01.2019 was a bulk order (counted only once)

The delivery on 02.02.2019 is not a bulk order as it is only one item.
The delivery on 03.03.2019 is a bulk order.

After that, I will try to find a way to look at each bulk order and tell me how many items were ordered (number of rows for that delivery), how many were delivered and how many were not delivered (yes or no in column D)

I might be going about this the wrong way so would be grateful of any advice.

I am working in Excel 2010.
Thanks
 
Last edited:

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Try:

Excel 2012
ABCDEFGH
1DateCompany NameItem NameItem sent?Bulk check# ordered# delivered# not delivered
21-JanAorangesnobulk321
31-JanAapplesyes
41-JanApeachesyes
52-FebBorangesyes
63-MarAorangesyesbulk211
73-MarApeachesno

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet5

Worksheet Formulas
CellFormula
E2=IF(COUNTIFS($A$2:$A2,A2,$B$2:$B2,B2)=1,IF(COUNTIFS(A:A,A2,B:B,B2)>1,"bulk",""),"")
F2=IF(E2="bulk",COUNTIFS(A:A,A2,B:B,B2),"")
G2=IF(E2="bulk",COUNTIFS(A:A,A2,B:B,B2,D:D,"yes"),"")
H2=IF(E2="bulk",F2-G2,"")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Hi Eric,

Thank you so much for posting this brilliant solution. It works perfectly, exactly what I needed.

I was trying lots of complicated "if a2 is the same as a3 but not the same as a1" type formulas and just working myself into knots. I would never have thought of using Countifs as a condition. I think i'll look it up and learn it for future use!

Thank you very much for your help
 
Upvote 0

Forum statistics

Threads
1,213,532
Messages
6,114,177
Members
448,554
Latest member
Gleisner2

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