combine text based on a criteria

LJ1996

New Member
Joined
Apr 8, 2018
Messages
1
Hello,

I am struggling with finding a way to solve this problem. I would really appreciate your support.

I've got a spreadsheet with tasks and the dates they start and end and who does them (resource)... I want to create another spreadsheet that shows me who does what on which day.. this pic is an example.


https://ibb.co/nn6gRc



Thanks!
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Assuming data from A1 to D3 versus your picture
Assuming result dash bord from M1 to P3
N2 = Ressources(N1;M2;$A$1:$D$4)
With next UdF
Code:
Function Ressources(ByVal WkDay, ByVal Ress, Data As Range) As String
Dim I  As Integer, LR  As Long
    With Data
        LR = .Cells(.Rows.Count, 4).End(3).Row
        For I = 1 To LR
            If ((.Cells(I, 2) <= WkDay) And (WkDay <= .Cells(I, 3)) And (.Cells(I, 4) Like "*" & Ress & "*")) Then _
                Ressources = Ressources & "," & .Cells(I, 1)
        Next
    End With
    If (Len(Ressources) <> 0) Then Ressources = Mid(Ressources, 2)
End Function
 
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,290
Members
449,149
Latest member
mwdbActuary

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