+ Reply to Thread
Results 1 to 6 of 6

formula that pulls data from multiple cells and puts it in every 2 rows

  1. #1
    Forum Contributor
    Join Date
    09-11-2014
    Location
    Eugene, Oregon
    MS-Off Ver
    MS EXCEL 2010
    Posts
    210

    formula that pulls data from multiple cells and puts it in every 2 rows

    Alright so far I have not found anything that works and is efficient. I have attached a spreadsheet and within that spreadsheet there are two tabs (Sheet1, Data). Sheet 1 will have a formula for every cell in column D and it will pull the data from the Data tab in cells F,C,B,D (In that order) and place that data in Column D. The formula that is currently in there does exactly what I need but when I drag the formula down it takes way to long to process, it says Calculating: (8 Processor(s)) and has even crashed my computer. I have 16GB RAM and an Intel 8-core Haswell Extreme Edition processor (the i7-5960X) so I don't need any upgrading. . The idea is that I am working with debits and credits and this data will be fed into an Oracle system and what I need is that formula to pull that specific data into two rows (Debit row, Credit Row) so D2 and D3. so basically the formula in sheet 1 cell D2 will concatenate the data in F2,C2,B2,D2 from the data tab and then I want to drag that formula down and have it place the exact same data (F2,C2,B2,D2) into sheet 1 cell D3 as well. and then if I drag the formula down to cells D4 and D5 it will have concatenated the data from F3,C3,B3,D3 from the data tab into those cells. I would continue to drag as this data sheet will be filled daily with new data and is usually around 60-100 rows of new data every time. Thanks for any help
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: formula that pulls data from multiple cells and puts it in every 2 rows

    I think you'll find that this formula in D2 will be more efficient:

    =INDEX(Data!F:F,INT((ROWS($1:1)-1)/2)+2)&" "&INDEX(Data!C:C,INT((ROWS($1:1)-1)/2)+2)&" "&INDEX(Data!B:B,INT((ROWS($1:1)-1)/2)+2)&" "&INDEX(Data!D:D,INT((ROWS($1:1)-1)/2)+2)

    Copy it down as far as you need to.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    09-11-2014
    Location
    Eugene, Oregon
    MS-Off Ver
    MS EXCEL 2010
    Posts
    210

    Talking Re: formula that pulls data from multiple cells and puts it in every 2 rows

    Pete,

    This works beautifully! It achieves exactly what I need and does not try to kill my computer. Thank You!

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: formula that pulls data from multiple cells and puts it in every 2 rows

    In prior versions, I would have recommended the use of dynamic named ranges, so you wouldn't be referencing a million rows.

    Since you're using Excel 2010...you can take advantage of Excel Tables!
    • Select cell A1 on the Data sheet
    • Home.Format-as-table...follow the prompts for style and heading existence.
    Excel will name it Table1, but you can change that.

    Now you can use these formulas in Sheet1

    Please Login or Register  to view this content.
    The structured references in those formula refer to the fields in Table1 and ONLY reference that data. If the size of the table changes, the formulas will automatically absorb the changes and display the correct information.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  5. #5
    Forum Contributor
    Join Date
    09-11-2014
    Location
    Eugene, Oregon
    MS-Off Ver
    MS EXCEL 2010
    Posts
    210

    Re: formula that pulls data from multiple cells and puts it in every 2 rows

    This is why I love excel. I always learn something new. This works perfectly and I wasn't even aware I could do it this way. Thank you!

    ~Love this forum~

  6. #6
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: formula that pulls data from multiple cells and puts it in every 2 rows

    Glad you got something you can use!

    If that resolves your issue, please take a moment to mark this thread as SOLVED (from the Thread Tools menu)

+ 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. formula that pulls data from one cell and puts it in every 2 rows
    By cmorten82 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-16-2014, 06:48 PM
  2. Macro that pulls data like vlookup but for multiple instances
    By finance14 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2011, 10:53 PM
  3. Excel 2007 : Multiple Data Web Pulls
    By ScottKuh in forum Excel General
    Replies: 0
    Last Post: 01-31-2011, 11:47 PM
  4. macro that puts a formula in a group of cells then goes and values those cells
    By caliskier in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-31-2007, 02:00 AM
  5. Replies: 2
    Last Post: 03-20-2007, 05:58 AM

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