VLOOKUP and COUNTIFS ?

Dandy83

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

Here is my problem, I have the following spreadsheet:

ABCNC
1Name01/01/1901/02/1912/31/19
2FranckFICO
3LarryOOF
500PatriciaFFIC

<tbody>
</tbody>

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

ABCDEF
1NameStart DateEnd DateFICO
2Louis01/18/1902/15/19
3Sam06/12/1906/24/19
500Larry05/28/1907/03/19

<tbody>
</tbody>

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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
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,214,405
Messages
6,119,320
Members
448,887
Latest member
AirOliver

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