Copy cells from specific row if the value from another cells match

saloro

New Member
Joined
Jul 31, 2019
Messages
2
Hi guys, I have a problem with my accounting data analysis. I have two workbooks, let's call them "MAIN" and "DATA". Both are exported from another program, that's why they are in separate files, although they can be on separate worhsheets if there is a need. I have to copy cells from "DATA" workbook to "MAIN", based on "Description" column. Copied values have to be from the same row where description was found. Also another difficulty is that description sometimes is not exact, but I need to find all occurrences. I tried to solve this with VLOOKUP and other formulas, the results were poor and when I tried to copy a formula by dragging the fill handle it all messed up.


"MAIN" looks like this:

Date
Account1
Settlement
Dt
Ct
Description
Currency
Transaction type
settlementX
25,00
ABC
settlementX
25,00
DEF
settlementY
39,00
GHI
settlementY
39,00
JKL

<tbody>
</tbody>


"DATA" looks like this.

Account2
Id1
Id2
Document symbolDescription
Dt2
Ct2
Date
Document number
Id3
Id4
Id5
Id6
Id7
111-2-333-33333-5555
00
00000
ABC
25,00
111
2
333
33333
5555
777-2-888-88888-5555
00
00000
JKL

39,00
777
2
888
88888
5555
777-2-333-33333-5555
00
00000
DEF
22,00
777
2
333
33333
5555
777-2-333-33333-5555
01
99999
DEFg

3,00


777
2
333
33333
5555
111-2-333-33333-5555
27
99999
CCC
8,50
111
2
333
33333
5555
111-2-888-88888-5555
00
00000
GHI
39,00

111
2
888
88888
5555
111-2-333-33333-5555
00
00000
DDD
13,49
111
2
333
33333
5555

<tbody>
</tbody>


Result:
Date
Account1
Settlement
Dt
Ct
Description
Currency
Transaction type
Id3
Id4
Id5
Id6
Id7
Id1
Id2
Dt2
Ct2
settlementX
25,00
ABC
111
2
333
33333
5555
00
00000
25,00

settlementX
25,00
DEF
777
2
333
33333
5555
00
00000

22,00
settlementY
39,00
GHI
111
2
888
88888
5555
00
00000
39,00

settlementY
39,00
JKL

777
2
888
88888
5555
00
00000

39,00
settlementX
DEFg
777
2
333
33333
5555
01
99999

3,00

<tbody>
</tbody>


I tried to make it as readable as possible, forgive me if anything is unclear.
I would be very grateful for some help or tips.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
While you can use fuzzy lookup to find similar Description data, since you are dealing with accounting data my advice would be to first edit your Description data so it is standard in both sheets, then do your automation.
 
Upvote 0
While you can use fuzzy lookup to find similar Description data, since you are dealing with accounting data my advice would be to first edit your Description data so it is standard in both sheets, then do your automation.

Thank you for the advice, but I can only use standard Excel version at work, I can't download any add-ins unfortunatelly. I can code my own VBA if this would be the only option, but I don't know VBA very well, that's why I tried different formulas.
 
Upvote 0

Forum statistics

Threads
1,215,243
Messages
6,123,837
Members
449,129
Latest member
krishnamadison

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