VLOOKUP and COUNTIFS ?

Dandy83

New Member
Joined
Aug 25, 2019
Messages
4
Hello everyone,

Here is my problem, I have the following spreadsheet:

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD][/TD]
[TD][/TD]
[TD]NC[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Name[/TD]
[TD]01/01/19[/TD]
[TD]01/02/19[/TD]
[TD][/TD]
[TD][/TD]
[TD]12/31/19[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Franck[/TD]
[TD]F[/TD]
[TD]IC[/TD]
[TD][/TD]
[TD][/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Larry[/TD]
[TD]O[/TD]
[TD]O[/TD]
[TD][/TD]
[TD][/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]500[/TD]
[TD]Patricia[/TD]
[TD]F[/TD]
[TD]F[/TD]
[TD][/TD]
[TD][/TD]
[TD]IC[/TD]
[/TR]
</tbody>[/TABLE]

The data in it has to be used in another spreadsheet which looks like that:

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Name[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[TD]F[/TD]
[TD]IC[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Louis[/TD]
[TD]01/18/19[/TD]
[TD]02/15/19[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Sam[/TD]
[TD]06/12/19[/TD]
[TD]06/24/19[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]500[/TD]
[TD]Larry[/TD]
[TD]05/28/19[/TD]
[TD]07/03/19[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I need to fill for each person the number of "F", "IC", "O",... for a given period.

I tried to use a COUNTIFS function but didn't succeed (it only gives me the number of occurences for a given period, I can't link it with specified people).

I hope to be clear.

Any help ?

Thanks a lot.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
In fact I'm trying to find the correct value given a specific period and person. Which function can help ?
I even thought about doing it another way using a pivot table but it's not practical given the multiple different periods for each person.
 
Upvote 0
You could use countifs if you had just one of each name. If not maybe this:

=SUMPRODUCT((Sheet1!$A$2:$A$500=$A2)*(Sheet1!$B$1:$NC$1>=$B2)*(Sheet1!$B$1:$NC$1<=$C2)*(Sheet1!$B$2:$NC$500=D$1))
 
Upvote 0

Forum statistics

Threads
1,223,711
Messages
6,174,025
Members
452,542
Latest member
Bricklin

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