+ Reply to Thread
Results 1 to 10 of 10

Select multiple multiple cells adjacent to a date and populate a table

  1. #1
    Registered User
    Join Date
    05-03-2018
    Location
    Wixom, MI
    MS-Off Ver
    2010
    Posts
    5

    Select multiple multiple cells adjacent to a date and populate a table

    Hello there, I am new to the forum. I am looking for some help with the following:
    I have two tables:
    Table one has 2 columns, Column 1 has Part Numbers, Column 2 has Ship dates.
    Table two has 365 Columns, each row header has a unique date.

    I want to select a date in table two, then find the cell(s) that have that date within column 2 of table 1. Then i want to populate a column section in table 2 with those adjacent values.
    Is there a specific formula for this?

    Thanks in advance.

    Fred
    Last edited by fedeboja; 05-10-2018 at 03:28 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Select multiple multiple cells adjacent to a date and populate a table

    Hi, welcome to he forum

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    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.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    05-03-2018
    Location
    Wixom, MI
    MS-Off Ver
    2010
    Posts
    5

    Re: Select multiple multiple cells adjacent to a date and populate a table

    Ford, I have attached a dummy file.
    Thanks
    Fred

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,562

    Re: Select multiple multiple cells adjacent to a date and populate a table

    Assuming that you want to populate E15:AB27 on sheet 2, then the following formula could be pasted into E15 and copied down to E27 and, while E15:E27 are still selected, across to AB27:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    05-03-2018
    Location
    Wixom, MI
    MS-Off Ver
    2010
    Posts
    5

    Re: Select multiple multiple cells adjacent to a date and populate a table

    Thanks JeteMc, but that formula gives me a 0 value.

    Please look at the updated attachment, it will probably explain better what i am looking for.

    For any given date within F2:IQ2, i want to find that date within column B, then take the adjacent values to that date wthin column A and insert those values within the F33:IQ38 range under that given date

    Thanks again for the help.

    Fred

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,562

    Re: Select multiple multiple cells adjacent to a date and populate a table

    I don't see any attachments.
    Let us know if you have any questions.

  7. #7
    Registered User
    Join Date
    05-03-2018
    Location
    Wixom, MI
    MS-Off Ver
    2010
    Posts
    5

    Re: Select multiple multiple cells adjacent to a date and populate a table

    Sorry about that, here it is.

    Thanks again

    Fred
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,562

    Re: Select multiple multiple cells adjacent to a date and populate a table

    The following formula seems to yield the expected results in the attached file:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    05-03-2018
    Location
    Wixom, MI
    MS-Off Ver
    2010
    Posts
    5

    Re: Select multiple multiple cells adjacent to a date and populate a table

    Thank you very much JeteMc
    I will try it on the real table.

    Fred

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,562

    Re: Select multiple multiple cells adjacent to a date and populate a table

    You're Welcome. If the formula resolves the issue please take a moment to mark the thread as 'Solved' using the thread tools drop down in the ribbon above your first post. I hope that you have a blessed day.

+ 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: 14
    Last Post: 04-18-2017, 07:07 PM
  2. Replies: 4
    Last Post: 07-28-2015, 01:33 PM
  3. Select multiple rows and cells based on a single date
    By UTLee in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-16-2013, 11:09 AM
  4. VBA Loop for averaging multiple cells adjacent to date criteria column
    By Swampy79 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2013, 10:08 PM
  5. Copy formulas to adjacent columns - multiple cells and multiple sheets
    By swanseaexcel in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-12-2011, 06:21 AM
  6. Replies: 2
    Last Post: 06-25-2010, 09:19 AM
  7. Excel 97-select multiple cells from pivot table
    By jjonesa in forum Excel General
    Replies: 1
    Last Post: 03-01-2005, 10:06 AM

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