+ Reply to Thread
Results 1 to 3 of 3

Input a value and capture the next 5 values

  1. #1
    Registered User
    Join Date
    01-02-2014
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    95

    Exclamation Input a value and capture the next 5 values

    I have a list of week numbers and I need to be able to put a week# and the next columns will automatically capture the next 5 weeks. So next 5 week # will be based from the first week # value.

    Input Value changes when h3 value changes
    WC0105 WC0112 WC0119 WC0126 WC0202

    WC0112 WC0119 WC0126 WC0202 WC0209


    Week
    WC0105
    WC0112
    WC0119
    WC0126
    WC0202
    WC0209
    WC0216
    WC0223
    WC0302
    WC0309
    WC0316
    WC0323
    WC0330
    WC0406
    WC0413
    WC0420
    WC0427
    WC0504
    WC0511
    WC0518
    WC0525
    WC0601
    WC0608
    WC0615
    WC0622

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,175

    Re: Input a value and capture the next 5 values

    Please post a sample file.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Input a value and capture the next 5 values

    Try this...

    Data Range
    A
    B
    C
    D
    E
    F
    G
    1
    Week
    ------
    Week
    2
    WC0105
    WC0209
    WC0216
    WC0223
    WC0302
    WC0309
    3
    WC0112
    4
    WC0119
    5
    WC0126
    6
    WC0202
    7
    WC0209
    8
    WC0216
    9
    WC0223
    10
    WC0302
    11
    WC0309
    12
    WC0316
    13
    WC0323
    14
    WC0330
    15
    WC0406
    16
    WC0413
    17
    WC0420
    18
    WC0427
    19
    WC0504
    20
    WC0511
    21
    WC0518
    22
    WC0525
    23
    WC0601
    24
    WC0608
    25
    WC0615
    26
    WC0622


    C2 = some week number

    Enter this formula in D2 and copy across to G2:

    =IFERROR(INDEX($A2:$A26,MATCH($C2,$A2:$A26,0)+COLUMNS($D2:D2)),"")
    Last edited by Tony Valko; 05-18-2016 at 09:10 PM.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. How can I capture data that is (DAILY) input into another worksheet?
    By Byrd1969 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-25-2016, 01:14 PM
  2. capture data from input userform to another workbook
    By tofan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-23-2013, 10:14 AM
  3. Limiting results of capture input
    By dextras in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-29-2009, 05:35 PM
  4. Capture a range in input box prompt
    By jazbath in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-23-2007, 05:41 PM
  5. Capture user input into xldialog print
    By vpanang in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-27-2006, 04:45 PM
  6. Capture Input Date
    By Fraggs in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-04-2005, 07:28 AM
  7. Capture cell input date/time
    By Fraggs in forum Excel General
    Replies: 0
    Last Post: 02-03-2005, 12: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