SOLVED

Display Text Based On Text In Another Column

%3CLINGO-SUB%20id%3D%22lingo-sub-2059326%22%20slang%3D%22en-US%22%3EDisplay%20Text%20Based%20On%20Text%20In%20Another%20Column%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2059326%22%20slang%3D%22en-US%22%3E%3CP%3EI%20need%20help%20on%20a%20formula%20that%20can%20detect%20'letters'%20from%20column%201%20(Trailer%20no.)%20and%20associate%20it%20with%20a%20list%20in%20column%202%20(Area)%20which%20would%20then%20input%20'area'%20into%20column%203%20instead%20of%20manually%20inputting.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20issue%20is%20with%20the%20Trailer%20numbers%20which%20are%20as%20follows%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3E'FF'%20OR%20'R'%20%3D%20%3CFONT%20color%3D%22%23FF0000%22%3EArea%20A%26nbsp%3B%3C%2FFONT%3E%3C%2FLI%3E%3CLI%3E'FFS'%20OR%20'RS'%20%3D%20%3CFONT%20color%3D%22%23FF0000%22%3EArea%20B%3C%2FFONT%3E%3C%2FLI%3E%3CLI%3E'FRP'%20%3D%20%3CFONT%20color%3D%22%23FF0000%22%3EArea%20C%3C%2FFONT%3E%3C%2FLI%3E%3CLI%3E'B'%20%3D%20%3CFONT%20color%3D%22%23FF0000%22%3EArea%20D%3C%2FFONT%3E%3C%2FLI%3E%3CLI%3E'G'%20%3D%3CFONT%20color%3D%22%23FF0000%22%3E%20Area%20E%3C%2FFONT%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EI've%20attached%20a%20excel%20sheet%20to%20better%20explain%20what%20I'm%20asking.%3C%2FP%3E%3CP%3EApologies%20for%20any%20confusion!!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2059326%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2059352%22%20slang%3D%22en-US%22%3ERe%3A%20Display%20Text%20Based%20On%20Text%20In%20Another%20Column%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2059352%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F928479%22%20target%3D%22_blank%22%3E%40Nelz_%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFirst%2C%20you%20have%20to%20create%20a%20table%20manually%20to%20associate%20the%20trailers%20with%20the%20areas.%20Then%2C%20you%20could%20use%20a%20lookup%20function%20to%20look%20the%20trailer%20numbers%20up%20in%20your%20table%20and%20return%20the%20area.%20See%20attached%20for%20an%20example.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2059369%22%20slang%3D%22en-US%22%3ERe%3A%20Display%20Text%20Based%20On%20Text%20In%20Another%20Column%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2059369%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F675152%22%20target%3D%22_blank%22%3E%40JMB17%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIts%20close%20to%20what%20I%20need.%20Sorry%20I%20didn't%20exactly%20explain%20it%20correctly%20now%20that%20I%20look%20at%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20reason%20I%20wanted%20a%20letter%20detection%20is%20because%20the%20trailers%20could%20range%20from%20FF1%20-%20FF22%20or%20could%20have%20a%20letter%20FF1a%2C%20RS1a%20etc%20which%20is%20why%20I%20was%20wondering%20if%20there%20would%20be%20a%20formula%20to%20detect%20just%20the%20first%20couple%20letters%20of%20the%20trailers%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHopefully%20this%20makes%20sense%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2059374%22%20slang%3D%22en-US%22%3ERe%3A%20Display%20Text%20Based%20On%20Text%20In%20Another%20Column%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2059374%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F928479%22%20target%3D%22_blank%22%3E%40Nelz_%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20fault%2C%20I%20missed%20that%20your%20first%20post%20did%20not%20have%20the%20trailing%20numbers.%20It%20appears%20that%20you%20want%20the%20characters%20to%20the%20left%20of%20the%20first%20number%20that%20appears%20in%20the%20trailer%20number%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20believe%20you%20will%20still%20need%20a%20lookup%20table%20to%20crosswalk%20the%20codes%20and%20the%20places%2C%20but%20I%20modified%20the%20formula%20to%20find%20the%20first%20numeric%20character%20in%20the%20trailer%20number%2C%20if%20any%2C%20and%20pull%20the%20characters%20to%20the%20left%20of%20that.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20the%20attached%20workbook%20what%20you%20are%20trying%20to%20do%3F%20Note%20the%20formula%20generally%20will%20require%20you%20to%26nbsp%3B%20hit%20Ctrl%2BShift%2BEnter%20after%20keying%20it%20in%20(I%20don't%20know%20if%20the%20latest%20office%20365%20would%20as%20I%20don't%20have%20that%20version).%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I need help on a formula that can detect 'letters' from column 1 (Trailer no.) and associate it with a list in column 2 (Area) which would then input 'area' into column 3 instead of manually inputting.

 

My issue is with the Trailer numbers which are as follows:

 

  • 'FF' OR 'R' = Area A 
  • 'FFS' OR 'RS' = Area B
  • 'FRP' = Area C
  • 'B' = Area D
  • 'G' = Area E

I've attached a excel sheet to better explain what I'm asking.

Apologies for any confusion!!

 

 

5 Replies

@Nelz_ 

 

First, you have to create a table manually to associate the trailers with the areas. Then, you could use a lookup function to look the trailer numbers up in your table and return the area. See attached for an example.

@JMB17 

Its close to what I need. Sorry I didn't exactly explain it correctly now that I look at it.

 

The reason I wanted a letter detection is because the trailers could range from FF1 - FF22 or could have a letter FF1a, RS1a etc which is why I was wondering if there would be a formula to detect just the first couple letters of the trailers?

 

Hopefully this makes sense 

best response confirmed by Nelz_ (Occasional Contributor)
Solution

@Nelz_ 

 

My fault, I missed that your first post did not have the trailing numbers. It appears that you want the characters to the left of the first number that appears in the trailer number?

 

I believe you will still need a lookup table to crosswalk the codes and the places, but I modified the formula to find the first numeric character in the trailer number, if any, and pull the characters to the left of that.

 

Is the attached workbook what you are trying to do? Note the formula generally will require you to  hit Ctrl+Shift+Enter after keying it in (I don't know if the latest office 365 would as I don't have that version).

Thank you !! Exactly what I was after !!
I'm glad to hear that worked for you.