Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Since you didn't specify the where you data starts in column C or whether it is solid or whether there is data below it with is not part of the data, here is a really simple, and extremely fast macro: Sub LookupStuff() Selection = "=VLOOKUP(C2,K$2:J$10,2,FALSE)" Selection = Selection.Value End Sub In this case the first cell to be looked up is in C2 and the lookup range is in K2:J10, you can adjust the code to meet your needs. To use this just select the cells in column D which you want populated and run the macro. -- Thanks, Shane Devenshire "ChipButtyMan" wrote: Hi everyone, "C" "J" "K" 14/10/2008 01/10/2008 1 01/10/2008 06/10/2008 2 14/10/2008 07/10/2008 3 07/10/2008 13/10/2008 4 07/10/2008 14/10/2008 5 06/10/2008 18/10/2008 6 01/10/2008 13/10/2008 18/10/2008 Column "B" is a list of dates in no particular order. Column "J" is a filtered list of those dates Column "K" is a list of values assigned to the different dates. How do I write the code to assign those values in column "K" to the dates in column "C" (they would be returned to the adjacent column "D") thank you for your help, your time & your and expertise. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Assigning point values? | Excel Worksheet Functions | |||
Assigning payment formulas to dates | Excel Worksheet Functions | |||
Assigning consecutive dates | Excel Worksheet Functions | |||
Assigning values to letters | Excel Worksheet Functions | |||
assigning values to array | Excel Programming |