ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   ComboBox Population of Cell Range (https://www.excelbanter.com/excel-programming/294967-combobox-population-cell-range.html)

Phil Hageman[_3_]

ComboBox Population of Cell Range
 
A Workbook has two worksheets €“ €śBSC Rationale€ť and €śVariables€

ComboBox3 on €śBSC Rationale€ť has a LinkedCell: Variables!$C$11, which is populated from ListFillRange: Variables!$D$11:$D$16. I need to populate merged cell range K8:AA8 on €śBSC Rationale€ť as follows

If Variables!$C$11 = €śT1€ť or €śT2€ť, then Variables!$D$8, else blank, and
If Variables!$C$11 = €śR1€ť or €śR2€ť or €śR3€ť or €śR4€ť, then Variables!$D$9, else blan

How this works €“ user selects a €śT€ť or €śR€ť value, and the appropriate value appears in K8:AA8

Should this be done by formula or by code in a module

What would the formula/code, be

Thanks
Phi


Phil Hageman[_3_]

ComboBox Population of Cell Range
 
These two formulas work. Can they be combined, or should code doing the same thing be used in a module

=IF(((Variables!C11="T1")+(Variables!C11="T2")),Va riables!D8,"Select Strategy"

=IF(((Variables!C11="R1")+(Variables!C11="R2")+(Va riables!C11="R3")+(Variables!C11="R4")),Variables! D9,"Select Strategy")


All times are GMT +1. The time now is 02:17 AM.

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