+ Reply to Thread
Results 1 to 5 of 5

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

Hybrid View

  1. #1
    Registered User
    Join Date
    01-07-2020
    Location
    Sydney, Australia
    MS-Off Ver
    Microsoft 365
    Posts
    11

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

    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. A screenshot is attached.

    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. A screenshot is attached.

    I tried several formulas but I could not deliver the result required. Many times the formulas displayed the "#SPILL" error. The spreadsheet is attached.

    Any suggestions for a formula or adjustments to the spreadsheet?


    Many thanks,
    Tim
    Attached Images Attached Images
    Attached Files Attached Files
    Many thanks,
    Tim

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,997

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

    This, maybe:
    Formula: copy to clipboard
    =XLOOKUP([@[Safety Outline Number]],DC_80_Outlines[Number],DC_80_Outlines[Title],"")
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    01-07-2020
    Location
    Sydney, Australia
    MS-Off Ver
    Microsoft 365
    Posts
    11

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

    Thanks TMS for your help, that formula worked. 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?

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,997

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

    Is XLOOKUP compatible with Excel 2019?
    Sadly, no. We will need to use VLOOKUP or INDEX/MATCH instead. And also use IFERROR to cope with missing entries.

    Formula: copy to clipboard
    =IFERROR(INDEX(DC_80_Outlines[Title],MATCH([@[Safety Outline Number]],DC_80_Outlines[Number],0)),"")


    Why have you got 200+ blank rows in your Table?

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,997

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

    Thanks for the rep

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Conditional Formatting Based On Adjacent Cell and Table of Values
    By emerdmann in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-18-2023, 10:11 AM
  2. Expand / Trim Table based on Pivot Table size adjacent
    By NewYears1978 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-11-2022, 02:07 AM
  3. [SOLVED] How to automatically fill a cell based on another table.l
    By philosopher76 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-10-2019, 09:55 PM
  4. Replies: 1
    Last Post: 11-25-2014, 08:35 PM
  5. Help with VBA code to find bottom row in pivot table and fill table cell borders
    By Eric111 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-28-2014, 07:15 PM
  6. Replies: 0
    Last Post: 07-02-2013, 11:30 AM
  7. [SOLVED] fill reference table based on data available in master Table
    By jsimha in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-31-2013, 12:19 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1