Take 1st letter in one cell and auto-insert the word in a new cell.

craigwojo

Active Member
Joined
Jan 7, 2005
Messages
283
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,
Something simple, just cant remember how I did this a while ago.
In Sheet "VINYL" cells A10:A10000 will be a number starting with a letter. Example A21
In the next column, B10:B10000 will be a designated word from the first letter of cells A10:A10000
If the first letter is "A", then the name from that letter will go into the next cell 'AIR".
A=AIR
P=PRODUCT
E=ELECTRICAL
C=CHEMICAL
S=STEAM
I will add more when I see how the condition is formulated.

I hope this makes sense.

Thank you and God bless,
Craig
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
index with a left maybe

=Left(Cell with letter and number, 1)

index( the lookup range form table, match(Left(Cell with letter and number, 1) , Range with the letter and lookup in , 0))

In Sheet "VINYL" cells A10:A10000 will be a number starting with a letter. Example A21
In the next column, B10:B10000 will be a designated word from the first letter of cells A10:A10000

Assuming table of lookup is in C and D 1 to 26
in B10
index( $D$1:$D$26, match(Left(A10,1) , $C$1:$C$26 , 0))

Book1
ABCD
1AAIR
2PPRODUCT
3EELECTRICAL
4CCHEMICAL
5SSTEAM
6
7
8
9
10A12AIR
11P34PRODUCT
12c23CHEMICAL
13A13AIR
14P35PRODUCT
15c24CHEMICAL
Sheet1
Cell Formulas
RangeFormula
B10:B15B10=INDEX($D$1:$D$5,MATCH(LEFT(A10,1),$C$1:$C$5,0))


A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
 
Upvote 0

Forum statistics

Threads
1,226,061
Messages
6,188,642
Members
453,487
Latest member
LZ_Code

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