Lookup formula

aryanaveen

Board Regular
Joined
Jan 5, 2015
Messages
104
Hi Guys,

can someone please help me in building a right lookup up formula

ABCD
1​
IdNameBirth dateAge
2​
55​
ABC
14-Aug-20​
25​
3​
55​
ABC
14-Jul-20​
34​
4​
55​
ABC
14-Jun-20​
33​
5​
22​
FF
24-May-20​
22​
6​
33​
SS
10-Sep-20​
15​
7​
33​
SS
5-Aug-20​
20​
8​
9​
10​
What I am looking for is
11​
12​
IdNameBirth dateAge
13​
55​
ABC
14-Jun-20​
Need formula which will give me age based on ID and birth date
14​
33​
SS
5-Aug-20​
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi,

try any of the 2 options:
Book1
ABCDE
1IdNameBirth dateAge
255ABC14-8-202025
355ABC14-7-202034
455ABC14-6-202033
522FF24-5-202022
633SS10-9-202015
733SS5-8-202020
8
9
10What I am looking for is
11
12IdNameBirth dateAge
1355ABC14-6-20203333
1433SS5-8-20202020
Sheet5
Cell Formulas
RangeFormula
D13:D14D13=INDEX($D$2:$D$7,MATCH(1,($A$2:$A$7=A13)*($C$2:$C$7=C13),0))
E13:E14E13=SUMPRODUCT(($A$2:$A$7=A13)*($C$2:$C$7=C13)*($D$2:$D$7))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
please help me in building a right lookup up formula
I suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

For example, IF you have Excel 365, this also becomes available to you. (Assumed same ID and birth date cannot occur more than once, otherwise a modification would be required)

20 08 14.xlsm
ABCD
1IdNameBirth dateAge
255ABC14/8/202025
355ABC14/7/202034
455ABC14/6/202033
522FF24/5/202022
633SS10/9/202015
733SS5/8/202020
8
9
10
11
12IdNameBirth dateAge
1355ABC14/6/202033
1433SS5/8/202020
Age
Cell Formulas
RangeFormula
D13:D14D13=FILTER(D$2:D$7,(A$2:A$7=A13)*(C$2:C$7=C13),"")



Otherwise, if you are sure each ID/birth date combination is unique then you could also consider.

20 08 14.xlsm
ABCD
1IdNameBirth dateAge
255ABC14/8/202025
355ABC14/7/202034
455ABC14/6/202033
522FF24/5/202022
633SS10/9/202015
733SS5/8/202020
8
9
10
11
12IdNameBirth dateAge
1355ABC14/6/202033
1433SS5/8/202020
Age
Cell Formulas
RangeFormula
D13:D14D13=SUMIFS(D$2:D$7,A$2:A$7,A13,C$2:C$7,C13)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,638
Messages
6,120,676
Members
448,977
Latest member
moonlight6

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