INDEX Formula that Indexes cells with specific text String

Monica at Plastics

New Member
Joined
Apr 26, 2019
Messages
12
I have a situation similar to this old thread here: https://www.mrexcel.com/forum/excel...-only-indexes-cells-specific-text-string.html

WE:1/18/201946:00
DayStartEndLunchTotal
1/14Monday05:0014:3000:0009:30
1/15Tuesday05:0014:3000:0009:30
1/16Wednesday05:0014:1500:0009:15
1/17Thursday06:0014:3000:3008:00
1/18Friday06:0011:3000:0005:30
1/13Saturday06:1510:3000:0004:15
WE:1/25/201918:15
DayStartEndLunchTotal
1/21Monday05:3707:2900:0002:00PTO08:008
1/22Tuesday00:0000:0000:0000:00PTO08:008
1/23Wednesday00:0000:0000:0000:00PTO08:008
1/24Thursday05:5014:3000:3008:15
1/25Friday05:5113:5400:0008:00
1/19Saturday

<tbody>
</tbody>

I want to use index but when it finds the word PTO I want it to return the date.
 
Last edited by a moderator:

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hello,

Sadly your message is perfectly incomprehensible ... :ROFLMAO:

Try to clarify it ...with on one hand what you currently have

and on the other hand your expected result ...
 
Upvote 0
So what I want is for it to return each employee's PTO amounts, without skipping rows on the results tab. I need it to show the date that it was taken and in a different column the hours that were taken on that date.
 
Upvote 0
Maybe something like this.
Excel Workbook
ABCDEFGHIJ
1WE:1/18/201946:00:00
2DayStartEndLunchTotal
31/14Monday5:0014:300:009:30
41/15Tuesday5:0014:300:009:30
51/16Wednesday5:0014:150:009:15
61/17Thursday6:0014:300:308:00
71/18Friday6:0011:300:005:30
81/13Saturday6:1510:300:004:15
9
10
11WE:1/25/201918:15
12DayStartEndLunchTotal
131/21Monday5:377:290:002:00PTO8:008
141/22Tuesday0:000:000:000:00PTO8:008
151/23Wednesday0:000:000:000:00PTO8:008
161/24Thursday5:5014:300:308:15
171/25Friday5:5113:540:008:00
181/19Saturday
19
20
21PTO
22DateTotal
231/212:00
241/220:00
251/230:00
Sheet
 
Upvote 0
It would help if you could post a small sample that is representative of your data and the expected results.
What does Holiday look in column H? The formula I posted would only pickup PTO in that column.
What data is in sheet Calton_Jacob?
What is in cell A1 of 'PTO Taken'?
 
Upvote 0
The same data that I sent you previously is on each tab I just have a tab for each employee. Holiday is just spelled out in column H like the PTO was. cell A1 of 'PTO taken' has the word PTO. so it always points back to it. If the formula will only pickup up the PTO then that is what I was wanting. the formula worked I just will need it to be dynamic. I included more rows.
 
Upvote 0
One way would be just to increase the range. If your data would not go past row 1000 then set the range to something like A1:A1000 as in example below. If you want to pull from different sheets then something like the INDIRECT function should work. See this link:
https://www.youtube.com/watch?v=cjBEBn6YMi0

Excel Workbook
AB
1PTO
2DateTotal
321-Jan2:00
422-Jan0:00
523-Jan0:00
PTO
Excel Workbook
ABCDEFGHIJ
1WE:1/18/201946:00:00
2DayStartEndLunchTotal
314-JanMonday5:0014:300:009:30
415-JanTuesday5:0014:300:009:30
516-JanWednesday5:0014:150:009:15
617-JanThursday6:0014:300:308:00Holiday
718-JanFriday6:0011:300:005:30
813-JanSaturday6:1510:300:004:15
9
10
11WE:1/25/201918:15
12DayStartEndLunchTotal
1321-JanMonday5:377:290:002:00PTO8:008
1422-JanTuesday0:000:000:000:00PTO8:008
1523-JanWednesday0:000:000:000:00PTO8:008
1624-JanThursday5:5014:300:308:15Holiday
1725-JanFriday5:5113:540:008:00
1819-JanSaturday
19
Calton_Jacob
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,980
Members
448,934
Latest member
audette89

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