Return cells in a range based on multiple match criteria?

Lewzerrrr

Active Member
Joined
Jan 18, 2017
Messages
256
Hi,

I have a weekly planner with tasks that I'm trying to organise.

In sheet1, I have my Tasks in Column B (B3:B48) and then a 3 week task schedule in columns E,F,G with my users who are performing each task in Column B.

Small sample set of data

TasksUserWeek 31Week 32Week 33
Task1AllUser1User2User3
Task2AllUser2User3User1
Task3AllUser3User1User2
Task4AllAllAllAll
Task5AllUser2User3User1
Task6AllUser3User1User2

<colgroup><col><col span="5"></colgroup><tbody>
</tbody>

And then in Sheet2, I have my week header so Week 31 merged in C1:G1 with my users underneath All, User1, User2.. C2:G2

I need a formula that will return all my tasks for that user but will change when the week changes.

So.. I want it to match the week header in sheet2 (this will change every week but is static across sheet1 E2:E4), and then match the user and return ALL the tasks for that user when dragged down.

Is this possible?
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Correction

So.. I want it to match the week header in sheet2 (this will change every week but is static across sheet1 E2:G2),
 
Upvote 0
Better explanation.

ABCDEFGHIJKL
1TasksUserWeek 31Week 32Week 33Week 31
2Task1ALLALLALLAllUser1User2User3
3Task2User1User3User3Task1Task2Task3Task5
4Task3User2User2User2Task4Task6Task9Task8
5Task4ALLALLALLTask7
6Task5User3User2User1
7Task6User1User2User3Week 32
8Task7User1User2User3AllUser1User2User3
9Task8User3User1User2Task1Task8Task3Task2
10Task9User2User3User2Task4Task5Task9
Task6
Task7

<tbody>
</tbody>
The week 31 table I1:L5 is always going to be there, when I change the week number I want to automatically update the users tasks from the 2nd table D1:F10 (see week 32 table I7:L12).

So essentially in cell I3 - it needs to look up the user in the header, look down the column that has the week header e.g week 31 column D, if it changes to week 32 then column E..

Find the first user and return the task in column A. I then need to drag it down so it will repeat but ignore the first value and so on.. dragging across and doing the same for each user.

Is this possible?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,927
Messages
6,122,311
Members
449,080
Latest member
jmsotelo

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