Fill by matching and adding rows for multiple matches

kidneythief

New Member
Joined
Mar 17, 2021
Messages
34
Office Version
  1. 365
Platform
  1. Windows
Hi! Unfortunately, my xl2bb still refuses to work (blanked out in the excel toolbar) but I'll save that for another post and just attach images here.
I also previously posted the same thread but with very unclear and messy parameters so I'm redoing that here, apologies for that.

The Sales sheet and TripSheet come to me in those formats, or very close to that, and I am unable to change those sheets until I get them. TripSheet contains
unique SI# (Sales Invoice Numbers) that combine all items from that order. The Sales sheet contains a detailed breakdown of each SI#, meaning there could
be multiple rows with the same SI# for different items.

In the Output sheet, there are two cells where the user adds or selects input (DATE and AGENT). What I'd like to do is automatically fill the Output sheet depending
on the Date and Agent by matching SI#s in TripSheet but expanded to a detailed breakdown from the Sales sheet, as seen in the OutputFilled sheet. The data in
Output will be the detailed breakdown of sales on a specific date, delivered by a specified truck.

So far, I have concat put the DATE and AGENT input together in F3 of the Output sheet, filling in the tripsheet code. I have a working sub that pulls the SI#s from
column C in Tripsheet for the chunk of data matching F3. This only pulls the single instance of each SI# in Tripsheet. I would then have to match those SI#s with
their instances in the Sales sheet while somehow adding rows to accommodate possible spills.

Alternatively, I could add a column to the Sales sheet that pulls info from the TripSheet to label each row with their corresponding tripsheet code. Really not sure
what the best approach is.

Lastly, this seems like a stretch, but I was hoping to be able to add a row below each generated range in Output pertaining to each customer and adding up
their entries for Packs and Total (columns E and F) as seen in the OutputFilledSums sheet (if that's at all possible).

I'm really at my wits end with this so any help would be much appreciated!
 

Attachments

  • Output Sheet.jpg
    Output Sheet.jpg
    44.7 KB · Views: 11
  • OutputFilled.jpg
    OutputFilled.jpg
    67.1 KB · Views: 13
  • OutputFilledSums.jpg
    OutputFilledSums.jpg
    80 KB · Views: 10
  • Sales.jpg
    Sales.jpg
    105.6 KB · Views: 9
  • TripSheet.jpg
    TripSheet.jpg
    127.7 KB · Views: 8

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,215,065
Messages
6,122,945
Members
449,095
Latest member
nmaske

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