On Sep 24, 11:32*am, Gord <phnor...@shaw.ca> wrote:
> Sorry for the delay...........hope you're still watching.
>
> Here is a modification that will allow dragging formula across while
> keeping column A as reference to names.
>
> Function concat(CellBlock As Range) As String
> Dim cell As Range
> Dim sbuf As String
> * * For Each cell In CellBlock
> * * If cell.Value > 0 Then sbuf = sbuf & _
> * * * * *Range("A" & cell.Row).Text & "/"
> * * Next
> * * concat = Left(sbuf, Len(sbuf) - 1)
> End Function
>
> Gord
>
> On Thu, 22 Sep 2011 11:58:03 -0700 (PDT), cardan
>
>
>
> <carlsondan...@gmail.com> wrote:
> >Hi Gord, Thank you for the input. *I usually do some complex formula
> >writing and found I get the best reponses here, so I usually asked my
> >questions here under the programming group. *Also sometimes I have to
> >share the models and sometimes others don't know anything about macros
> >(less than I do) so I will stay away from them (and sometimes arrays
> >too).
>
> >I followed your instructions and it works great. *One question I do
> >have, is if I wanted to copy that formula over to other columns, how
> >can I make it so that it will reference the names in Column A, but
> >adjust based on the values within another column. *It is my fault for
> >not being specific enough. I figured I would keep my question as
> >simple as possible since I can always copy a formula easily. *Thank
> >you again for your assistance.- Hide quoted text -
>
> - Show quoted text -
Hi Gord, Thank you again for your response. I tried the latest code,
but it does not seem to be taking any differently from the previous
code. I tried to modify it slightly to match my workbook a bit more,
but I it still does the same thing- so it is hard for my novice eyes
see what is happening. Essentially, my names are actually in column D
(D:20

24). I am starting my "concat" formula in column E (E7). It
works great in cell E7. but when I copy the formula to F7, it then
returns the values that were are in column E rather than the names in
Column D.
I thought I could change this by renaming the range from "A" to "D",
or possibly changing the -1 in the concat formula but no luck. I am
sure it is an easy fix, I just don't know where to start. Thank you
again for your continued assistance on this! -Dan