Need Assistance with either a Formula or VBA.

Giovanni03

New Member
Joined
May 23, 2023
Messages
33
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hi!

I've been working on a report and I'm currently stuck on a section in which I'm trying to pull the qty order numbers are listed from one sheet and paste that qty on another. I've been trying to use formulas to make this work but i cant seem to get it done, I've used countifs, sum, and combination of both.

On sheet "Report" column H its where I want to have the qty of orders listed. On sheet "Drain" column J is where all the orders are listed. The crucial parts is that column B on sheet "Report" must match column D on sheet "Drain". Also need to exclude counting duplicates.

Below is an example

Column J
7419638
4270805
7434994
7434994
9114133
9114133
9114133


All of the orders above are assigned to "RT004" which both sheets list. so the RT004 has 4 orders.

Appreciate any help with this!!!
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
That sample isn't very robust. Showing just one column doesn't quite give us all the needed information.
Can you post and the necessary columns from BOTH sheets, so we can see exactly what all your data looks like?

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
I apologize for the really late reply, i've been caught up with a lot of projects.

Below is an example of what im trying to find a solution to. On sheet Report im looking to find the total of orders that were incomplete by the driver. So in column E the driver had 15 stops. Sheet Drain shows how many orders were incomplete (Column J), in this case it was 4. But one of the issues is that order numbers are duplicated due to them having more than one item on it.

So im looking to have excel identify how many orders were incomplete and paste it into sheet report column H by driver. So column C on sheet Report must match Column D on sheet Drain.



Book1
ABCDEFGH
1DriverTrailer NumberLocationRouted StopsActual StopsQty R/E OrdersIncompleted R/E Orders Incomplete Orders
2John Doe # 1001C_073123RTSTG004A181500
Report


Book1
ABCDEFGHIJ
1statusRouteIdReasonCodestagingLocationcarrierMovewaveshipmentIDstopopenBoxFlagorderNumber
2Good2319_001CRTSTG004A48077567057386581911252100
3Good2319_001CRTSTG004A48077567057386580715337022
4Good2319_001CRTSTG004A48077567057386580917419638
5Good2319_001CRTSTG004A48077567057386580917419638
6Good2319_001CRTSTG004A48077567057386581118270805
7Good2319_001CRTSTG004A48077567057386581118270805
Drain
 
Upvote 0
On your "Drain" sheet, what field is used to match those record to the particular driver on your "Report" sheet?
I imagine that your "Drain" sheet will probably have lots of data for different drivers. If that is the case, we need the ability to match up the two lists by driver.
Or are we matching on "Location/stagingLocation" (the only common field I can see between the two lists).
 
Upvote 0
Upvote 0
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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