Trying to do a football sheet to compair team scoring by quarter. In the attached file I want to return the scores by team, week and quarter from the sample sheet to the results sheet.
Any help would be appreciated.
Jim O
Last edited by JO505; 12-13-2011 at 07:00 PM.
Try:
If you remove blank row between team names in column I, then you can easily copy formula down.=INDEX(INDEX('Data Sample'!$E$3:$AB$3,MATCH(Result!$I$4,'Data Sample'!$E$1:$AB$1,0)):'Data Sample'!$AB$34,MATCH(Result!$I6,'Data Sample'!$D$3:$D$34,0),COLUMNS($K$2:K$2))
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Try this;
=VLOOKUP($I6,'Data Sample'!$D:$AB,MATCH($I$4,'Data Sample'!$D$1:$AB$1,0)+COLUMNS($K6:K6)-1,0)
copy down.
HTH; Haseeb
If your problem is solved, please say so clearly, and mark your thread as Solved:
Forum Rules & How to Mark a thread as SOLVED
Definitely a more concise option![]()
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Haseeb,
I that works nery well but I do have a question. How does the +COLUMNS($K6:K6)-1,0) function?
Jim O
COLUMNS($K6:K6). COLUMNS will count how many column between ranges. here is 1, K:K, which is column K. We have stopped starting cell with $ which is $K6. When drag across will give 2,3,4,5,.....
MATCH($I$4,'Data Sample'!$D$1:$AB$1,0) will give you the position where Week starts. In the same column where Week starts also starts number 1, then next column 2, then 3 etc... So if you use COLUMNS($K6:K6)-1 will give 0 which will minus add to MATCH. When copy across this will add +1 column to MATCH, so VLOOKUP will give the result from columns.
Hope this helps
HTH; Haseeb
If your problem is solved, please say so clearly, and mark your thread as Solved:
Forum Rules & How to Mark a thread as SOLVED
I thank you both for your help and time with this problem. It may take some time to fully understand what is going on with the formula but for now it works.
Thanks Again!
Jim O
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks