Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi --
I am trying to create a conditional concatenation function, similar to Excel's built-in CONCATENATE function except (a) it works on ranges and (b) you can provide a second range of values to test against and select the values to use form the first range. This is similar to COUNTIF, where you only count cells that match a certain criterion. I've found some examples of doing range-based concatenation on the web (e.g. http://www.cpearson.com/excel/stringconcatenation.aspx) but I can't figure out how to do the secondary range-based criterion checking. Basically I need to be able to pass a criterion into the function such as "5", walk the two ranges in parallel, and have that test be applied to the current cell in the second range. AFAIK Excel doesn't have an Eval function that would enable me to do this. Can someone suggest a strategy or sample code to get me started on this? Thanks in advance for your time! Ramon |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IF Function and Concatenation | Excel Worksheet Functions | |||
What's Wrong: Concatenation and Function | Excel Worksheet Functions | |||
A "ConcatenateIF" Function in Excel | Excel Worksheet Functions | |||
Is there a "concatenateif" type function? (>30 options) in Excel | Excel Worksheet Functions | |||
New Function: ConcatenateIF | Excel Programming |