Need assistance w/ Alphanumerical Function...

eskelies

Board Regular
Joined
May 27, 2010
Messages
95
Thank you for taking the time to help me. I'm trying to use a function which will look at a n alphanumeric string and return a specific word. For example, =search("912*", H2,"test")...By using this function it requires me to return a number and not the word test. Should I use and if function?

Please know that I will need a nested if which will look for unique strings and return test, test1 and test2.

Thank you.

Adam
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,350
Rather than add extra changes each time someone offers a solution, plan out exactly what you want to do first otherwise we'll be here all day.

Try
=IF(ISERROR(SEARCH("912",H2))=FALSE,"test",IF(ISERROR(SEARCH("313",H2))=FALSE,"test2","NOT FOUND"))
 

mikerickson

MrExcel MVP
Joined
Jan 15, 2007
Messages
24,013
Can you post a few examples of the input strings and the results you want from each.
 

eskelies

Board Regular
Joined
May 27, 2010
Messages
95
Thank you for your help and sorry about that.


Rather than add extra changes each time someone offers a solution, plan out exactly what you want to do first otherwise we'll be here all day.

Try
=IF(ISERROR(SEARCH("912",H2))=FALSE,"test",IF(ISERROR(SEARCH("313",H2))=FALSE,"test2","NOT FOUND"))
 

Watch MrExcel Video

Forum statistics

Threads
1,132,680
Messages
5,654,717
Members
418,149
Latest member
tjanok

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
Top