Help with fine tuning formula - date lookup concantonate

sleepers

Board Regular
Joined
May 26, 2004
Messages
203
Hi i have this great script that looks up my availabilities sheet and makes a nice avails roster which shows the dates available in a month etc

i need to be able to control which days show - eg. i only want fri and sat to list and bypass the thu and sun from the availabilities sheet.

avails setup
http://www.whirlwindent.com/test/avails.pdf


output
http://www.whirlwindent.com/test/output.pdf

code on output page
=IF(ISERROR(concatmth2(INDIRECT(I$5),C10)),"",(concatmth2(INDIRECT(I$5),C10)))

script
Code:
Function ConcatMth2(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, "ddd d") & ","
            Else
                holder = holder & ce & ","
            End If
        End If
    Next ce
    ConcatMth2 = Left(holder, Len(holder) - 1)
End Function
[/code]

i need to be able to select the days i want and then the months will only show those variables?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,625
Messages
5,832,750
Members
430,163
Latest member
YesImAk

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
Top