Display Dates Absent

L

Legacy 400409

Guest
Sheet 1:
P=Presnt
A=Absent

ID
1-Jan-17
2-Jan-17
3-Jan-174-Jan-175-Jan-176-Jan-177-Jan-178-Jan-179-Jan-1710-Jan-17
001PPAPAAAPPA
002APPPPAAPPP
003AAAAAPPPPP
004APPPPPPPPP

<tbody>
</tbody>

Sheet 2:
0011-Jan-17
6-Jan-17
7-Jan-17
10-Jan-17

<tbody>
</tbody>

i wanted help with a formula, once i enter the ID it would give me dates of the person absent (from sheet 1), i have tried hlookup but cant get multiple data, only names and other details i.e each cell having specific hlookup function, can this be done?
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hi there,

From the look of it, you might want to try using a pivot table.

That should cover your need.

Regards.
 
Upvote 0
hi sastoka, i tried pivot but it give me the count of days rather than giving me separated days absent (like a list of each day absent).
 
Upvote 0
hi sastoka, i tried pivot but it give me the count of days rather than giving me separated days absent (like a list of each day absent).
 
Upvote 0

Unknown
ABCDEFGHIJK
2ID01-Jan-1702-Jan-1703-Jan-1704-Jan-1705-Jan-1706-Jan-1707-Jan-1708-Jan-1709-Jan-1710-Jan-17
3001PPAPAAAPPA
4002APPPPAAPPP
5003AAAAAPPPPP
6004APPPPPPPPP
7
8Option 1Option 2
900103-Jan-1703-Jan-17
1005-Jan-1705-Jan-17
1106-Jan-1706-Jan-17
1207-Jan-1707-Jan-17
1310-Jan-1710-Jan-17
14
15
16
17
Sheet15
Cell Formulas
RangeFormula
C9=IFERROR(INDEX($B$2:$K$2,AGGREGATE(15,6,(COLUMN($B$3:$K$3)-COLUMN($B$3)+1)/(INDEX($B$3:$K$6,MATCH($A$9,$A$3:$A$6,0),)="A"),ROWS(C$9:C9))),"")
B9{=IFERROR(INDEX($B$2:$K$2,SMALL(IF(INDEX($B$3:$K$6,MATCH($A$9,$A$3:$A$6,0),)="A",COLUMN($B$3:$K$3)-COLUMN($B$3)+1),ROWS(B$9:B9))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,216,507
Messages
6,131,059
Members
449,616
Latest member
PsychoCube

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