Please help, formulas work - then dont work im confused!!

sleepers

Board Regular
Joined
May 26, 2004
Messages
203
Hi have have code that works to concantonate a group of dates and it works as such

=concatmth('Group Formula'!$C5:$IR5,D$2)

Code:
Function ConcatMth(rng As Range, item As String, Optional dte = True)
    Application.Volatile
    For Each ce In rng
        If ce <> "" And Sheets(rng.Parent.Name).Cells(2, ce.Column) = item Then
            If dte Then
                holder = holder & Format(ce, "d") & ","
            Else
                holder = holder & ce & ""
            End If
        End If
    Next ce
    ConcatMth = Left(holder, Len(holder) - 1)
End Function

but when i got out of the excel sheet and back in the cells that were supposed to be formulated seem to turn back off - i can make them come back by tools/options/update sheet.. but as i want to be able to vlookup these outcomes it is not an option -

why are the dates disapearing??
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
yes it calculates when you open the sheet ( after a little wait ) then if i click out of that sheet into another workbook, when i go back all the cell say #VALUE!
 
Upvote 0
Can you post a sample of the data you have in the relevant ranges...
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,545
Members
449,089
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top