Matching names in row with date in column -corresponding result

=HPSF=RMP

Board Regular
Joined
Jun 9, 2004
Messages
188
This goes beyond the index match.
I have a sheet named "scores" that has a list of "names" in rows A5:A16 and a "last month" in C5:C16 & "Previous month" in D5:D16. B2 has the current month listed.


I have a seperate sheet named "Monthly scores".
The name to match is A:A.
The month to match is the columns from E-Z.

Is it possible to match the name in A:A with the names on the "scores" sheet? Then match the month in B2 on the "scores" sheet to find the corresponding score?

I want the result to post in the "last month" as a -1
and the previous month as a -2
Book1
ABCDEFGHI
2AdjustedNameAgentAverageRatingManagerJan-08Feb-08Mar-08Apr-08May-08
3JohnSmithSmith,John2.50jim3232
2008 Evals


If B2 on the scores sheet is May 08.
I want to find John Smith and bring back the March 08 result in the last month, and the Feb 08 result in the Previous month.
June Evals.xls
ABCD
2EvaluationPeriodMay-08
3DeliveredDate7/10/2008
4CollectorCurrentMonthLastMonthRating:PreviousMonthRating:
5JohnSmith4.23#N/A#N/A
Scores

Is this asking too much of Excel?

thanks
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
No this is pretty straightforward.

Assuming your layout on sample the below formula would work for Current, Last & previous values.

The below would go in SCORES!B5 - then copy across for B6 & B7

=INDEX('MONTHLY SCORES'!$A:$Z,MATCH($A5,'MONTHLY SCORES'!$A:$A,0),MATCH($B$2,'MONTHLY SCORES'!$1:$1,0)+(2-COLUMN(B5)))
 
Last edited:
Upvote 0
sorry, just realised current is pulling in from another source

so enter the below into B6 and copy into B7 (leaving B5 untouched)

=INDEX('MONTHLY SCORES'!$A:$Z,MATCH($A5,'MONTHLY SCORES'!$A:$A,0),MATCH($B$2,'MONTHLY SCORES'!$1:$1,0)+(2-COLUMN(B<b>6</b>)))
 
Upvote 0
=INDEX('[Monthly Evaluation Scores.xls]2008 Evals'!$A:$Z,MATCH($A5,'[Monthly Evaluation Scores.xls]2008 Evals'!$A:$A,0),MATCH($B$2,'[Monthly Evaluation Scores.xls]2008 Evals'!$1:$1,0)+(2-COLUMN(B5)))

doesnt seem to work for me.
 
Upvote 0
assuming you're entering the below in C5

=INDEX('[Monthly Evaluation Scores.xls]2008 Evals'!$A:$AZ,MATCH($A5,'[Monthly Evaluation Scores.xls]2008 Evals'!$A:$A,0),MATCH($B$2,'[Monthly Evaluation Scores.xls]2008 Evals'!$2:$2,0)+(2-COLUMN(C5)))
 
Upvote 0

Forum statistics

Threads
1,214,620
Messages
6,120,559
Members
448,970
Latest member
kennimack

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