+ Reply to Thread
Results 1 to 5 of 5

How to make every third line take data from a list one by one, visual attachment included.

  1. #1
    Registered User
    Join Date
    03-18-2014
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Question How to make every third line take data from a list one by one, visual attachment included.

    I'm writing a 3 line script for SQL in Excel.

    Every third line needs to take a number from the list (Excel Issue Ed.jpg.

    At the moment, if I drag the script down it only picks up every 3rd number down the column. How do I make it take every number down the list. See Attachment.

    I need to be able to drag to 3 lines (block of script) down as I need to apply it to about 500 different numbers.

    Any help would be much appreciated!
    Last edited by Petonium; 03-18-2014 at 09:40 PM.

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

    Re: How to make every third line take data from a list one by one, visual attachment inclu

    Using your posted example (BTW..we very much prefer excel files)
    This regular formula, copied down, begins the list of every-third-item
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    03-18-2014
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: How to make every third line take data from a list one by one, visual attachment inclu

    Thanks Ron

    How do I apply that into this file, each number must sit between the ' ' on each line.

    Than, must be able to just drag it down so a block of script is written for each VCHRNMBR.

    Kind Regards, you help is very much appreciated!
    Attached Files Attached Files

  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: How to make every third line take data from a list one by one, visual attachment inclu

    I attached an edited version of your file.
    These are the changes I made:
    • In Col_C, next to the VCHRNMBRs I put a list of VendorIDs (in case they change)
    These regular formulas begin the script-creation
    Please Login or Register  to view this content.
    Copy those formulas down as far as you need.

    E3:E11 will have these results:
    Please Login or Register  to view this content.
    Is that something you can work with?
    Last edited by Ron Coderre; 03-19-2014 at 09:10 AM.

  5. #5
    Registered User
    Join Date
    03-18-2014
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: How to make every third line take data from a list one by one, visual attachment inclu

    Ron that is exactly the formula I was looking for. Thankyou so much for developing that it has brought me much joy,

    Kindest Regards,

+ 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. Search Chart and enter data.. Detailed sample attachment included
    By AeroTheManiac in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-08-2014, 04:32 PM
  2. Replies: 2
    Last Post: 11-14-2012, 08:59 AM
  3. Replies: 3
    Last Post: 06-27-2012, 02:58 PM
  4. Replies: 1
    Last Post: 05-03-2011, 12:26 PM
  5. Sort by date **attachment included**
    By Kostanzas200 in forum Excel General
    Replies: 2
    Last Post: 01-25-2008, 12:17 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