How to use Index, Match & Rows correctly.. Need Help Please???

Worzul

New Member
Joined
Jan 24, 2014
Messages
37
Hello to all on this board,

Firstly may I say what a great help you guys have been over the last few months reading your forum, i'm a bit of an excel fanatic and love the puzzles it can give you, but i have come accross an absolute stand still over this past week and really could do with your help.

I have been tasked to summarise an ongoing tracker that has been going for some time at work, I have been able to import all the data from 5 sheet into one using VBA, now i require a way to select the following.
Name
Dept
Crew
a
z
1
b
z
1
c
z
2
d
z
3
e
y
2
f
y
2
g
y
1
h
y
1
i
x
1
j
x
2
k
x
3

<tbody>
</tbody>


As you can see from above the data is a bit mixed, I need a way so in a seperate sheet("Sheet1") in say d1=dept d2 = crew this would would give me just ie the name, dept 7 Crew of dept z and crew 1 starting in cell a2 on this("Sheet1"). I have been trying to use index & match, row numbers and large but it's just getting me down with a hurdle every time. i realise i may need to add row numbers of some sort as say Dept Z & crew 1 can be repeated over 100 times.

Finished ideal result in seperate sheet..

Dept
z
Name
Dept
Crew
crew
1
a
z
1
b
z
1
c
z
1
d
z
1
e
z
1
f
z
1

<tbody>
</tbody>
Thanks for your help in advance guys, it would really be appreaciated as i have been up many early mornings trying to figure this out.
 

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
Pivot table?

Hi Paddy. Thanks for your response but this will updated regularly on a shared drive and from this data it will give top and bottom performers. I did think of pivot table but I need to make it all automated so management can use it who are not so great with pc knowledge.
But thanks again. I just tried another tinker with it using index and large but got shot down. I'm doing some thing wrong but not sure what.
Thanks for replying so soon though Paddy.
 
Upvote 0
Maybe something like this.
If you set up the ranges properly you can enter in the first cell and copy over and down.

This is an array formula that must be entered with
Excel Workbook
ABCDEFGHIJKL
1NameDeptCrew
2az1Deptz
3bz1NameDeptCrewcrew1
4cz2az1
5dz3bz1
6ey2
7fy2
8gy1
9hy1
10ix1
11jx2
12kx3
13
CTRL-SHIFT-ENTER.
 
Upvote 0
Oh nice ahoync
Works like a charm. Yo be honest looking at the formulas I have been very close with it. But how you got that answer in a matter of an hour is something I'm not quite there yet. It's took me a week. Mid you sometimes you can be looking to hard I suppose.

The only issue I have now is I have had to copy the formulas down 2000 lines so every time I change a value it's taking a good minute or so. This could be with going through nearly 10,000 tows of data to look through. I'm looking now at a message box that comes up with calculating when whenaI value has changed and goes of when finished calculating. Oh how I love a challenge. This will probably go onto onto a different thread unless anyone can help.

I have sorted the worksheet change reference to a cell when I can add a macro. Just need to work out calculating calculating starts to show either a message box or user for and the to worn out when calculating had ended to take off the message box or user from.

I'm getting very close to it though.

Thanks for your help again all.

I love excel because it gives you a fresh puzzle everyday.
 
Upvote 0
** sorry double post *** phone on a bit of a mission.

Oh nice ahoync
Works like a charm. Yo be honest looking at the formulas I have been very close with it. But how you got that answer in a matter of an hour is something I'm not quite there yet. It's took me a week. Mid you sometimes you can be looking to hard I suppose.

The only issue I have now is I have had to copy the formulas down 2000 lines so every time I change a value it's taking a good minute or so. This could be with going through nearly 10,000 tows of data to look through. I'm looking now at a message box that comes up with calculating when whenaI value has changed and goes of when finished calculating. Oh how I love a challenge. This will probably go onto onto a different thread unless anyone can help.

I have sorted the worksheet change reference to a cell when I can add a macro. Just need to work out calculating calculating starts to show either a message box or user for and the to worn out when calculating had ended to take off the message box or user from.

I'm getting very close to it though.

Thanks for your help again all.

I love excel because it gives you a fresh puzzle everyday.
 
Last edited:
Upvote 0
Glad that it worked for you.
Not sure of your layout and you may already be doing this, but since you know the Dept. and Crew you only need to search for the names. So, if you just showed the Dept. & Crew once taken from the criteria you would cut down number of calculations by 2/3 rds.
 
Upvote 0
Yes Thabks AhoyNC, I have changed it a bit so I am only using it one row now.

I have however justt hit another snag which I'm hoping you guys could help me with.

In sheet "Tracker" I have Cell
Crew2AreaA
Week44Percent90

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

C5 = 2
G5 = A
G7 = 90

not worried about the week no as that is done in the date sheet using AhoyNC's formula (Thanks) :)
Row/ CoulumABCDE
9PositionNameDeptCrew
10199.2501
112100.25
123
134
145
156
167
17898.5001
189
191099.5
201199.5001
211299.5002
2213
2314
241596.5001
2516
2617
2718
2819
2920
3021
3122
3223
3324
3425
3526
3627
3728
3829
3930

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

So Basically I am trying to put it in order from smallest to large bassed on the criteria, the percentage must be any one under that percentage I.E under 90%.

I have so far come up with this but is only giving me what it says above, as you can see it's not correct and i can't even get the percentage in it yet. Please help me.
=(INDEX('Data Sheet'!$BJ$3:$BJ$90000,SMALL(IF(('Data Sheet'!$B$3:$B$90000=$G$5)*('Data Sheet'!$C$3:$C$90000=$C$5),ROW('Data Sheet'!$A$3:$A$10000)-ROW('Data Sheet'!$A$3)+1),ROWS('Data Sheet'!$A$3:'Data Sheet'!A3))))

I am unsure if this can even be done, but if any one can, I know you guys can.

It's a good puzzle that's for sure.

Thanks in advance guys, i'll keep chipping away with in and see if I can come up with something.

Also thanks for your help already it's really appreciated.
 
Upvote 0
Forgot to add

In my Data Sheet I Have
Column A = Name
Column B = Dept
Column B = Crew
Then Columns D - BC are the weeks date.
Column BI = average over 4 weeks based on the week selected in "Tracker" Sheet (This what the percentage is based on)
Column BJ = Formula =IF(BI3=0,"",(IFERROR(IF(BI3="","",(COUNTIF($BI$3:BI3,BI3)-1)*0.0001+BI3),""))) which counter acts any duplicate values.


Cheers
 
Upvote 0

Forum statistics

Threads
1,215,575
Messages
6,125,613
Members
449,238
Latest member
wcbyers

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