Fill a table cell with data from another table based on the adjacent table cell value

timjo

New Member
Joined
Jan 1, 2025
Messages
3
Office Version
  1. 365
  2. 2021
  3. 2019
Platform
  1. Windows
  2. Mobile
Hi Community members,

I am compiling a spreadsheet to list the department meeting schedule for the year, retain records of past meetings, and record statistics for meeting presenters.

Sheet "DC-80 Outlines" contains a table listing talk outlines prepared by my company's WHS department. Several other sheets will reference this sheet.
DC-80 Outlines sheet.png


In the sheet "Schedule Archive", I used a named range for the data validation list in column C. That named range is column A in the "DC-80 Outlines" sheet. I want to insert a formula in column B that fills the talk outline title from the "DC-80 Outlines" sheet based on the value selected from the data validation list in column C.
Schedule Archive sheet.png


I tried several formulas but I could not deliver the result required. Many times the formulas displayed the "#SPILL" error. Below is a link to the spreadsheet.
Loading Google Sheets

Any suggestions for a formula or adjustments to the spreadsheet?


Many thanks,
Tim

Department Meeting Schedule - Sansitised.xlsx
ABCD
1NumberTitleSafety CategorySafety Sub-Category
2A01Title 01Construction and Maintenance
3A02Title 02Construction and Maintenance
4A03Title 03Construction and Maintenance
5A04Title 04Construction and Maintenance
6A05Title 05Construction and Maintenance
7A06Title 06High Hazard Activities ControlElectrical & Energized Equipment
8A07Title 07Operations
9A08Title 08Construction and Maintenance
10A09Title 09Construction and Maintenance
11B01Title 10Operations
12B02Title 11Operations
13B03Title 12Operations
14B04Title 13Operations
DC-80 Outlines



Department Meeting Schedule - Sansitised.xlsx
ABCD
1DateTheme / ItemSafety Outline NumberType
22 June 2011B05Safety Talk
37 July 2011B03Safety Talk
44 August 2011Safety Talk Misc. 01Safety Talk
58 September 2011A04Safety Talk
67 October 2011Safety Talk Misc. 02Safety Talk
73 November 2011C05Safety Talk
81 December 2011C03Safety Talk
95 January 2012H06Safety Talk
102 February 2012C07Safety Talk
111 March 2012Safety Talk Misc. 03Safety Talk
125 April 2012A05Safety Talk
137 June 2012H03Safety Talk
147 July 2012Safety Talk Misc. 04Safety Talk
156 September 2012A04Safety Talk
Schedule Archive
Cells with Data Validation
CellAllowCriteria
C2:C401List=SafetyOutlineNumbers
D2:D401List=TalkTypes
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Welcome to the MrExcel board!

Is this what you are looking for?

Excel Formula:
=XLOOKUP([@[Safety Outline Number]],DC_80_Outlines[Number],DC_80_Outlines[Title],"")
 
Upvote 0
Solution
Welcome to the MrExcel board!

Is this what you are looking for?

Excel Formula:
=XLOOKUP([@[Safety Outline Number]],DC_80_Outlines[Number],DC_80_Outlines[Title],"")
Yes, that works. I had used that formula previously but no results were displayed because the cell format was set to TEXT instead of GENERAL 🤦‍♂️

Some users will be accessing this spreadsheet using Excel 2019. Is XLOOKUP compatible with Excel 2019?
 
Upvote 0
If some users do not have the XLOOKUP function then you could use this instead.

Excel Formula:
=IFNA(VLOOKUP([@[Safety Outline Number]],DC_80_Outlines[[Number]:[Title]],2,0),"")
 
Upvote 0

Forum statistics

Threads
1,225,204
Messages
6,183,562
Members
453,169
Latest member
Marlon18

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