Help with a Match formula?

churmie

New Member
Joined
Jan 9, 2014
Messages
44
Hi guys

I am after a formula be it vlookup or Match, that can give a result based on a particular word is lying in an adjacent cell. Any help would help save a lot of data input!

Eg....

Key
[TABLE="width: 500"]
<tbody>[TR]
[TD]Angular
[/TD]
[TD]ANGL
[/TD]
[/TR]
[TR]
[TD]Radius
[/TD]
[TD]RADI
[/TD]
[/TR]
[TR]
[TD]Length
[/TD]
[TD]LENG
[/TD]
[/TR]
</tbody>[/TABLE]


Data (Column 1) + Desired Result (Column 2)
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]
[TABLE="width: 390"]
<tbody>[TR]
[TD]TOLERACE ON ANGULAR DIMENSIONS ±2°
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]ANGL
[/TD]
[/TR]
[TR]
[TD]CONTROLLED RADIUS
[/TD]
[TD]RADI
[/TD]
[/TR]
[TR]
[TD]CHAMFER LENGTH
[/TD]
[TD]LENG
[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
try this


Excel 2013/2016
ABCDE
1Key
2TOLERACE ON ANGULAR DIMENSIONS 2ANGLAngularANGL
3CHAMFER LENGTHLENGRadiusRADI
4CONTROLLED RADIUSRADILengthLENG
Sheet1
Cell Formulas
RangeFormula
B2=INDEX($E$2:$E$4,MATCH(LOOKUP(9.99E+307,SEARCH($D$2:$D$4,A2),$D$2:$D$4),$D$2:$D$4,0))
 
Upvote 0
You're a star! Thank you!

If I was to get a cell that doesn't contain any of the key words, is there a way of adding a default answer like 'OTHER'?

Regards

Churmie
 
Last edited:
Upvote 0
this should do it

=IFERROR(INDEX($E$2:$E$4,MATCH(LOOKUP(9.99E+307,SEARCH($D$2:$D$4,A4),$D$2:$D$4),$D$2:$D$4,0)),"others")
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,305
Members
452,633
Latest member
DougMo

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