+ Reply to Thread
Results 1 to 8 of 8

How to list values between values in two cells.

  1. #1
    Registered User
    Join Date
    12-14-2019
    Location
    Cannock, United Kingdom
    MS-Off Ver
    Office 365
    Posts
    10

    How to list values between values in two cells.

    This should be simple but I just can't figure it out. I have two columns of data containing numbers. For example, column A 2000 and column B 2005. I want a formula that will put the values between those two into the columns to the right and stop when it reaches the value in column B. Or better yet, place all the values in column C and separate them with a comma.

  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
    80,916

    Re: How to list values between values in two cells.

    Welcome to the forum.

    Please provide a sample workbook showing a few lines of mocked up data as you wish to see it. Instructions in the yellow banner at the top of this page.
    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
    Registered User
    Join Date
    12-14-2019
    Location
    Cannock, United Kingdom
    MS-Off Ver
    Office 365
    Posts
    10

    Re: How to list values between values in two cells.

    Thanks for the super quick reply. If I've done this right there should be an example of what I have. I am trying to get unique values between A&B in the adjacent cells or what would be perfect would be the values separated by commas in column C.
    Attached Files Attached Files

  4. #4
    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
    80,916

    Re: How to list values between values in two cells.

    You have not mocked up the results you want to see - please do so and attach the workbook again.

  5. #5
    Registered User
    Join Date
    12-14-2019
    Location
    Cannock, United Kingdom
    MS-Off Ver
    Office 365
    Posts
    10

    Re: How to list values between values in two cells.

    In an ideal world, this.
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,913

    Re: How to list values between values in two cells.

    Not tested.

    =TEXTJOIN(",",TRUE,ROW(INDIRECT(A2&":"&B2)))

    Enter with Ctrl+Shift+Enter

  7. #7
    Registered User
    Join Date
    12-14-2019
    Location
    Cannock, United Kingdom
    MS-Off Ver
    Office 365
    Posts
    10

    Re: How to list values between values in two cells.

    Fantastic! Thank you.

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to list values between values in two cells.

    I'd been working on a solution assuming you didn't have Excel without realsing that Office365 automatically includes that. I hadn't realised that - lesson learned.

    However for anyone coming later who doesn't have TEXTJOIN available here's a function that addresses your particular request. i.e. with a maximum of 4 numbers in the range.

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

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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] VBA code to look up a list of values based on entered values and return all values.
    By dnwadams in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-30-2015, 10:14 PM
  2. Replies: 6
    Last Post: 09-29-2015, 12:11 AM
  3. [SOLVED] make list of values corresponding to unique values in parallel list
    By johnandrews in forum Excel General
    Replies: 3
    Last Post: 11-18-2014, 09:46 AM
  4. Pull Values from List Exluding Matching Values in Second List
    By sskgintl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-16-2014, 09:29 PM
  5. Copy/Paste Cells from old list to new master list by matching values
    By rfsmith in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-19-2012, 05:32 PM
  6. Filter a long list by a shorter list of values, keeping repeated values
    By mrfloopa in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 06-15-2012, 09:50 PM
  7. Function to match random list values to set list values.
    By Sandman4432 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-24-2007, 09:22 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