|
Excel Magic Trick 479: Reverse Two Way Lookup - Robust Formula for Duplicate Situations
Video | Similar Helpful Excel Resources
See a robust formula that can handle any duplicate situation when doing a Reverse Two Way Lookup. See how to extract column and row headers when the lookup values are data inside the table and there are many duplicate lookup values. This Array Formula uses the functions, IF, OR, COLUMNS, INT, MOD, SMALL, INDEX, COLUMN, ROW, COLUMNS.
This amazing trick comes from DonkeyOte and pgc01 at the Mr Excel Message Board. This video is an improvement on the formula as seen in video Excel Magic Trick #149.5: Reverse 2-Way Lookup w duplicates.
The amazing concept in the video comes from the fact that we have duplicate lookup values and we must return the column and row headers in a specific order. The conceptual trick that will be used is to create a table of numbers in the same shape as the lookup table values and each number will contain both the column number and row number for the lookup value. We will multiply the column numbers by 10^5 then add the row numbers to get a single number that will have information about the column and row index numbers. Absolutely a must see conceptual trick if you want to master Reverse two way lookup!
Reverse Two Way Lookup When Duplicates are Present.
Got a Question? Ask it Here in the Forum.
Similar Helpful Excel Resources
So I used Excel Magic Trick 185 to dynamically pull content from a spreadsheet: http://www.youtube.com/watch?v=6bGKhbUYOas
However,
It is only working for a few of my columns though and I am getting reference errors, http://www.mediafire.com/?gje8srbp8x2j48w
Can anyone check into my spreadsheet and help me understand why I get these ref errors? Is it because I have spaces in the column names or within the cells? I know a macro is probably a better way to do this, or an auto-filter, but I need it to dynamically update. Any ideas on how to fix this problem or a better way to solve it?
Thanks!
I am following this tutorial from youtube. It is a search function to search for a specefic word in an entire row. Here is the first part of the code:
Code:
=SEARCH(C$3,Table2[[#This Row],[DESCRIPTION]])
except i only get a value in the cell that i typed this in, instead of it searching the rest of the row like in the tutorial. i can't figure out how to fix this. anyone know what im doing wrong?
Good morning,
trying to find out what to do with my spreadsheet and the formulas in it.
If you look into the file 369. I can get to the stage where it outlines the mismatch figure. In the example it is 6 Mismatches.
But I cannot seem to get the table belwo right. Everytime I try and copy past the formula, the first set of data is the one from the first line and then I get a #NUM error, due to the fact that there seems to be a number reoccurence somewhere.
I took the youtube tutorial, but even copying that formula did not work.
My table consist of 2 sets of 600 values each.
Can someone tell me why I am getting this error and help me resolve the issue that the result is an existing set of data?
THANK YOU
BayerStars23
[IMG]file:///C:/Users/BINGLE%7E1/AppData/Local/Temp/moz-screenshot.png[/IMG][IMG]file:///C:/Users/BINGLE%7E1/AppData/Local/Temp/moz-screenshot-1.png[/IMG]
Hello,
I am constructing a make-shift database in excel but can't seem to find a way to get magic trick #213 to work.
What I am trying to do is create a dynamic filter via 16 criteria. I would like any results that match all criteria that I specify and then displays results in a separate table to the right.
Thank you so much for your help - I would attach my spreadsheet to this message if I knew how.
BR,
PR
Hello there.
First, and before all, I must admit that I am a kind a "dumb" for Excel, because I always were using it, only for better look's of simple tables, schedule's and similar. Although, I was all the time aware of great power's of this program, but newer tested it.
So, finally after few years of tempting, I decided to make a proper "order-list" for the shop in which I work. What I needed is to ,based on products and their prices, make a drop-down box, with list of the products, and after choosing one , proper price will be shown in next column. I find out how to do it with "Excel magic trick #5" on Youtube.
This is what i achieved:
http://i49.tinypic.com/dorzgn.jpg
However,
You see that in row 16, or line 2 in the order box ,we have #N/A below Cena (Price), Iznos PDV (amount of VAT), Cena sa PDV (Amount with VAT), and Iznos (Total amount). If we choose one of the product from drop-down box (now, as You can see none is chosen) and type number in Kolicina(Quantity) column, all this would be automatically changed into proper value.
But what if we have only one thing in order box, instead of 2 or all of 10 ? How to avoid those #N/A, and make instead to be blank cell, which is to be counted as 0, because of final calculation?
In this order-form we have only line 1 and 2 programed to have drop-down box in line Naziv robe (Name of the product). If I putted same drop-down boxes in rest 8 columns, #N/A would be shown in all programed cells bellow, like in line 2...
Kind regards from Serbia
Looking for a little help tweaking Excel Magic Trick 185. I've reached what is probably just a mental block.
I'm trying to adjust a spreadsheet for work using the processes described in Excel MagicTrick 185. (Great series, by the way...) The catch is that the source data table can not be modified under any circumstances (we've already asked).
The problem is different than EMT_185 in that there are 9 columns that can potentially define a match as opposed to just the one shown in EMT_185. There are two user options ('I-III' and 'A-C') which in combination establish the headings for the 9 possible conditions (I-A, II-A, III-A ...) .
(See the linked spreadsheet) I've been able to:
determine if a row in the source matches user provided conditions (col Y),
get the count of matched source rows (row 26),
determine the match instance (col AA), and
place the source data in the output table (col AC)
What I can't quite get my mind around is suppressing the blanks in the output (i.e.:getting match 1 on row 1, match 2 on row 2, etc.)
What am I missing? Please help. A spreadsheet showing what I have so far is located on google docs. Perhaps you could make a new EMT out of it!
BTW.. this used to be done via vba, however that is no longer an option (don't ask... It just isn't, and it's not a topic that is open to discussion -- we tried).
http://www.youtube.com/watch?v=tqCEY5YMyqw
I am trying to duplicate the concept on my spreadsheet. It is conceptually the same, the formula is slightly different.
Mine is as follows:
{=IF(ROWS(A$5:A5)>$B$2,"",
INDEX(US!A$5:A$72,
SMALL(IF(US!$AU$5:$AU$72=Sheet1!$A$2,ROW(US!$AU$5:$AU$72)-ROW(US!$AU$5)+1),ROWS(A$5:A5))))}
Resulting in a #VALUE! error. Can anybody advise me what should the formula me?
Thank a million!
Long
In reference to:
Excel Magic Trick 358: Part 1: Return Multiple Items From One Lookup Value for Table w Formula.
Can this be done for more than one Lookup Value? I have this table of information that I would like to keep adding data to over time. Then based on the date and the team or teams within that table I would like to retrieve the data. e.g. The Table
Date
Age
Gender
Position
Sport
Athlete
Test 1
Test 2
Test 3
Test 4
1/8/2009
18-24
Female
C
Team 1
Lilly Padd
8
35
2.5
22
1/8/2009
32-38
Male
A
Team 2
Shaun Peet
9
38
2.6
18
1/8/2009
25-31
Male
A
Team 1
Dave Woodhead
11
41
2.7
20
1/8/2009
25-31
Male
A
Team 3
Mike Metcalf
13
44
2.8
17
1/8/2009
49-55
Male
B
Team 1
Doug Newell
12
32
2.45
16
1/8/2009
25-31
Female
C
Team 2
Julie Drew
6
31
2.1
15
1/8/2009
18-24
Male
B
Team 3
Chad Avrit
12
30
2.56
12
1/8/2009
18-24
Male
B
Team 2
Ben Fetzer
18
29
2.71
14
1/8/2009
32-38
Female
C
Team 3
Beth Sige
7
28
2.8
10
1/14/2009
18-24
Female
C
Team 1
Lilly Padd
9
32
2.34
23
1/14/2009
32-38
Male
A
Team 2
Shaun Peet
10
37
2.63
17
1/14/2009
25-31
Male
A
Team 1
Dave Woodhead
12
44
2.79
22
1/14/2009
25-31
Male
A
Team 3
Mike Metcalf
13
47
2.85
21
1/14/2009
49-55
Male
B
Team 1
Doug Newell
13
35
2.56
19
1/14/2009
25-31
Female
C
Team 2
Julie Drew
7
32
2.19
19
1/14/2009
18-24
Male
B
Team 3
Chad Avrit
13
28
2.33
14
1/14/2009
18-24
Male
B
Team 2
Ben Fetzer
19
29
2.54
20
1/14/2009
32-38
Female
C
Team 3
Beth Sige
6
30
2.78
17
and the retrieval area
1/14/2009
Athlete
Test 1
Test 2
Test 3
Test 4
Team 1
Lilly Padd
9
32
2.34
23
Team 2
Shaun Peet
10
37
2.63
17
Team 3
Dave Woodhead
12
44
2.79
22
9
Mike Metcalf
13
47
2.85
21
Doug Newell
13
35
2.56
19
Julie Drew
7
32
2.19
19
Chad Avrit
13
28
2.33
14
Ben Fetzer
19
29
2.54
20
Beth Sige
6
30
2.78
17
in the retrieval area cells have this array formula (changes based on location):
=IF(ROWS(B$34:B34)
Hey guys
A while back I found a link (I think through this forum) to a few macros that were magic tricks.
Does this ring any bells? I'm trying to find it again.
Any help would be much appreciated.
Hi All,
I was setting up a spreadsheet that was based on the following vid:
http://www.youtube.com/user/ExcelIsF...14/tqCEY5YMyqw
Dynamic sub tables based on a master sheet array formula
The formula in question is:
=IF(ROWS(A$7:A7)>$E$1,"",INDEX('2010Corn'!A$4:A$17,SMALL(IF(Table2[From]=$B$1,ROW(Table2[From])-ROW('2010Corn'!$H$4)+1),ROWS(A$7:A7))))
B1 is the customer I'm looking for, E1 is the count for the customer and the master page is 2010Corn. I have 20 sheets looking to this master page for data. It works great, except for an issue when adding a new line in the master table.
What is happening is when I get to the end of a row, I tab to enter a new line in the table. It takes up to a minute for the cell to change color and for me to regain control of the computer.
I have run a performance trace and while the computer is locked, one of the CPU core's is pegged for the whole time with a processor que of up to 10 items at a time.
My question is...does anyone have any hints how to optimize this formula?
Thanks
Tony
|
|