ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   type MI in cell, have Michigan show in adjacent cell (https://www.excelbanter.com/excel-discussion-misc-queries/115293-type-mi-cell-have-michigan-show-adjacent-cell.html)

shark

type MI in cell, have Michigan show in adjacent cell
 
How do I type MI in a cell and have Michigan appear in an adjacent cell?

Paul B

type MI in cell, have Michigan show in adjacent cell
 
shark, one way, =IF(A1="MI","Michigan","")

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"shark" wrote in message
...
How do I type MI in a cell and have Michigan appear in an adjacent cell?




Nick Hodge

type MI in cell, have Michigan show in adjacent cell
 
Shark

You could put it (or I suspect you want more than one state, so all) in your
autocorrect list. Could be a pain with OR for example though

Alternatively, if it IS all states, you could make a table on another sheet
(hidden if you like) and reference it with a VLOOKUP formula (States in
A1:A52 on sheet2 MN, Michigan, etc)

=IF(A1="","",VLOOKUP(A1,Sheet2!$A$1:$B$52,2,FALSE)

Then typing any state in A1 will return the state name from the table

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England

HIS
www.nickhodge.co.uk

"shark" wrote in message
...
How do I type MI in a cell and have Michigan appear in an adjacent cell?





All times are GMT +1. The time now is 11:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com