Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
replace a number with a string from database
I want to do the following:
I have in collumn "A" numbers from 1 to 60 and in Collumn "B" there are corresponding names next to every number. This is my database. Now i want to write a number between 1 and 60 in a cell in Collumn "D" and in the cell next to it in collumn "E" shall come up the corresponding text, which is defined in Column "a" and "B". How do I write this macro? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
replace a number with a string from database
I don't think you need a macro. A simple vlookup formula will work. Place this formula in cell E1 and use cell D1 as your input cell. =VLOOKUP(D1,A1:B60,2,FALSE) ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~View and post usenet messages directly from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Use string value for database location - VBA | Excel Worksheet Functions | |||
Change 3 letter text string to a number string | Excel Discussion (Misc queries) | |||
parsing on a date string pulled from a database. | Excel Discussion (Misc queries) | |||
Frequency of a word string in an excel database | Excel Discussion (Misc queries) | |||
How do I replace last numeric string from a alphanumeric string? | Excel Discussion (Misc queries) |