Lookup formula

Sunshine8790

Board Regular
Joined
Jun 1, 2021
Messages
71
Office Version
  1. 365
Platform
  1. Windows
So I have a multi-tab spreadsheet, and each sheet has hundreds of rows of data along with many columns of data.
Data is private so cannot share, and will do my best to explain what I need:
On one tab (we'll call it Sheet1), I have this formula down column D:
Excel Formula:
=MATCH(A1,'Emp Summary'!A:A,0)

This either brings up the row number that the data in Column A is found in the Emp Summary tab, or an #N/A error. If I see the error, I know I need to add that information to the other tab it's currently not found in.
HOWEVER....
In column E, I have this formula currently:
Excel Formula:
=MATCH(A1,'Main Sheet'!A:A,0)

Emp Summary only has current data (it's updated frequently with new data)
Main Sheet tab has ALL existing data.

What I need is a to update my formula in column E. I still need it to find a match, if it exists, but instead of returning the line number it's found on in the "Main Sheet" tab - I need it to return the text in Column H of the line number it's found on, or #N/A if no match.

I hope that makes sense and that someone can help me.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Since you are using Excel 365, I think you can use the XLOOKUP function to do what you want.
See here: XLOOKUP function - Microsoft Support

Something like this:
Excel Formula:
=XLOOKUP(A1,'Main Sheet'!A:A,'Main Sheet'!H:H,"N/A")
 
Upvote 1
Solution
That sounds like:

Excel Formula:
=INDEX('Main Sheet'!H:H,MATCH(A1,'Main Sheet'!A:A,0))
 
Upvote 1
You are welcome.
Glad we could help!
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,970
Members
449,095
Latest member
Mr Hughes

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