Merge 2 lines in Query before loading

fmccarty

New Member
Joined
May 17, 2020
Messages
2
Office Version
365
Platform
Windows, Mobile, Web
Hello,

This is my first post, so be gentle. I have a source file that has two lines for each invoice: one line is for dates relating to the invoice itself and the other is for receiving report tied to the invoice. I want to be able to merge/copy the dates from the receiving report line to the invoice line. Is there a way to do this before it's loaded? I also wondered if I could just separate the receiving report files and put them into a separate table and reference from there. I know in Access could just create a query for this, but I'm a stumped on this one. Please help.

I've included a file with sample data. The two files are grouped by colors and the arrows show where I would like the data (dates) to be.
 

Attachments

Some videos you may like

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

sandy666

Well-known Member
Joined
Oct 24, 2015
Messages
6,322
for these two columns try
type text
fill up
type date
 

sandy666

Well-known Member
Joined
Oct 24, 2015
Messages
6,322
I looked at the picture again
  1. fill down in column [Invoice Received Dt]
  2. fill up in columns with arrows
  3. select all columns and group
 
Last edited:

fmccarty

New Member
Joined
May 17, 2020
Messages
2
Office Version
365
Platform
Windows, Mobile, Web

ADVERTISEMENT

Thank you @sandy666. Thanks for that information, I didn't know that was even a possibility. I only took a screen shot of the data I'm trying to manipulate. There are other Document Type Cd in the data pull. The CI & RR are split out because they are two documents received at two different times. Whatever I do will have to be specific to this combination. I think I might just have to put the RR in another table and create a relationship to pull in the Receiver and Acceptance dates.
 

sandy666

Well-known Member
Joined
Oct 24, 2015
Messages
6,322
the best way is post your data (from this picture) via XL2BB
then I can use it for tests
or
post a link to the shared excel file with your data (and expected result) using onedrive, googledrive, dropbox or any similar
images containing colors are usually useless
 

sandy666

Well-known Member
Joined
Oct 24, 2015
Messages
6,322
something like this?
Contract MoDelivery OrderShipment MoInvoice NoStatusDocument Type CdInvoice Received DtReceiver DtLPO Certified DtAcceptance DtLPO Reject Dt Shipment DtInvoice AmSubmitted Dt
XXXXX5XXXXX42XXXXXXX1INV1Paid,ProcessedCl,RR10/5/20199/13/201912/31/20198/1/201929410/5/2019
XXXXX5XXXXX42XXXXXXX2INV1APaid,ProcessedCl,RR10/5/20199/13/201912/31/20198/1/2019312.710/5/2019
XXXXX5XXXXX42XXXXXXX3INV1CPaid,ProcessedCl,RR10/5/20199/13/201912/31/20198/1/2019196.5410/5/2019
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,089
Messages
5,509,177
Members
408,712
Latest member
Eve05

This Week's Hot Topics

  • Turn fraction around
    Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
  • TIme Clock record reformatting to ???
    Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
  • TextBox Match
    hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
  • Using Large function based on Multiple Criteria
    Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
  • Can you check my code please
    Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
  • Combining 2 pivot tables into 1 chart
    Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...
Top