Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Need Code to Populate Cell Range
In cell Sheet1 range M11 put
=OFFSET(Sheet2!E10,MATCH(Sheet2!C11, {"T1","T2","R1","R2","R3","R4"},0),0) or substitute the array with the range used to populate the ComboBox Kevin Beckham -----Original Message----- A workbook has two sheets: Sheet1 and Sheet2 In Sheet1 I want to populate merged cell range M11:AK12 as follows: If Sheet2, cell C11 = "T1", insert Sheet2!E11 data in Sheet1 range M11 If Sheet2, cell C11 = "T2", insert Sheet2!E12 data in Sheet1 range M11 If Sheet2, cell C11 = "R1", insert Sheet2!E13 data in Sheet1 range M11 If Sheet2, cell C11 = "R2", insert Sheet2!E14 data in Sheet1 range M11 If Sheet2, cell C11 = "R3", insert Sheet2!E15 data in Sheet1 range M11 If Sheet2, cell C11 = "R4", insert Sheet2!E16 data in Sheet1 range M11 As background, Sheet2!C11 is populated by a ComboBox LinkedCell What is the code to make this happen? . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to Delete blanks between a range and populate only the names inthe given range | Excel Discussion (Misc queries) | |||
From a Data Range DoubleClick on a cell to populate elsewhere | Excel Discussion (Misc queries) | |||
Populate cell range | Excel Worksheet Functions | |||
Use a code to populate a cell with a specific value | Excel Worksheet Functions | |||
Run code from one worksheet to populate another. | Excel Programming |