First match only using DGET

Dhussar

New Member
Joined
Mar 3, 2002
Messages
5
Is their a function similar to DGET that returns the value of the first cell that matchs the criteria and ignors following cells.

For example in the following database:
A B
1 0
2 0
3 1
4 0
5 0
6 1

I want to look for "1" in column "B" and get back the value "3" from column "A"
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
On 2002-03-04 15:20, Dhussar wrote:
Is their a function similar to DGET that returns the value of the first cell that matchs the criteria and ignors following cells.

For example in the following database:
A B
1 0
2 0
3 1
4 0
5 0
6 1

I want to look for "1" in column "B" and get back the value "3" from column "A"

I don't know if you were specifically looking for a database function, but would
=INDEX(A1:B6,MATCH(1,B1:B6,0),1)

meet your needs?

good luck
 
Upvote 0
Thank you that was the most helpful response I have gotten to such a specific problem in my life. Maybe the internet will change our lives:)
 
Upvote 0

Forum statistics

Threads
1,223,369
Messages
6,171,684
Members
452,417
Latest member
gilly01625

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