+ Reply to Thread
Results 1 to 7 of 7

Match a value in a column and return a relative range of cells in another column

Hybrid View

  1. #1
    Registered User
    Join Date
    01-24-2024
    Location
    Morrisville, NC
    MS-Off Ver
    MS 365
    Posts
    3

    Match a value in a column and return a relative range of cells in another column

    I have a rather elaborate project management spreadsheet that I am working on. I have multiple sheets for different sections of project management (job setup, billing construction progress etc). The common factor in each record in each sheet is the job number. Each record is 13 rows deep.

    I would like to be able to look up the job number from a specific cell in sheet "A" and find its match in Column A of Sheet "B" and return a range of % complete values that are all in Column C and reference them from Sheet "A".

    Screenshot 2025-04-23 153636.jpg
    Screenshot 2025-04-23 153244.jpg

    I have researched Xlookup, Vlookup, Hlookup, and match, but I am not finding exactly what I am looking for.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,754

    Re: Match a value in a column and return a relative range of cells in another column

    Hi and welcome to the forum

    Pictures are of little value. Honestly, no one wants to re-type your data to try and solve your issue. Additionally, we would only be guessing at how your data was structured, ie. formulas, formatting, etc. Additionally, due to how some browsers behave, many of our members cannot see uploaded pictures/images. Please do not take this route.

    Please attach a sample file that represents what you have. The structure of your attachment should be the same structure as your actual data. Any proprietary information should be changed.

    Include in the attachment any code you're currently using (whether it works or not) and an "After" of what you wish the output to be.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    01-24-2024
    Location
    Morrisville, NC
    MS-Off Ver
    MS 365
    Posts
    3

    Re: Match a value in a column and return a relative range of cells in another column

    Sure! I am happy to trim down an easy example of what I need. Workbook attached.

    I'd like to do this with formulas.
    Attached Files Attached Files

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2503 and WPS V2024(12.1.0.18543)
    Posts
    3,965

    Re: Match a value in a column and return a relative range of cells in another column

    worksheet or Tab name : Contract Billing

    Cell H4 formula , Drag down

    Formula: copy to clipboard
    =INDEX('Project Management'!C:C,MATCH($C4,OFFSET('Project Management'!$A$1,MATCH($A$3,'Project Management'!$A:$A,),1,999,),)+MATCH($A$3,'Project Management'!$A:$A,))

  5. #5
    Registered User
    Join Date
    01-24-2024
    Location
    Morrisville, NC
    MS-Off Ver
    MS 365
    Posts
    3

    Re: Match a value in a column and return a relative range of cells in another column

    Fantastic! It works great in the test workbook. I'm breaking it down step by step so I understand exactly what it is doing. Much appreciated!

  6. #6
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2503 and WPS V2024(12.1.0.18543)
    Posts
    3,965

    Re: Match a value in a column and return a relative range of cells in another column

    @Gabriel Pettit You're Welcome. Glad to help . Thank You for the feedback and rep.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,052

    Re: Match a value in a column and return a relative range of cells in another column

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

+ 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. [SOLVED] Given If any words in column A match any string of text in column B, return column B
    By dbmoney123 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-02-2022, 10:55 AM
  2. [SOLVED] Return Cells in Column that Match Criteria
    By philchi in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-23-2020, 08:58 PM
  3. Replies: 3
    Last Post: 04-04-2020, 06:23 PM
  4. Replies: 2
    Last Post: 07-14-2015, 04:32 PM
  5. Match row entries and return range in the same column
    By RapidStart in forum Excel General
    Replies: 2
    Last Post: 05-12-2014, 04:56 AM
  6. Replies: 4
    Last Post: 09-02-2011, 12:27 PM
  7. Match cells between column and return result
    By redmid17 in forum Excel General
    Replies: 8
    Last Post: 01-11-2011, 05:11 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