Matcharray

wix111

New Member
Joined
Jul 21, 2017
Messages
2
I am trying to design an excel spreadsheet which can do this

First: A pop up box for user to enter a long sequence of 2-digit numbers. Each number has a code assigned to it. I have already finished this conversion using VLookUp.

Then, the program will pick the second input number, known as the MARKER. It will then check if the subsequent 6 inputs below this marker number matches their corresponding Code Pattern, in order from a seperate datasheet FixedArray. Once match, the program will return a textbox indicating "Match found on PatternNumberxxx" and will skip 2 rows of input before assigning the new Marker to check for for new set of matching pattern.

FixedArray

[TABLE="width: 500"]
<tbody>[TR]
[TD]Marker[/TD]
[TD]Pattern1[/TD]
[TD]Pattern2[/TD]
[TD]Pattern3[/TD]
[TD]Pattern4[/TD]
[TD]Pattern5[/TD]
[TD]Pattern6[/TD]
[/TR]
[TR]
[TD]01[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]02[/TD]
[TD]X[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]A[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]03[/TD]
[TD]C[/TD]
[TD]F[/TD]
[TD]B[/TD]
[TD]A[/TD]
[TD]F[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]..[/TD]
[TD]..[/TD]
[TD]..[/TD]
[TD]..[/TD]
[TD]..[/TD]
[TD]..[/TD]
[TD]..[/TD]
[/TR]
[TR]
[TD]99[/TD]
[TD]B[/TD]
[TD]D[/TD]
[TD]F[/TD]
[TD]A[/TD]
[TD]I[/TD]
[TD]E[/TD]
[/TR]
</tbody>[/TABLE]


If none of matches are found, it will return with an indication to the user "no match at all after 6 patterns"
It then it skips 4 rows before starting testing on new Marker Number.

The cycle repeats as user input new numbers.

Any help in this will be much appreciated!
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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