Multiple input values to be matched to return from a single list

Billy_Kisuke

New Member
Joined
Sep 3, 2017
Messages
5
Dear All,

Firstly I would like to thank Mr. Excel forum which has solved many complex queries which I had in regards to Excel. Finally I had post a thread for a solution which I didn't find.


Crank shaft
Bearing journal - Main
Bearing journal - Rear
Intermediate bearing journal
Crank pin journal
Crank gear
Counterweights
Throw - Front
Throw - Rear

<tbody>
</tbody>

The above is the defined list over a column.

Assume I need to match either 'Crank shaft' or 'Crank gear' while returning its position with a single match formula. Is it feasible to do achieve something like this?

Thanks in advance.

- Billy
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
=MATCH($E1,$A$1:$A$9,0)

where E1 houses a value like crank shaft.

Thanks for the response. However this is not solving the problem.

I will elaborate the requirement.

Now assume E1 = Crankshaft; E2 = Crankgear

In a single formula, I need MATCH function to check for both E1 & E2 at the same time in the list A1:A9. The value 1 & 6 needs to return at cell B1 & B6 accordingly.

Something like =MATCH(OR($E1,$E2),$A$1:$A$9,0), this is returning error. MATCH function is simultaneously looking for either of the inputs in the array to return the corresponding value.

I hope above defined problem is comprehensible now. If there is a solution then it will be extremely helpful for me.

Thanks in advance.

- Billy
 
Upvote 0
B1:

=match(e1,$a$1:$a$9,0)

b6:

=match(e2,$a$1:$a$9,0)

Thanks for your patience & response, Aladin.

I think this is an impossible task.

One last try I will make by consolidating & redefining the problem:

Below is the requirement:

Crank shaft
Bearing journal - Main
Bearing journal - Rear
Intermediate bearing journal
Crank pin journal
Crank gear
Counterweights
Throw - Front
Throw - Rear


Assume this list in column A & the parameters will change randomly within the column. As & when the parameters change I need a solution which involves MATCH function.

I will elaborate the requirement.

Now assume E1 = Crankshaft; E2 = Crankgear

In a single formula, I need MATCH function to check for both E1 & E2 at the same time in the column A. The value which matches with the text string should return accordingly in column B i.e in the present case, 1 in B1 & 6 in B6. When the Crankshaft & Crankgear cell location change within column A, corresponding value needs to be returned in Column B. This should occur with a single formula only which I am emphasizing over & over (sorry for being repetitive & if it is sounding rude / arrogant).

I tried this formula in Column B:
=MATCH(OR($E1,$E2),$A$1:$A$9,0)
MATCH function is simultaneously looking for either of the inputs in the array to return the corresponding value (trying to look for E1 or E2 & return the value in Column B for individual matches). However, this is returning an error.

I hope above defined problem is comprehensible now. If there is a solution then it will be extremely helpful for me.

Thanks in advance.

P.S - The list which is existing is really huge.

- Billy
 
Upvote 0

Forum statistics

Threads
1,215,798
Messages
6,126,974
Members
449,351
Latest member
Sylvine

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