Trying to pull 'Weekly' participation

DJFANDANGO

Board Regular
Joined
Mar 31, 2016
Messages
113
Office Version
  1. 365
Platform
  1. Windows
Good day all,

I'm trying to pull the weekly attendance of personnel, at the moment i do this manually (not clever enough to do the other bit:confused:), please see my screenshot of an example, I have on another sheet all the week numbers and dates they start/finish on.

So I get the information sent to me and I paste it into the cells A10:B18, and this gived me the 'Meetings Attended'

The only formula I'm using is =COUNTIF(B$10:B$18,"Mark"), and the same in the subsequent cells below with each "name" A2:A6


  1. - How do I get it to populate the info on the 'Week 01, 02, 03...etc"?
  2. - Is there a way of changing the =COUNTIF to pick up whats in the cell (A2:A6) instead of writing the name in the formula (B2:B6), as the names list changes from week to week?

Hope this is not too long winded, and you guys can help me out with probably a VERY simple solution...

I'd really appreciate any help on this one, thanks

Sheet 1
A
BCDEF
1NameAttendedWeek 01Week 02Week 03
2Mark211
3John211
4billy211
5oscar11
6michael211
7Total10
8
9DateName
1017/01/2019John
1115/01/2019Mark
1217/01/2019Billy
1320/01/2019Billy
1421/01/2019Oscar
1526/01/2019John
1601/01/2019Michael
1708/01/2019Michael
1815/01/2019Mark

<tbody>
</tbody>

Sheet 2
ABC
Week 12018-12-312019-01-06
Week 22019-01-072019-01-13
Week 32019-01-142019-01-20

<tbody>
</tbody>
 
Although I manually changed the date for it to show 'week 1', its now showing 0 (when it should show 1)
 
Upvote 0

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
It works for me


Excel 2013/2016
ABCDEFGBNBOBPBQ
1AttendedWeek 01Week 02Week 03
2Mark2101Week 131/12/201806/01/2019
3John2001Week 207/01/201913/01/2019
4Billy2101Week 314/01/201920/01/2019
5oscar1000
6michael2110
7Total10
8
9DateName
1017/01/2019John
1105/01/2019Mark
1217/01/2019Billy
1301/01/2019Billy
1421/01/2019Oscar
1526/01/2019John
1601/01/2019Michael
1708/01/2019Michael
1815/01/2019Mark
Sheet1
Cell Formulas
RangeFormula
D2=COUNTIFS($B$10:$B$18,$A2,$A$10:$A$18,">="&$BP$2,$A$10:$A$18,"<="&$BQ$2)
E2=COUNTIFS($B$10:$B$18,$A2,$A$10:$A$18,">="&$BP$3,$A$10:$A$18,"<="&$BQ$3)
F2=COUNTIFS($B$10:$B$18,$A2,$A$10:$A$18,">="&$BP$4,$A$10:$A$18,"<="&$BQ$4)
 
Upvote 0
Hey Fluff,

OK... Major progress, its working, but... it doesnt like coming from 2018 - 2019???

I changed the december 18 date to 01-01-2019 and it WORKED!! I dont understand why it doesnt like the 2018 date?

I've tried formatting all the date cells to DATE without any success...

What do you think?
 
Upvote 0
It should work with 2018 dates.
Easiest way to check your dates is to format the dates as General & they should become numbers like 43465 (which is 31/12/2018)
 
Upvote 0
Hi,

Yeah, I tried that and the numbers appear like you say.

It's so frustrating as I got it to 'work' but it was finding data that WASNT there...??? i.e. I put in only dates till 28th Feb, but when I dragged the formula accross (removing the $ lock of course) it was still populating random numbers in each weekly block...

I'll try upload the 'actual' file in google drive or something so you can have a look?

Thanks
 
Upvote 0
Hi Fluff,

You would NOT believe it... it was 'how' I was pasting the information into the spreadsheet, I have to 'Keep Source formatting' proper DUH! moment for me, once again, thanks very much for helping and beiong so patient with my on and on questioning, it is working an absolute TREAT! exactly what I need for my KPI's!!!

Top Advice, thanks!
 
Upvote 0

Forum statistics

Threads
1,214,990
Messages
6,122,626
Members
449,094
Latest member
bsb1122

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