Index Match Formula to retrieved next cell value

RSI1989

New Member
Joined
Aug 22, 2023
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Hi All, I need your help.
I have a table which shows the schedule of one of the staff - table shown below.

01-Jan​
02-Jan​
03-Jan​
04-Jan​
05-Jan​
06-Jan​
07-Jan​
08-Jan​
09-Jan​
10-Jan​
11-Jan​
12-Jan​
13-Jan​
14-Jan​
15-Jan​
16-Jan​
SunMonTueWedThuFriSatSunMonTueWedThuFriSatSunMon
MarkSickOFFAbsent05_1405_14AbsentAbsentOFFOFF05_1405_1405_1405_1405_14OFFOFF

What will be the correct formula to show the dates of Mark's ABSENT. The output I looking for should be as below

3-Jan-23​
6-Jan-23​
7-Jan-23​
 

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.
I think this will work in 2016:

MrExcelPlayground20.xlsx
ABCDEFGHIJKLMNOPQ
21-Jan2-Jan3-Jan4-Jan5-Jan6-Jan7-Jan8-Jan9-Jan10-Jan11-Jan12-Jan13-Jan14-Jan15-Jan16-Jan
3SunMonTueWedThuFriSatSunMonTueWedThuFriSatSunMon
4MarkSickOFFAbsent05_1405_14AbsentAbsentOFFOFF05_1405_1405_1405_1405_14OFFOFF
5
61/3/20231/6/20231/7/2023
Sheet3
Cell Formulas
RangeFormula
B6:D6B6=SMALL(IF(B4:Q4="Absent",B2:Q2,99999),TRANSPOSE(ROW(INDIRECT("1:"&3))))
Dynamic array formulas.
 
Upvote 0
Hi & welcome to MrExcel.
Another option
Fluff.xlsm
ABCDEFGHIJKLMNOPQ
101/01/202302/01/202303/01/202304/01/202305/01/202306/01/202307/01/202308/01/202309/01/202310/01/202311/01/202312/01/202313/01/202314/01/202315/01/202316/01/2023
2SunMonTueWedThuFriSatSunMonTueWedThuFriSatSunMon
3MarkSickOFFAbsent05_1405_14AbsentAbsentOFFOFF05_1405_1405_1405_1405_14OFFOFF
4
503/01/202306/01/202307/01/2023 
Sheet7
Cell Formulas
RangeFormula
B5:E5B5=IFERROR(INDEX($1:$1,AGGREGATE(15,6,COLUMN($B$1:$Q$1)/($B$3:$Q$3="absent"),COLUMNS($B1:B1))),"")
 
Upvote 0
Thank you so much for your time and effort. Perfect formula and working properly :)
 
Upvote 0
Not sure which of us you are talking to, but glad we could help.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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