Use column data and relative row cell value to display data in another cell of same column

Darren_workforce

Board Regular
Joined
Oct 13, 2022
Messages
128
Office Version
  1. 365
Platform
  1. Windows
I have tried 2 formulas (below) and neither work. Can Vlookup and Hlookup be combined to locate the data I'm looking for or will it require an indirect/match formula?

The data pictured below is in the tab marked MON (Monday). I would like a formula that would search by a) the name in COL A and then b) search that row to locate the column in which "B1" (first break) appears. The formula would then display the data in the time row (Row 59 in this example but that can change). I feel this can be done without VBA but I'm just not getting anywhere. All help would be greatly appreciated.

1667852635365.png


=IFERROR(INDEX(MON!$B$59:$AQ$59,MATCH(F11,INDEX(MON!$B$7:$AQ$31,MATCH(A2,MON!$A$7:$AQ$31,0),),1)), "Not Found")
=VLOOKUP(Sheet4!A2,MON!A7:AQ58,HLOOKUP(Sheet4!B1,MON!B7:AQ59,2,FALSE),FALSE)
 

Attachments

  • 1667852417222.png
    1667852417222.png
    6.8 KB · Views: 3

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
How about
Excel Formula:
=FILTER(MON!B59:AQ59,FILTER(MON!B7:AQ58,MON!A7:A58=A2)="B1")
 
Upvote 0
Solution
How about
Excel Formula:
=FILTER(MON!B59:AQ59,FILTER(MON!B7:AQ58,MON!A7:A58=A2)="B1")
Thank you Fluff!! Worked PERFECTLY!!

Just 1 question on that: since the time row (59) could change depending on staffing numbers, is there a way to set that up with a more dynamic formula?
 
Upvote 0
Maybe
Excel Formula:
=FILTER(FILTER(MON!B59:AQ100,MON!A59:A100="Eastern Time"),FILTER(MON!B7:AQ58,MON!A7:A58=A2)="B1")
 
Upvote 0
Maybe
Excel Formula:
=FILTER(FILTER(MON!B59:AQ100,MON!A59:A100="Eastern Time"),FILTER(MON!B7:AQ58,MON!A7:A58=A2)="B1")
it works but it's "spilling" into the next 3 rows under the one my formula goes into.
1667854915451.png
 
Upvote 0
In that case can you post some sample data.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0

Forum statistics

Threads
1,215,216
Messages
6,123,669
Members
449,114
Latest member
aides

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