Concatenate and Match Three Fields

richmcgill

Board Regular
Joined
Feb 4, 2019
Messages
71
Office Version
  1. 2016
Platform
  1. Windows
I need to concatenate row A, B AND C to match to row D and provide results in column E. If concatenate is not the nest way I am open to ideas. I am matching tens of thousands of these items on a monthly basis.

Does this make any sense?

One issue I have is the number in column D has a - after the first three numbers which is what is in column A.

One of the other issues I have is:
Row 1 needs to be three digits but my report will not show the leading zero. An 11 would show as an 11 but I think for my match to work it would need to be an 011?
Row 2 needs to be six digits but my report will not show the leading zero. An 012345 would show as an 12345 but I think for my match to work it would need to be an 012345?
Row 3 has one digit and if the number is a zero it will show as a zero

1686765342928.png
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
That is because formulas work off of actual values, not the formats you apply to numbers.
So if you look at the formula box while on cell A2, I bet you will see that the actual value in that cell is 11, and is just formatted to show three digits.

But you can apply that same logic in your concatenate formula by using the TEXT function.
So where you have A2 currently in your concatenation formula, replace it with:
Excel Formula:
TEXT(A2,"000")
and repeat the logic for B2, i.e.
Excel Formula:
TEXT(B2,"000000")
 
Upvote 0

Forum statistics

Threads
1,215,110
Messages
6,123,138
Members
449,098
Latest member
Doanvanhieu

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