+ Reply to Thread
Results 1 to 11 of 11

Lookup Value from Multiple Columns

  1. #1
    Forum Contributor
    Join Date
    05-12-2013
    Location
    Australia
    MS-Off Ver
    Microsoft Office 365
    Posts
    117

    Lookup Value from Multiple Columns

    Attached example shows a table of dates and week #'s.
    For any given date in column Y, the matching week # in column Z.

    Thanking you in advance.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,091

    Re: Lookup Value from Multiple Columns

    So what is wrong with the results you are getting now? Where are your expected results? Not really sure what you are wanting from us.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,459

    Re: Lookup Value from Multiple Columns

    This formula looks up the value in the appropriate year's column.

    Please try in Z3 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by HansDouwe; 07-04-2023 at 05:19 AM.

  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
    44,485

    Re: Lookup Value from Multiple Columns

    @Hans: I am somewhat bemused. When I was working on this, YEAR(Y5) returned 1930, yet, for you, it returns 2030. How/why is that? Testing on an iPad, if that makes a difference.
    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


  5. #5
    Forum Contributor
    Join Date
    05-12-2013
    Location
    Australia
    MS-Off Ver
    Microsoft Office 365
    Posts
    117

    Re: Lookup Value from Multiple Columns

    Apologies the formula in Z3 should have been deleted. The lookup encompasses the entire table to give the week # values in col Z for any date in col Y.

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,459

    Re: Lookup Value from Multiple Columns

    @TMS, I was cheating, because I changed the value of cell Y5 from 31-12-1930 to 31-12-2030.

  7. #7
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Lookup Value from Multiple Columns

    @TMS
    in OP the date is 31.12.1930. I think Hans updated the date in this century
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  8. #8
    Forum Contributor
    Join Date
    05-12-2013
    Location
    Australia
    MS-Off Ver
    Microsoft Office 365
    Posts
    117

    Re: Lookup Value from Multiple Columns

    Hans, your formula does the trick.
    Cheers Ian

  9. #9
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,459

    Re: Lookup Value from Multiple Columns

    Thanks for the feedback and rep , gald to have helped.

  10. #10
    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
    44,485

    Re: Lookup Value from Multiple Columns

    @Diana: thank you. (Surprisingly,) I hadn't looked at the actual date. I just thought it must be something to do with a date algorithm … I suspect the OP put in a two digit year (30) and THAT generated the 1930 year. I had a working formula until that row. Then I saw Hans had provided a solution so I threw in the towel.

  11. #11
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,462

    Re: Lookup Value from Multiple Columns

    Cell Z3 formula , Drag down

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Replies: 1
    Last Post: 02-12-2021, 07:21 PM
  2. [SOLVED] Lookup multiple criteria in multiple columns in multiple rows; return true if exists
    By ufdlim in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-07-2019, 02:03 PM
  3. Replies: 3
    Last Post: 04-08-2014, 03:11 AM
  4. [SOLVED] VLookup - Single value lookup returning multiple records into multiple columns
    By kllovin in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-07-2014, 05:14 AM
  5. [SOLVED] Multiple lookup adding columns, then multiplying, then lookup, add, and subtract
    By mamig in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-08-2013, 12:55 AM
  6. Lookup Data in One Column, Find Multiple Entries in Next, Copy to Multiple Columns
    By nzxt1234 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-16-2010, 01:17 AM
  7. Lookup adjacent column to multiple lookup columns.
    By JAMES4228 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-13-2009, 03:19 PM

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