+ Reply to Thread
Results 1 to 14 of 14

Skip Blank Cells

  1. #1
    Registered User
    Join Date
    07-15-2015
    Location
    AZ
    MS-Off Ver
    2010
    Posts
    12

    Skip Blank Cells

    I was trying to figure this out on my own from other posts as it seems that it is a common question. Sadly I was not able to...

    I have three shifts for volunteers (1,2,3) which are assgined on the "full contact info" tab. I would like the Shift Schedule tab to populate only those that meet the criteria and not have blank cells. This is the formula I am working with now:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by gauchey; 08-12-2015 at 02:40 PM.

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Skip Blank Cells

    Try this in B6 within the Shift Schedule worksheet and drag across/down:

    Please Login or Register  to view this content.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Registered User
    Join Date
    07-15-2015
    Location
    AZ
    MS-Off Ver
    2010
    Posts
    12

    Re: Skip Blank Cells

    Mcmahbot thank you for your answer. I have tried a couple of times and it still seems to leave blank cells. Would you mind uploading a document so I can see it in Excel?

  4. #4
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Skip Blank Cells

    Sorry, I believe I may have interpreted your initial question incorrectly. If what you wish is to have the different shift schedules entered sequentially, you can try this formula entered as an array formula with CTRL+SHIFT+ENTER in B6:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-15-2015
    Location
    AZ
    MS-Off Ver
    2010
    Posts
    12

    Re: Skip Blank Cells

    Mcmahobt thanks for your help. I played around with the formula that you sent and got this to work:

    Please Login or Register  to view this content.
    Sorry to be dense, but when I move the formula to C6 how do change it to look for 2 on "full contact info" (ie shift #2)?

  6. #6
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Skip Blank Cells

    I don't believe the code that you are proposing will work as you currently have it written.

    As far as my code goes, I am assuming by "Shift 1, Shift 2, Shift 3" you are referring to the 8am to 11am, 10am to 1pm, and 12pm to 3pm shifts respectively. If this is correct, dragging over/down the formula should pickup the change in rows as well as shifts automatically.

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Skip Blank Cells

    Try this...

    Data Range
    A
    B
    C
    D
    E
    4
    Shift Schedule
    5
    ----------------
    8 am to 11 am
    10 am to 1 pm
    12pm to 3pm
    ----------------
    6
    1
    2
    3
    7
    1
    Jane smith
    Joe Smith
    8
    2
    Joe doe
    9
    3
    10
    4
    11
    5


    Add a row to show the actual shift number.

    This array formula** entered in B7:

    =IFERROR(INDEX('Full contact info'!$A:$A,SMALL(IF('Full contact info'!$H$2:$H$4=B$6,ROW('Full contact info'!H$2:H$4)),ROWS(B$7:B7))),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy across to D7 then down as needed.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  8. #8
    Registered User
    Join Date
    07-15-2015
    Location
    AZ
    MS-Off Ver
    2010
    Posts
    12

    Re: Skip Blank Cells

    Mcmahobt perhaps my question is, how to do I extend the formula down to include through row thirty, or beyond, on the "full contact info sheet"?

    I entered it again and it works as you described. But it is only entering the first three entries.

  9. #9
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Skip Blank Cells

    Oh, that should be an easy fix. Just make sure that your array formula ranges are consistent, and that should be all. That is, if you want to include row thirty (within your Full Contact Info worksheet), your formula would look like this:

    Please Login or Register  to view this content.
    Note that it would be better to fill through more rows than you would expect. This means that if your max number of volunteers would be around somewhere of 250, then change the range to go through row 300, and the IFERROR will take care of the value error.

  10. #10
    Registered User
    Join Date
    07-15-2015
    Location
    AZ
    MS-Off Ver
    2010
    Posts
    12

    Re: Skip Blank Cells

    Tony, thanks for jumping in on the conversation. I am having the same problem with your formula as well. It does work. But it is only entering the first three names from "full contact info".

  11. #11
    Registered User
    Join Date
    07-15-2015
    Location
    AZ
    MS-Off Ver
    2010
    Posts
    12

    Re: Skip Blank Cells

    Mcmahobt, thank you! It worked perfectly

  12. #12
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Skip Blank Cells

    That's because in your sample file there are only 3 names entered on the Full Contact Info sheet.

    If your real file has more data then just extend the highlighted ranges to suit:

    =IFERROR(INDEX('Full contact info'!$A:$A,SMALL(IF('Full contact info'!$H$2:$H$4=B$6,ROW('Full contact info'!H$2:H$4)),ROWS(B$7:B7))),"")

  13. #13
    Registered User
    Join Date
    07-15-2015
    Location
    AZ
    MS-Off Ver
    2010
    Posts
    12

    Re: Skip Blank Cells

    One more question, I was wondering why CTRL+ SHIFT+ ENTER is required when entering this formulas?
    Last edited by gauchey; 08-14-2015 at 04:23 PM.

  14. #14
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Skip Blank Cells

    Because it's an array formula.

    See this...

    http://www.cpearson.com/Excel/ArrayFormulas.aspx

+ 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: 2
    Last Post: 05-21-2014, 02:11 PM
  2. Looking to create a macro that will skip blank cells in a column, find data cells
    By crayzwalz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-30-2013, 09:01 AM
  3. Skip the blank cells
    By Dritir in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-22-2013, 05:15 PM
  4. How to Skip blank cells SEE PIC
    By zit1343 in forum Excel General
    Replies: 13
    Last Post: 04-12-2012, 05:43 PM
  5. Skip blank cells
    By kenjiventurina in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-30-2012, 02:52 AM
  6. skip blank cells
    By Seroleh in forum Excel General
    Replies: 16
    Last Post: 05-28-2009, 02:21 AM
  7. Skip Blank Cells
    By belly0fdesire in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-08-2006, 02:21 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