+ Reply to Thread
Results 1 to 2 of 2

Help with Search Text Criteria and Output Corresponding Text

  1. #1
    Registered User
    Join Date
    10-27-2017
    Location
    NJ
    MS-Off Ver
    2016
    Posts
    1

    Lightbulb Help with Search Text Criteria and Output Corresponding Text

    Hello, I'm new to excel but I've got big dreams!

    I would like to make a formula that looks for certain text in one cell and then outputs a corresponding text into the other cell. This is the formula I'm using right now. If anyone could direct me to more info or the right formula for this function I'd be grateful.

    Basically what I'm trying to do is:

    Look in B1 for these values

    =Lookup(B1{“*MADED”,“*VADED”,”*MAUD”,”*VAUD”,”*MB”,“*VB”,”*MCAR”,”*VCAR”,”*MCDM”,”*VCDM”,”*MCDR”,”*VCDR”,”*MDVD14”,”*VDVD14”,”*MDVDF”,”*VDVDF”,”*MDVDP”,”*VDVDP”,”*MFIC”,”*VFIC”,”*MFORA”,”*VFORA”,”*MFORB”,”*VFORB”,”*MJAUD”,”*VJAUD”,”*MJCDM”,”*VJCDM”,”*MJDVD14”,”*VJDVD14”,”*MJDVDF”,”*VJDVDF”,”*MJDVDP”,”*VJDVDP”,”*MJE”,”*VJE”,”*MJF”,”*VJF”,”*MJMYS”,”*VJMYS”,”*MJNF”,”*VJNF”,”*MJPAR”,”*VJPAR”,”*MJPB”,”*VJPB”,”*MJPER”,”*VJPER”,”*MJPIC”,”*VJPIC”,”*MJPP”,”*VJPP”,”*MJPROF”,”*VJPROF”,”*MJPUP”,”*VJPUP”,”*MJR”,”*VJR”,”*MJRC”,”*VJRC”,”*MJREAD”,”*VJREAD”,”*MJRNJ”,”*VJRNJ”,”*MJRNJC”,”*VJRNJC”,”*MJSC”,”*VJSC”,”*MJSF”,”*VJSF”,”*MJVID14”,”*VJVID14”,”*MJVIDP”,”*VJVIDP”,”*MJX”,”*VJX”,”*MLLS”,”*VLLS”,”*MLP”,”*VLP”,”*MLP14”,”*VLP14”,”*MLPC”,”*VLPC”,”*MMMAC”,”*VMMAC”,”*MMYS”,”*VMYS”,”*MNEWF”,”*VNEWF”,”*MNEWNF”,”*VNEWNF”,”*MNEWS”,”*VNEWS”,”*MNF”,”*VNF”,”*MPB”,”*VPB”,”*MPER”,”*VPER”,”*MPERC”,”*VPERC”,”*MPROF”,”*VPROF”,”*MR”,”*VR”,”*MRBUS”,”*VRBUS”,”*MRC”,”*VRC”,”*MREAD”,”*VREAD”,”*MRILL”,”*VRILL”,”*MRIND”,”*VRIND”,”*MRNJ”,”*VRNJ”,”*MRR”,”*VRR”,”*MRVF”,”*VRVF”,”*MSF”,”*VSF”,”*MSG”,”*VSG”,”*MSS”,”*VSS”,”*MTUT”,”*VTUT”,”*MVID14”,”*VVID14”,”*MVIDF”,”*VVIDF”,”*MVIDP,”*VVIDP”,”*MWEST”,”*VWEST”,”*MYA”,”*VYA”},


    and if it sees that value, output this corresponding text.


    {“MAnf”,”VAnf”,”MAudio”,”VAudio”,”MAnf”,”VAnf”,”MCareer”,”VCareer”,”MCDs”,”VCDs”,”MCDRom”,”VCDrom”,”MDVD”,”VDVD”,”MDVD”,”VDVD”,”MDVD”,”VDVD”,”MAF”,”VAF”,”MAudio”,”VAudio”,”MForeignLang”,”VForeignLang”,”MJAudio”,”VJAudio”,”MJCD”,”VJCD”,”MDVDJ”,”VDVDJ”,”MDVDJ”,”VDVDJ”,”MDVDJ”,”VDVDJ”,”MJF”,”VJF”,”MJF”,”VJF”,”MJF”,”VJF”,”MJNF”,”VJNF”,”MPaperbaJ”,”VPaperbaJ”,”MPeriodJ”,”VPeriodJ”,”MJF”,”VJF”,”MJF”,”VJF”,”MJF”,”VJF”,”MPuppetJ”,”VPuppetJ”,”MJNF”,”VJNF”,”MJF”,”VJF”,”MJNF”,”VJNF”,”MJNF”,”VJNF”,”MJF”,”VJF”,”MJF”,”VJF”,”MVideo”,”VVIdeo”,”MVideo”,”VVideo”,”MVideo”,”VVideo”,”MJF”,”VJF”,”MPeriod”,”VPeriod”,”ML”,”VL”,”MAfLP14”,”VAfLP14”,”MLPC”,”VLPC”,”MMultimac”,”VMultimac”,”MAF”,”VAF”,”MAF”,”VAF”,”MAF”,”VAF”,”MAnf”,”VAnf”,”Mperiodicals”,”VPeriodicals”,”MAnf”,”VAnf”,”MPaperba”,”VPaperba”,”MPeriodical”,”VPeriodical”,”MPeriodical”,”VPeriodical”,”MAnf”,”VAnf”,”MAnf”,”VAnf”,”MAnf”,”VAnf”,”MAnf”,”VAnf”,”MAf”,”VAf”,”MAnf”,”VAnf”,”MAnf”,”VAnf”,”MAnf”,”VAnf”,”MAnf”,”VAnf”,”MPamphlet”,”VPamphlet”,”MAf”,”VAf”,”MAnf”,”VAnf”,”MAf”,”VAf”,”MTutor”,”VTutor”,”MVideo”,”VVideo”,”MVideo”,”VVideo”,”MVideo”,”VVideo”,”MAf”,”VAf”,”MAf”,”VAf”})

    Again I would be very appreciative of any help or direction you might please offer.

    Thanks in advance for taking the time to read through my post.
    Al_Tambooka

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,995

    Re: Help with Search Text Criteria and Output Corresponding Text

    I couldn't figure out how to do this formulas but here is a VBA user-defined function solution.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Trouble with Array Text Output and Criteria
    By andy.b53 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-09-2017, 05:00 AM
  2. Output Text if Multiple Criteria Matches
    By sadele89 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-09-2016, 03:07 PM
  3. Getting text output based on a/multiple criteria.
    By Quasar82 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-29-2016, 03:18 AM
  4. How to produce a merget text output of randomly chosen text values
    By SORENAA in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-16-2013, 04:53 PM
  5. [SOLVED] Search a text in an array and gives a corresponding output.
    By krash297 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-30-2013, 07:37 AM
  6. [SOLVED] search for text, then search for previous text, replace 1st text including number from 2nd
    By kldailey in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2012, 05:23 PM
  7. Output text to cells if search result is positive
    By pylauzier in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-29-2011, 12:57 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1