+ Reply to Thread
Results 1 to 8 of 8

Repeatable offset based on inputs

  1. #1
    Registered User
    Join Date
    11-05-2015
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2013 (365)
    Posts
    11

    Repeatable offset based on inputs

    I am trying to pull inputs from several tables in a certain order based on the inputs selected on a worksheet. For instance, if option 1 is selected then I need questions from table 1, 2, 3 and 4 to be listed in order. If option 2 is selected, I need questions from table 2, 4, 3, 1 to be listed in order. I have gotten my formula to work for pulling the first set of questions but I cannot figure out how to get it to move to the next table and start from the top of the next table. Is there a way to get excel to look at the first row of a new table when it has reached the bottom of another table?

    I have used row(offset(Questions!$A$1,1,0)) and can get the formula to pull the first line from the next table but it is static after that
    (so it goes Table 1 - Question 3, Question 4; Table 2 - Question 1, Question 1, etc. instead of T1 - Q3, Q4 T2 - Q1, Q2...)

    Any thoughts?

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Repeatable offset based on inputs

    can you post a sample sheet, a picture is worth a 1000 words (but please post an Excel sheet, not a picture of one - I'm too lazy to retype your data).

    Make sure there is enough data to demonstrate your need. Make sure your desired results are shown, mock them up manually if necessary. Remember to remove ALL confidential information first!!!

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    The paperclip icon
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    11-05-2015
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2013 (365)
    Posts
    11

    Re: Repeatable offset based on inputs

    Here is my sample data. I have defined a few of the formulas in name manager to assist with the writing and reading of formulas. Any help you can lend would be appreciated.

    Example Form.xlsx

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Repeatable offset based on inputs

    OMG!! I would never have got there in a million years, without that sheet. try this array formula in A19 and copy down.

    =INDEX(Sheet2!$A$2:$D$5,MOD((ROWS($1:1)-1),4)+1,MATCH(OFFSET($B$12,INT((ROWS($1:1)-1)/4),,,),Sheet2!$A$1:$D$1,0))

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Repeatable offset based on inputs

    Here's the file back, BtW...
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-05-2015
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2013 (365)
    Posts
    11

    Re: Repeatable offset based on inputs

    GLENN!! I owe you a pint, my friend. This is brilliant! I plugged it in my file and it works great. It looks like if the tables are different sizes I might have to deal with some blank space, but that is OK...it will actually make the next part a little easier to do. As you can see I've been pretty deep into building these formulas and this was something that I just couldn't wrap my brain around. Thank you so much!

  7. #7
    Registered User
    Join Date
    11-05-2015
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2013 (365)
    Posts
    11

    Re: Repeatable offset based on inputs

    GLENN!! I owe you a pint, my friend. This is brilliant! I plugged it in my file and it works great. It looks like if the tables are different sizes I might have to deal with some blank space, but that is OK...it will actually make the next part a little easier to do. As you can see I've been pretty deep into building these formulas and this was something that I just couldn't wrap my brain around. Thank you so much!

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Repeatable offset based on inputs

    You're welcome. Yes, there are some pretty fierce-looking formulae on the go there. A second pair of eyes sometimes sees things afresh. Even tired old(ish) eyes like mine!! Thanks for the Rep.

+ 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. Min repeatable value with min number of data points
    By MattVoz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-20-2015, 01:01 PM
  2. repeatable problem with workbook_open
    By vientito in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-27-2014, 03:09 PM
  3. [SOLVED] unique and repeatable footer, possible?
    By cat3appr in forum Excel General
    Replies: 6
    Last Post: 11-12-2013, 09:39 AM
  4. Duplicating Graphs for Repeatable Worksheets
    By cgermanjr in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-22-2013, 06:08 AM
  5. A formula to give most repeatable number in a row
    By LeapingLizard in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-28-2013, 01:25 PM
  6. Same ROWS Repeatable in Footer?
    By N1ckster in forum Excel General
    Replies: 0
    Last Post: 01-13-2013, 02:39 PM
  7. [SOLVED] How can i filter all repeatable 3 number combinations ?
    By Apocalypse in forum Excel General
    Replies: 9
    Last Post: 05-27-2012, 05:24 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