Lookup over multiple columns & rows

paulsolar

Well-known Member
Joined
Aug 21, 2013
Messages
684
Office Version
  1. 365
Hi All

I've been trying to figure out how to do this for a while without using a massive formula to do it.

I have a range A26:H38, Column A has engineers names Column B has the job numbers they have carried out on Sunday, C has Mondays jobs and so on to Saturday, there is only one job number per day per engineer and they are unique.

I need to hide the rows A:H to stop anyone altering anything.

I have created a list of all the job for the week numbers in column O starting in row 3, what i want to do is put the name of the engineer who carried out the work next to the job number in column in column N.

Is there an easy easy way to do this? I'm not very good with formula

Cheers

Paul
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
How about
Excel Formula:
=XLOOKUP(O3,TOCOL($B$26:$H$38),TOCOL(IF(SEQUENCE(,7),$A$26:$A$38)),"")
 
Upvote 0
How about
Excel Formula:
=XLOOKUP(O3,TOCOL($B$26:$H$38),TOCOL(IF(SEQUENCE(,7),$A$26:$A$38)),"")
Hi Fluff, long time no speak, thanks as always for your prompt reply

do i enter this as an array?
 
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
Hi Fluff, I'm getting this error message "Array arguments to XLOOKUP are of different size."

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.
Hi Fluff, you will have noticed i never mentioned Saturdays result, i expect you will get your own back this Saturday

I'm trying to work this out for myself now as I'm intrigued, what does this part of the formula do "TOCOL(IF(SEQUENCE(,7)"
 
Upvote 0
Saturday was just are hopefuls team, not a proper one. ;)
what does this part of the formula do "TOCOL(IF(SEQUENCE(,7)"
It effectively copies the values in col A 7 times horizontally & then converts into a column
Fluff.xlsm
ABCDEFGHIJK
1
2BlackdownBlackdownBlackdownBlackdownBlackdownBlackdownBlackdownBlackdownBlackdown
3LongbridgeLongbridgeLongbridgeLongbridgeLongbridgeLongbridgeLongbridgeLongbridgeBlackdown
4Cinderford EastCinderford EastCinderford EastCinderford EastCinderford EastCinderford EastCinderford EastCinderford EastBlackdown
5Blackdown
6Blackdown
7Blackdown
8Blackdown
9Longbridge
10Longbridge
11Longbridge
12Longbridge
13Longbridge
14Longbridge
15Longbridge
16Cinderford East
17Cinderford East
18Cinderford East
19Cinderford East
20Cinderford East
21Cinderford East
22Cinderford East
Data
Cell Formulas
RangeFormula
C2:I4C2=IF(SEQUENCE(,7),A2:A4)
K2:K22K2=TOCOL(C2#)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,267
Messages
6,123,964
Members
449,137
Latest member
yeti1016

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