LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Help writing a CONCATENATEIF function (filtered concatenation over range)

Hi

Insert the line 'Application.volatile' at the beginning of the code.

-----------------------------------------
Option Explicit

Public Function Concat_If(xSource As Range, xCrit As String, Optional xItem
As Range) As String
Dim xCell As Range, xOffset As Long

Application.volatile
Concat_If = ""
.....




"felciano" a écrit dans le message de
...
On Aug 18, 1:39 am, "Charabeuh" wrote:
NB:

I have presumed that the values to compare (A1:A7) are strings.
If these values are numbers, the function seems to be ok but you
must replace the criteria "<=""abc""" with "<5" or put <5 in B1.

One more question: it looks like this function will not get
recalculated automatically. For example, if I change the values in one
of the ranges, the concatenated string does not update automatically.
Is there a way to flag the function to be re-calculated in the same
way that SUMIF and COUNTIF are handled?

Thanks,

Ramon

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF Function and Concatenation Lance Hebert[_2_] Excel Worksheet Functions 8 December 15th 09 05:38 PM
What's Wrong: Concatenation and Function Walter Excel Worksheet Functions 2 May 21st 09 09:53 PM
A "ConcatenateIF" Function in Excel John the Engineer Excel Worksheet Functions 2 June 17th 06 08:57 AM
Is there a "concatenateif" type function? (>30 options) in Excel Denzil B Excel Worksheet Functions 3 September 23rd 05 01:19 PM
New Function: ConcatenateIF Simon Shaw Excel Programming 10 April 1st 05 01:19 AM


All times are GMT +1. The time now is 10:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"