Find? Index? Match? Help!

SamAnnElizabeth

New Member
Joined
Mar 15, 2013
Messages
34
I'm not sure how to describe what I'm looking to do concisely. I have two sheets, "Dates" and "Programs." On "Dates," I have a series of dates in a table like below:
StartStage 1Stage 2End
Computer3/223/304/255/29
Cell Phone4/14/64/255/1
TV3/234/14/3
Desk4/84/94/175/4

<tbody>
</tbody>

So in this table, there is a list of things that have to be set up in column A. There are four stages in the set up processes (except TV, which does not have a stage 1). In the sheet "Programs" I have the following:

This WeekNext Week
Computer
Cell Phone
TV
Desk

<tbody>
</tbody>

What I would like is for "Start" to appear in B2, meaning Computer will go through the 'Start' stage this week. Accordingly, 'Stage 1' would appear in C2, and 'Start' would appear in B4.

I already have calculated formulas to display the start and end dates of the current week as well as those for the next week (dependent on the =TODAY() function). I'm not against creating a mid-way table or anything that would simplify this process, but I'd love to get any assistance! Thanks, MrExcel team!
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hi,

For a start, in cell B2 :

Code:
=IF(AND(INDEX(dates!B:B,MATCH(A2,dates!A:A,0))>(TODAY()-7),INDEX(dates!B:B,MATCH(A2,dates!A:A,0))<(TODAY()+7)),INDEX(dates!B:B,MATCH(A2,dates!A:A,0)),"")

HTH
 
Upvote 0
That would work if each program went by week, but if I were to run this today, the Stage 1 for Computer would be in this week and that would involve a search in column C. This is the problem I'm running into, where not all the dates for this week are in one column. Is there a way to search for this?
 
Upvote 0
Not sure to fully understand your constraints ...

Can you sort your data in horizontally to get an ascending order ?
 
Upvote 0
Horizontally, my data is in ascending order. A program will pass through Start before Stage 1, then Stage 2, then End. Because it's now a new week, this is how I would want the table in 'Programs' to look:

This WeekNext Week
ComputerStage 1
Cell PhoneStart
TVStage 2
Desk

<tbody>
</tbody>

I need a formula that will search the entire row for a date that falls within the dates of this week or next week. I know it's a little complex, I've tried a lot of different things.
 
Upvote 0
I can't get that to work. Because my dates are the data in the chart, it's not allowing me to group the dates or have them display in the middle of the chart in any way. Could you walk me through how to do this?
 
Upvote 0
From what I understand, you do need to keep your data for your chart in a dedicated format ...

So, to get your pivot table working, the best is to have also a dedicated format for the pivot table ...

HTH
 
Upvote 0

Forum statistics

Threads
1,214,568
Messages
6,120,278
Members
448,953
Latest member
Dutchie_1

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