Knowing me, knowing you, choose baby

gopa

New Member
Joined
Oct 23, 2002
Messages
32
a e 1
b e 2
c e 3
d e 4
a f 5
b f 6
c f 7
d f 8

Me a
You e
Baby ?

With me and you displayed in cells, I want to get right baby's number.
 
On 2002-10-30 00:05, gopa wrote:
PaddyD

It's OK, now I've spotted a few minor glitches(mine, not yours) and remembered to Ctrl+Shift+Enter EVERY time I edited!

This is real gen for the kind of things I am often doing, many, many thanks.

HughJ

Hugh,

If you're going to copy that array-formula to many cells, you're going to suffer a performance problem. You might want to look for a non-array concatenation solution. Do a search at this site using "concatenation" and "multikey" as key words.

Here is a link...

http://www.mrexcel.com/board/viewtopic.php?topic=22767&forum=2

with an Addendum for the non-array approach.

Aladin
This message was edited by Aladin Akyurek on 2002-10-30 00:18
 
Upvote 0

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
On 2002-10-30 00:05, Aladin Akyurek wrote:
On 2002-10-29 23:50, IML wrote:
what about a good, old fashion sumproduct?

[...]

Ian,

That's dangerous. change A8 to "a" and try Me=a and You=f.

Aladin

Good point, but what is the right answer here? 5, 8 or 13. I was (rightly or wrongly) assuming only unique combinations.

Playing with Colo's toy, I added your vlookup option (I will try not to get carried away with this)
Book2
ABCDE
1aeae1
2bebe2
3cece3
4dede4
5afaf5
6bfbf6
7cfcf7
8afaf8
9
10
11mea
12youf
13index5
14sumproduct13
15vlookup5
Sheet4

This message was edited by on 2002-10-30 00:33
 
Upvote 0
On 2002-10-30 00:23, IML wrote:
On 2002-10-30 00:05, Aladin Akyurek wrote:
On 2002-10-29 23:50, IML wrote:
what about a good, old fashion sumproduct?

[...]

Ian,

That's dangerous. change A8 to "a" and try Me=a and You=f.

Aladin

Good point, but what is the right answer here? 5, 8 or 13. I was (rightly or wrongly) assuming only unique combinations.

Playing with Colo's toy, I added your vlookup option (I will try not to get carried away with this)
[...]

If it's a retrieval problem, 5 and/or 8 are the right answers. I think you took it also as a retrieval problem: The trouble is that unique records are seldom guaranteed in such data, hence my note.
 
Upvote 0
On 2002-10-29 23:37, Aladin Akyurek wrote:
On 2002-10-29 23:26, Yogi Anand wrote:
Hi gopa:

Or the following non-array formula:

=VLOOKUP(B10,{"a",1;"b",2;"c",3;"d",4},2,0)+MATCH(B11,B1:B8,0)-1
[...]

Sort the data on column A and try...

Me b
You f

Hi Aladin:
If the data is sorted, my formulation will fail. In my formulation, I had taken advantage of the way the data was laid out.

Regards!
Yogi Anand
 
Upvote 0
One can use the DGET function ... see the following simulation:
y021030h1.xls
ABCD
1MyColYourCol
2cf
3
4MyColYourColBaby
5ae1
6be2
7ce3
8de4
9af5
10bf6
11cf7
12df8
13
14Myc
15Yourf
16Baby7
Sheet2
</SPAN>

Regards!
Yogi Anand
 
Upvote 0
On 2002-10-30 10:34, Yogi Anand wrote:
One can use the DGET function ... see the following simulation:[...]

I don't know why you do this... Paddy has already quoted links that also show DGET as an approach to the multikey retrieval problems.
 
Upvote 0
Sorry, I had not looked up the links that Paddy had pointed to, and that the use of DGET was already covered.

Regards!
Yogi Anand
 
Upvote 0
Aladin

Thanks for the warning, but I'm only using it in 2 cells, so no problem.

Yogi

Thanks for your suggestion, but in real life my search criteria are in 2 separate cells on a different sheet from the databas, so Dget no help.

Apart from several solutions, the nicest thing about this is the amount of interest!

Hugh
 
Upvote 0

Forum statistics

Threads
1,215,982
Messages
6,128,104
Members
449,421
Latest member
AussieHobbo

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