Matching rows from one spreadsheet to another that aren't identical but contain parts that match & how to questions

Waboku

New Member
Joined
Jul 8, 2016
Messages
45
Hello,

This is an excel problem that I really need help with for my work. Thank you very much for your help. I placed entirely what I'm trying to do in this post. I don't really know how to do any of this and don't know if this is the correct approach. Please forgive me if this wasn't written as well as it could have been. Basically I'd like to know how to do what I've written below.

I'm working with two different spreadsheets. One spreadsheet is mine that I manage my inventory on. The other spreadsheet comes from a company that I want to sell items to using excel. What I want to do is use excel to place the quantity of items that I'd like to sell to the company on their spreadsheet and create a column on my spreadsheet with the updated quantity. These spreadsheets don't have any columns with cells that can be matched exactly between the two spreadsheets. There are parts of one column in my spreadsheet that are similar to a column in the companies spreadsheet. I think creating new columns in the spreadsheets and then using an "if this contains this then this" function would match nearly 100% of the items. Below I copied small examples of the two spreadsheets and included the steps that I think would work below that as well. Also, these spreadsheets do contain different amounts of items. Thank you for your time and help.

This is an example of my spreadsheet, the columns to the left column K are what I would start with and everything to the right of that is what I would like to make with excel:
[TABLE="width: 2209"]
<tbody>[TR]
[TD]Product Name(A)[/TD]
[TD]Category(B)[/TD]
[TD]Variant Info(C)[/TD]
[TD]Qty(D)[/TD]
[TD]Opt Qty(E)[/TD]
[TD]Buy Price(F)[/TD]
[TD]Sell Price(G)[/TD]
[TD]URL(H)[/TD]
[TD]Barcode(I)[/TD]
[TD]Manufacturer SKU(J)[/TD]
[TD]Set Code(K)[/TD]
[TD]Rarity(L)[/TD]
[TD]Edition(M)[/TD]
[TD]1st or no(N)[/TD]
[TD]Rarity 2(O)[/TD]
[TD]Rarity Final(P)[/TD]
[TD]Sell Qty(Q)[/TD]
[TD]New Qty(R)[/TD]
[/TR]
[TR]
[TD]Pot of Benevolence - ABPF-EN061 - Common - 1st Edition[/TD]
[TD]Absolute Powerforce[/TD]
[TD]Condition: Near Mint[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0.5[/TD]
[TD]url[/TD]
[TD][/TD]
[TD][/TD]
[TD]ABPF-EN061[/TD]
[TD]Common[/TD]
[TD]1st Edition[/TD]
[TD]1st[/TD]
[TD]Common[/TD]
[TD]Common[/TD]
[TD]TBD[/TD]
[TD]Qty - Sell Qty[/TD]
[/TR]
[TR]
[TD]Pot of Benevolence - ABPF-EN061 - Common - Unlimited Edition[/TD]
[TD]Absolute Powerforce[/TD]
[TD]Condition: Near Mint[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0.5[/TD]
[TD]url[/TD]
[TD][/TD]
[TD][/TD]
[TD]ABPF-EN061[/TD]
[TD]Common[/TD]
[TD]Unlimited Edition[/TD]
[TD]no[/TD]
[TD]Common[/TD]
[TD]Common[/TD]
[TD]TBD[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Cyber Dragon Zwei - ABPF-EN035 - Rare - 1st Edition[/TD]
[TD]Absolute Powerforce[/TD]
[TD]Condition: Near Mint[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.5[/TD]
[TD]url[/TD]
[TD][/TD]
[TD][/TD]
[TD]ABPF-EN035[/TD]
[TD]Rare[/TD]
[TD]1st Edition[/TD]
[TD]1st[/TD]
[TD]Rare[/TD]
[TD] - Rare[/TD]
[TD]TBD[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Cyber Dragon Zwei - ABPF-EN035 - Rare - Unlimited Edition[/TD]
[TD]Absolute Powerforce[/TD]
[TD]Condition: Near Mint[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0.5[/TD]
[TD]url[/TD]
[TD][/TD]
[TD][/TD]
[TD]ABPF-EN035[/TD]
[TD]Rare[/TD]
[TD]Unlimited Edition[/TD]
[TD]no[/TD]
[TD]Rare[/TD]
[TD] - Rare[/TD]
[TD]TBD[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Jinzo - BPT-011 - Secret Rare - Limited Edition[/TD]
[TD]2002-2003 Collectors Tins[/TD]
[TD]Condition: Near Mint[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]3[/TD]
[TD]url[/TD]
[TD]NoBarcode[/TD]
[TD][/TD]
[TD]BPT-011[/TD]
[TD]Secret Rare[/TD]
[TD]Limited[/TD]
[TD]no[/TD]
[TD]Secret[/TD]
[TD]Secret[/TD]
[TD]TBD[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Amazoness Chain Master - DT07-EN004 - Common - Unlimited Edition[/TD]
[TD]Duel Terminal 7[/TD]
[TD]Condition: Near Mint[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0.1[/TD]
[TD="align: right"]0.45[/TD]
[TD]url[/TD]
[TD][/TD]
[TD][/TD]
[TD]DT07-EN004[/TD]
[TD]Common[/TD]
[TD]Unlimited Edition[/TD]
[TD]no[/TD]
[TD]Common[/TD]
[TD]Normal[/TD]
[TD]TBD[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


This is an example of the spreadsheet from the company that I'd like to sell to, columns A through G are given by the company, anything to the right are additional columns that I added that I'd like to fill using excel/functions, for the example I filled those with what I'd like them to be manually:

[TABLE="width: 780"]
<tbody>[TR]
[TD]Product Id(A)[/TD]
[TD="width: 65"]Edition(B)[/TD]
[TD="width: 65"]Product Name(C)[/TD]
[TD="width: 65"]Condition(D)[/TD]
[TD="width: 65"]Buy Price(E)[/TD]
[TD="width: 65"]Buy Qty(F)[/TD]
[TD="width: 65"]Sell Qty(G)[/TD]
[TD="class: xl63, width: 65"]1st or no(H)[/TD]
[TD="width: 65"]My Product Name(I)[/TD]
[TD="width: 65"]Qty(J)[/TD]
[TD="width: 65"]Sell Price(K)[/TD]
[TD="width: 65"]Min Sell Price(L)[/TD]
[/TR]
[TR]
[TD="align: right"]2977911[/TD]
[TD]Absolute Powerforce ABPF[/TD]
[TD]Pot of Benevolence - ABPF-EN061 - Common[/TD]
[TD]Near Mint 1st Edition English Yugioh Card[/TD]
[TD="align: right"]0.28[/TD]
[TD="align: right"]1[/TD]
[TD]TBD[/TD]
[TD="class: xl63"]1st[/TD]
[TD]Pot of Benevolence - ABPF-EN061 - Common - 1st Edition[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]0.5[/TD]
[TD="align: right"]0.02[/TD]
[/TR]
[TR]
[TD="align: right"]2978023[/TD]
[TD]Absolute Powerforce ABPF[/TD]
[TD]Pot of Benevolence - ABPF-EN061 - Common[/TD]
[TD]Near Mint Unlimited English Yugioh Card[/TD]
[TD="align: right"]0.26[/TD]
[TD="align: right"]3[/TD]
[TD]TBD[/TD]
[TD="class: xl63"]no[/TD]
[TD]Pot of Benevolence - ABPF-EN061 - Common - Unlimited Edition[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]0.5[/TD]
[TD="align: right"]0.02[/TD]
[/TR]
[TR]
[TD="align: right"]2977997[/TD]
[TD]Absolute Powerforce ABPF[/TD]
[TD]Cyber Dragon Zwei - ABPF-EN035 - Rare[/TD]
[TD]Near Mint Unlimited English Yugioh Card[/TD]
[TD="align: right"]0.12[/TD]
[TD="align: right"]3[/TD]
[TD]TBD[/TD]
[TD="class: xl63"]no[/TD]
[TD]Cyber Dragon Zwei - ABPF-EN035 - Rare - 1st Edition[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]0.5[/TD]
[TD="align: right"]0.02[/TD]
[/TR]
[TR]
[TD="align: right"]2977885[/TD]
[TD]Absolute Powerforce ABPF[/TD]
[TD]Cyber Dragon Zwei - ABPF-EN035 - Rare[/TD]
[TD]Near Mint 1st Edition English Yugioh Card[/TD]
[TD="align: right"]0.34[/TD]
[TD="align: right"]1[/TD]
[TD]TBD[/TD]
[TD="class: xl63"]1st[/TD]
[TD]Cyber Dragon Zwei - ABPF-EN035 - Rare - Unlimited Edition[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]0.5[/TD]
[TD="align: right"]0.02[/TD]
[/TR]
[TR]
[TD="align: right"]1700706[/TD]
[TD]Yu-Gi-Oh! Promo Cards[/TD]
[TD]Jinzo - BPT-011 - Secret Rare[/TD]
[TD]Near Mint English Yugioh Card[/TD]
[TD="align: right"]3.3[/TD]
[TD="align: right"]11[/TD]
[TD]TBD[/TD]
[TD="class: xl63"]no[/TD]
[TD]Jinzo - BPT-011 - Secret Rare - Limited Edition[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]1.8[/TD]
[/TR]
[TR]
[TD="align: right"]4240878[/TD]
[TD]Duel Terminal 7 DT07[/TD]
[TD]Amazoness Chain Master - DT07-EN004 - Normal Parallel Rare[/TD]
[TD]Near Mint English Yugioh Card[/TD]
[TD="align: right"]0.13[/TD]
[TD="align: right"]3[/TD]
[TD]TBD[/TD]
[TD="class: xl63"]no[/TD]
[TD]Amazoness Chain Master - DT07-EN004 - Common - Unlimited Edition[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]0.45[/TD]
[TD="align: right"]0.02[/TD]
[/TR]
</tbody>[/TABLE]


Below are the technical steps that I thought might work for what I'm trying to do, for my example below I referred to each column by the letter code.

Step 1 and 2: Open my spreadsheet and the companies spreadsheet.

Step 3:

I would like to have one spreadsheet/workbook that I can Copy the companies spreadsheet and my inventory spreadsheet into, I think 2 separate tabs of a workbook for that that already has the necessary functions save in it.

Step 4:

For my example spreadsheet I used a sample of my inventory spreadsheet, which filled columns A through J.

Filling column K of my spreadsheet, “Set Code”

K2 = the Set code from A2(please refer to the example)

Filling column L of my spreadsheet “Rarity”

L2 = the Rarity from A2(please refer to the example)

Filling column M of my spreadsheet “Edition”

M2 = the Edition from A2(please refer to the example)

Step 5:

Filling column N of my spreadsheet “1st or no”

N2 = “1st" if M2 contains “1st" or “no" if M2 does not contain "1st"

Step 6:

Filling column O of my spreadsheet “Rarity 2”

O2 = The first word of L2

Step 7:

Filling Column P of my spreadsheet “Rarity Final”

P2 = The word from O2 unless O2 = “Rare” or if K2 Contains “DT0” and O2 = “Common". When O2 = “Rare” then P2 = “ - Rare”. When K2 contains “DT0” and O2 = “Common” then P2 = “Normal”

Step 8:

Using the companies spreadsheet.
Columns A through G were filled by by the company.

Filling Column H of the companies spreadsheet “1st or no”

H2 = “1st” when D2 of companies spreadsheet contains “1st” or “no” when D2 of companies spreadsheet does not contain “1st”.

Step 9:

Filling Columns I, J, and K of the companies spreadsheet spreadsheet.

If a cell in the companies spreadsheet column C’s row contains my spreadsheet's K2 and P2 and the same row of the companies spreadsheet’s column H is = to my spreadsheet's N2 then still in the same row of the companies spreadsheet fill column I, J and K with my spreadsheet’s A2, D2, and G2 respectively.

Step 10:

Filling the companies spreadsheet's column L

If the companies K2 is = to less than 1 then the companies L2 = .02. If the companies K2 is = to 1 or between 1 and 4.99 then the companies L2 = 60% of the companies K2. If the companies K2 is = to 5 or between 5 and 49.99 then the companies L2= 70% of the companies K2. If the companies K2 is = to or greater than 50 then the companies L2 = 80% of the companies K2.

Step 11:

Filling the companies column G

If the companies L2 is less than or = to the companies E2 then the companies G2 is to be = to the companies J2 when the companies J2 is less than or equal to the companies F2 or if the companies L2 is still less than or = to the companies E2 and the companies J2 is greater than the companies F2 then the companies G2 = the companies F2

Step 12:

Determining my spreadsheets column Q “Sell Qty”

If the companies I2 is = to one of the cells in the rows of my spreadsheet’s Column A then the same row of my spreadsheet’s column Q is to be = to the companies G2

Step 13:

Filling column R of my spreadsheet.
my spreadsheet's R2 is = my spreadsheet's D2 minus my spreadsheet's Q2

Step 14:

I would like to apply all of these steps to each of my the rows in my spreadsheet and the companies spreadsheet.

Step 15:

Generating 3 new spreadsheets possibly in new tabs of the same workbook.

Spreadsheet 1:
A spreadsheet of the companies finalized columns A through G, for making the sale to them.

Spreadsheet 2:
A spreadsheet of my original data my spreadsheets columns A through J with an additional "new quantities" column from my original spreadsheet.

Spreadsheet 3:
A pull sheet for pulling the items from my inventory that were sold, a spreadsheet that contains my spreadsheets "Product name" column,my spreadsheets "Sell Price" column, and the quantity being sold.

This is essentially what I'm trying to do. Thank you for your time and help, it would make it possible for me to do this. I hope it isn't a problem that I didn't limit this to specific questions.

Thanks sincerely
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,223,243
Messages
6,170,971
Members
452,371
Latest member
Frana

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