+ Reply to Thread
Results 1 to 17 of 17

Selecting data from every 4 th column or row....

  1. #1
    Registered User
    Join Date
    03-28-2014
    Location
    Dublin
    MS-Off Ver
    Excel 2003
    Posts
    33

    Selecting data from every 4 th column or row....

    Hi All
    I'm looking for help to solve the following:-
    I wish to select the data in every 4th colum i.e. A, D, H, L etc
    How can I do this ?
    Would really appreciate any help.
    Thanks

  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: Selecting data from every 4 th column or row....

    That series is NOT every 4th column.
    Assuming you meant: A, E, I, M, Q, U, Y
    This regular formula returns the sum of items in Row_1 for only those columns
    Formula: copy to clipboard
    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-28-2014
    Location
    Dublin
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Selecting data from every 4 th column or row....

    Brillant, thanks I'll try that....

  4. #4
    Registered User
    Join Date
    03-28-2014
    Location
    Dublin
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Selecting data from every 4 th column or row....

    Hi Ron........Sorry but I just wish to extract the data in each 4th column which is an email address, that formula won't work for that will it ?

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

    Re: Selecting data from every 4 th column or row....

    Well, now...you didn't say what you needed to do, so I just gave you a generic example.
    To pull specific emails from Row_1, try this:
    A2: the ordinal email to return....3

    This regular formula returns the 3rd email...located in I1:
    Please Login or Register  to view this content.
    Is that something you can work with?

  6. #6
    Registered User
    Join Date
    03-28-2014
    Location
    Dublin
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Selecting data from every 4 th column or row....

    Thanks Ron, much appreciate it.
    That formula will extract the email address in every 4th column ?

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

    Re: Selecting data from every 4 th column or row....

    Did you try it?
    I put these values in my test sheet:
    A1: 1
    E1: 10
    I1: 100
    M1: 1000

    When A2: 3
    the formula returns: 100

  8. #8
    Registered User
    Join Date
    03-28-2014
    Location
    Dublin
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Selecting data from every 4 th column or row....

    Hi Ron

    I just tried it, it didn't work, unless I'm doing it wrong.
    I typed the formula into A3....
    Basically all my data is going from A1 to BSQ, and every 4th one there is an email address which I'm trying to extract.

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

    Re: Selecting data from every 4 th column or row....

    Quote Originally Posted by Meger5 View Post
    Hi Ron

    I just tried it, it didn't work, unless I'm doing it wrong.
    I typed the formula into A3....
    Basically all my data is going from A1 to BSQ, and every 4th one there is an email address which I'm trying to extract.
    Open a blank workbook and build the example I posted. Remember that cell A2 is where you enter the item number you want to return.

    Better, yet...Open the attached example.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    03-28-2014
    Location
    Dublin
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Selecting data from every 4 th column or row....

    Unfortunately it still won't work.
    I just need to extract the email address from D1, H1, L1, P1 etc all the way to BSQ
    I'm really appreciative of your help.
    Any other suggestions ?

  11. #11
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Selecting data from every 4 th column or row....

    i think you mean this filled down
    =INDEX($1:$1,ROWS($A$1:A1)*4)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

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

    Re: Selecting data from every 4 th column or row....

    Time for you to post a sample workbook the exhibits what you want to do.

  13. #13
    Registered User
    Join Date
    03-28-2014
    Location
    Dublin
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Selecting data from every 4 th column or row....

    Hi Rob

    Here is a sample worksheet, its just the emails I want to extract, nothing else......
    testing.xlsx

  14. #14
    Registered User
    Join Date
    03-28-2014
    Location
    Dublin
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Selecting data from every 4 th column or row....

    Hi martindwilson

    Your suggestion worked in that it selected the first email address only, however there are lots more.....

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

    Re: Selecting data from every 4 th column or row....

    Please Login or Register  to view this content.
    Copy that formula down as far as you need.

  16. #16
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Selecting data from every 4 th column or row....

    Here is a similar problem that can be adapted to do what you want. It uses named ranges. The logic isn't too difficult to follow.
    http://www.excelforum.com/excel-gene...-one-list.html

    See the entry by Pmcca37 message #12
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  17. #17
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Selecting data from every 4 th column or row....

    well im surprised both what i posted an what Ron posted are the essentially the same thing ,both work fine
    Attached Files Attached Files

+ 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. [SOLVED] Selecting all data in specific columns without selecting adjacent column.
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-11-2014, 02:20 AM
  2. Selecting all data in specific columns without selecting adjacent column.
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2014, 03:50 PM
  3. Replies: 6
    Last Post: 07-11-2013, 04:10 PM
  4. Replies: 7
    Last Post: 08-25-2012, 01:25 PM
  5. Selecting Data in one Column automatically places data in another column.
    By SirDrums in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-04-2011, 01:38 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