Index Preparation

adiles

New Member
Joined
Jun 13, 2020
Messages
41
Office Version
  1. 365
Platform
  1. Windows
Employee NamesSupplierTotalINOUTINOUTINOUTJOBTotalINOUTINOUTINOUTJOBTotalINOUTINOUTINOUTJOB
TalibSaleem
14​
23.5​
10076​
9.5​
14​
24​
0​
6​
10076​
16​
QasimSaleem
14​
23.5​
10076​
9.5​
14​
24​
0​
1​
10076​
11​
15​
18.5​
GHMJ242
ManzoorSaleem10015
0​
14​
24​
0​
6​
10106​
16​
15​
19.5​
GHMJ242
Saleem's Employee 4Saleem9675
0​
9545
0​
9889
Hi All,
This is my table of data and I want an Index to understand easily what's inside this long table. I want to display all the job numbers without duplicates in a new table of index, which will add automatically if I add new job numbers.
Example
JobTotal
10076I will do sumif if i get job numbers without duplicates
10015
9889
9675
GHMJ242
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Maybe:

Book1
ABCDEFGHIJKLMNOPQRSTUVWXYZ
1Employee NamesSupplierTotalINOUTINOUTINOUTJOBTotalINOUTINOUTINOUTJOBTotalINOUTINOUTINOUTJOB
2TalibSaleem1423.5100769.51424061007616
3QasimSaleem1423.5100769.514240110076111518.5GHMJ242
4ManzoorSaleem10015014240610106161519.5GHMJ242
5Saleem's Employee 4Saleem96750954509889
6
7JobTotal
81007619
9GHMJ24227
10100150
11101060
1296750
1395450
1498890
15 
Sheet15
Cell Formulas
RangeFormula
B8:B14B8=SUM(IFERROR($C$2:$Z$5*($C$1:$Z$1="total")*($J$2:$AG$5=A8),0))
A8:A15A8=IFERROR(INDIRECT(TEXT(AGGREGATE(15,6,(ROW($C$2:$Z$5)*100+COLUMN($C$2:$Z$5))/(COUNTIF(A$7:A7,$C$2:$Z$5)=0)/($C$2:$Z$5<>"")/($C$1:$Z$1="JOB"),1),"R00C00"),0),"")
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.
 
Upvote 0
I am getting a value "IN" when i apply this formula. Could you please tell me is there anything i have to change in AGGREGATE function. Actually i didn't know what the 15,6 in AGGREGATE refer to. Thanks for your effort by the way. :)
 
Upvote 0
AGGREGATE is a composite function which can perform many different functions (SUM, COUNT, MAX, etc.), but with the added ability to skip errors. In this case, the 15 refers to the SMALL function, and the 6 means to ignore errors. If you're getting IN as a response, that probably means you've changed the ranges in the function incorrectly:

=IFERROR(INDIRECT(TEXT(AGGREGATE(15,6,(ROW($C$2:$Z$5)*100+COLUMN($C$2:$Z$5))/(COUNTIF(A$7:A7,$C$2:$Z$5)=0)/($C$2:$Z$5<>"")/($C$1:$Z$1="JOB"),1),"R00C00"),0),"")

The 2's in red refer to the top row of data, while the 1's in green refer to the header row. The 5's refer to the last row of data, and the A$7:A7 refers to the cell right above the formula.
 
Upvote 0
AGGREGATE is a composite function which can perform many different functions (SUM, COUNT, MAX, etc.), but with the added ability to skip errors. In this case, the 15 refers to the SMALL function, and the 6 means to ignore errors. If you're getting IN as a response, that probably means you've changed the ranges in the function incorrectly:

=IFERROR(INDIRECT(TEXT(AGGREGATE(15,6,(ROW($C$2:$Z$5)*100+COLUMN($C$2:$Z$5))/(COUNTIF(A$7:A7,$C$2:$Z$5)=0)/($C$2:$Z$5<>"")/($C$1:$Z$1="JOB"),1),"R00C00"),0),"")

The 2's in red refer to the top row of data, while the 1's in green refer to the header row. The 5's refer to the last row of data, and the A$7:A7 refers to the cell right above the formula.
Thanks alot. Now it works. But I am not able to apply the same formula in another sheet, which means I have the data in Sheet1 and I want to apply the formula in Sheet2.
Is it possible ?
 
Upvote 0
You should be able to do that. Add a sheet reference to all the ranges except the cell above the formula:

=IFERROR(INDIRECT(TEXT(AGGREGATE(15,6,(ROW(Sheet1!$C$2:$Z$5)*100+COLUMN(Sheet1!$C$2:$Z$5))/(COUNTIF(A$7:A7,Sheet1!$C$2:$Z$5)=0)/(Sheet1!$C$2:$Z$5<>"")/(Sheet1!$C$1:$Z$1="JOB"),1),"R00C00"),0),"")
 
Upvote 0
You should be able to do that. Add a sheet reference to all the ranges except the cell above the formula:

=IFERROR(INDIRECT(TEXT(AGGREGATE(15,6,(ROW(Sheet1!$C$2:$Z$5)*100+COLUMN(Sheet1!$C$2:$Z$5))/(COUNTIF(A$7:A7,Sheet1!$C$2:$Z$5)=0)/(Sheet1!$C$2:$Z$5<>"")/(Sheet1!$C$1:$Z$1="JOB"),1),"R00C00"),0),"")
Thank you so much
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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