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

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

sandy666

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

sandy666

Well-known Member
Joined
Oct 24, 2015
Messages
5,757
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
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
5,757
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
5,757
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
 

Watch MrExcel Video

Forum statistics

Threads
1,102,138
Messages
5,484,965
Members
407,475
Latest member
Dix_Fix

This Week's Hot Topics

  • Finding issue in If elseif else with For each Loop
    Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
  • MsgBox Error
    Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
  • CELL FORMAT - IF CONDITION
    My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
  • Show numbers nearly the same
    Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...
  • Please i need your help to create formula
    I need a formula in cell B8 to do this >>if b1=1 then multiply ( cell b8) by 10% ,if b1=2 multiply by 20%,if=3 multiply by 30%. Thank you in...
  • Got error while adding column and filter
    Got error while adding column and filter In column Z has some like "Success" and "Error". I want to add column in AA if the Z cell value is...
Top