+ Reply to Thread
Results 1 to 4 of 4

Multiple formula rows from single row of data, repeated for each row of data

  1. #1
    Registered User
    Join Date
    09-13-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    2

    Multiple formula rows from single row of data, repeated for each row of data

    I would like to take a single row of data, and use it in multiple formulas on the next sheet. For example, a single row of data on the first sheet might be used in four rows of formulas on sheet 2. What I would like to do is repeat the four formulas rows for each row on sheet 1. So, if I pasted 100 rows into sheet 1, 400 rows would be created on sheet 2 (100 rows of data times the four formulas). Thoughts on how to accomplish this?

    In the attached example, I would like to have the four formulas on sheet 2 (output) generated for rows found on sheet 1 (data).
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Multiple formula rows from single row of data, repeated for each row of data

    Welcome to the forum.
    You can use INDIRECT coupled with ROW to generate a row number which goes 2,2,2,2,3,3,3,3,4,4,...etc
    For example, put these in B2 and C2 of your 'Output' sheet:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The formula works by looking at the row number, subtracting 1 because we're starting on row 2, dividing that by 4 as you want to repeat the result four times, then rounding the result up, then finally adding 1 again because we want to start on row 2 for the answer as well. This is then put into the Indirect formula which converts into a cell reference using information in quotation marks and/or from a formula.
    For example, in Output!B3, this is what happens:
    ROW() = 3
    ROW()-1 = 2
    (ROW()-1)/4 = 0.5
    ROUNDUP((ROW()-1)/4,0) = 1
    ROUNDUP((ROW()-1)/4,0)+1 = 2
    INDIRECT("Data!B$"&ROUNDUP((ROW()-1)/4,0)+1) = INDIRECT("Data!B$"&2) = Data!B$2 = Bill

    I haven't done column A for you, as I suspect these examples were only to illustrate your question.

    Hope that's of some help.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Registered User
    Join Date
    09-13-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    2

    Re: Multiple formula rows from single row of data, repeated for each row of data

    Worked perfectly, thanks!

  4. #4
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Multiple formula rows from single row of data, repeated for each row of data

    You're welcome.

+ 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: 1
    Last Post: 04-06-2016, 07:02 AM
  2. Replies: 9
    Last Post: 11-11-2015, 08:19 PM
  3. Replies: 14
    Last Post: 08-20-2014, 05:46 AM
  4. Displaying data from multiple rows in single row based on data values
    By Marnus in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-24-2014, 03:57 PM
  5. Replies: 6
    Last Post: 02-19-2014, 10:25 AM
  6. Replies: 1
    Last Post: 03-18-2009, 04:18 PM
  7. [SOLVED] combining multiple rows of data into one single row of data
    By myersjl in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-30-2006, 05:45 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