+ Reply to Thread
Results 1 to 9 of 9

Selecting Every 3rd Cell In A Formula

  1. #1
    Registered User
    Join Date
    09-14-2013
    Location
    Southern California
    MS-Off Ver
    Excel 2010
    Posts
    4

    Selecting Every 3rd Cell In A Formula

    I am using the following formula, but I don't want a set of cells, I want every 3rd cell - $B$3, $B$6, $B$6, etc. How would I do this?

    =IF(E2="","",IF(COUNTIF('Roster'!$B$3:B$80,E2)>-1,"",ROW()-1))

    Thanks,
    Craig

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Selecting Every 3rd Cell In A Formula

    Hi Craig and welcome to the forum.

    If you don't mind me asking, I'm a little confused about some of the logic in your formula:

    You are using a COUNTIF statement on a range of cells with the condition >-1. However, since the minimum return for any COUNTIF is 0, you're effectively achieving nothing with this condition. What exactly did you intend with this part of your formula?

    (edit: this section deleted - reason - incorrect statement)

    Regards
    Last edited by XOR LX; 09-15-2013 at 01:35 PM.
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    09-14-2013
    Location
    Southern California
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Selecting Every 3rd Cell In A Formula

    Attached is the file. Under each day, I have a drop down list. I would like the list under the same day to not display a selection if previously used for that day. For example, if 4501A is on Monday (line 3), then on line 6 under Monday 4501A would not be available. 4501A can be available across for each day of the week, but only once per day.

    Craig
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Selecting Every 3rd Cell In A Formula

    not sure how to implement this, but you can use the MOD function combined with the ROW function: only count value if MOD(ROW(...),3) = 0
    When I say semicolon, u say comma!

  5. #5
    Registered User
    Join Date
    09-14-2013
    Location
    Southern California
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Selecting Every 3rd Cell In A Formula

    I was using information from another thread that I located.

    HTML Code: 

  6. #6
    Registered User
    Join Date
    09-14-2013
    Location
    Southern California
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Selecting Every 3rd Cell In A Formula

    How would I use this in my file?


    Quote Originally Posted by L-Drr View Post
    not sure how to implement this, but you can use the MOD function combined with the ROW function: only count value if MOD(ROW(...),3) = 0

  7. #7
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Selecting Every 3rd Cell In A Formula

    Quote Originally Posted by L-Drr View Post
    not sure how to implement this
    Sorry this meant "I don't know"
    But I'm sure someone else could step in here...

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

    Re: Selecting Every 3rd Cell In A Formula

    "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

  9. #9
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: Selecting Every 3rd Cell In A Formula

    Created Named Ranges for weekdays only:

    Monday := "='bens lookup table'!$B$3:$B$82"

    For the morphing list I used: "=IF(ISERROR(MATCH('bens lookup table'!$A3,Roster!B:B,0)),$A3,"")"

    For Data Validation Formula (Monday): =INDIRECT(B$3)
    Attached Files Attached Files
    Ben Van Johnson

+ 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] script to selecting correct sheet calculated via cell formula
    By Kramxel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2013, 09:42 AM
  2. [SOLVED] Formula for selecting values that have YES in a cell
    By jantland in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-11-2013, 02:18 PM
  3. [SOLVED] Formula for selecting value in cell using multiple criteria?
    By professorcrabb in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-11-2013, 08:19 AM
  4. Replies: 2
    Last Post: 06-03-2012, 03:33 PM
  5. [SOLVED] How to select cell to the right of active cell without selecting the activecell aswell?
    By Emmaly in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2012, 07:22 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