Need help to correct formula

RAJESH1960

Banned for repeated rules violations
Joined
Mar 26, 2020
Messages
2,313
Office Version
  1. 2019
Platform
  1. Windows
Hello experts

I am trying to get the matching dates of rows which have both the name and No. in common from a different sheet. I have tried entering this formula but something seems to be wrong. Need your expert advice to solve the problem.

=IF(COUNTIFS(Sheet2!I$13:I$35,Sheet1!A2,Sheet2!J$13:J$35,Sheet1!B2,Sheet2!K13,"")
Book1
IJK
1
2
3
4
5
6
7
8
9
10
11
12NAMENOdate
13April404-08-2021
14April315-08-2021
15August808-08-2021
16August719-08-2021
17December1212-08-2021
18December1123-08-2021
19February202-08-2021
20February113-08-2021
21January101-08-2021
22July707-08-2021
23July618-08-2021
24June606-08-2021
25June517-08-2021
26March303-08-2021
27March214-08-2021
28May505-08-2021
29May416-08-2021
30November1111-08-2021
31November1022-08-2021
32October1010-08-2021
33October921-08-2021
34September909-08-2021
35September820-08-2021
Sheet2


Book1
ABC
1NAMENO.GET DATE HERE
2April4
3April3
4August8
5August7
6December12
7December11
8February2
9February1
10January1
11July7
12July6
13June6
14June5
15March3
16March2
17May5
18May4
19November11
20November10
21October10
22October9
23September9
24September8
Sheet1
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Found the mistake. Missed a parenthesis. '=IF(COUNTIFS(Sheet2!I$13:I$35,Sheet1!A2,Sheet2!J$13:J$35,Sheet1!B2,Sheet2!K13,"")
 
Upvote 0
=INDEX(Sheet2!$K$13:$K$35,MATCH(1,(Sheet1!A2=Sheet2!$I$13:$I$35)*(Sheet1!B2=Sheet2!$J$13:$J$35),0))

in C2 on Sheet1 and drag down
 
Upvote 0
=INDEX(Sheet2!$K$13:$K$35,MATCH(1,(Sheet1!A2=Sheet2!$I$13:$I$35)*(Sheet1!B2=Sheet2!$J$13:$J$35),0))

in C2 on Sheet1 and drag down
I am getting a value error. But the problem is resolved. Thanks for your effort JGordon11.?
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,214
Members
453,024
Latest member
Wingit77

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