+ Reply to Thread
Results 1 to 4 of 4

Formula for Week 1 and 2 rotation including cells that are blanks for Holidays

  1. #1
    Registered User
    Join Date
    08-07-2015
    Location
    Glasgow
    MS-Off Ver
    2010
    Posts
    2

    Smile Formula for Week 1 and 2 rotation including cells that are blanks for Holidays

    Hi,

    I am doing a Data Merge from Excel to InDesign for a School Diary.
    I have all the dates etc in already and the merge works fine.
    I have a Formula for Week 1 & 2. For example if the previous week is a Week 1 then the following week is a Week 2 and vice versa. I have used an IF formula for this and that works out fine. =IF(B2=1,2,1)
    However what i want to do is expand the formula so that if i put a blank cell in (Like remove when a School is on Holiday), the formula skips the blank cell until it reaches a cell with a value and continues counting from there.

    For now it just repeats Week 1 if there is a blank and the first value before is a Week 1. If it is a Week 2 then it works for some reason.

    Does anyone know or have any ideas?

    Thank you in advance
    John W
    Screen Shot 2015-08-07 at 12.24.08.png

  2. #2
    Registered User
    Join Date
    08-07-2015
    Location
    Glasgow
    MS-Off Ver
    2010
    Posts
    2

    Re: Formula for Week 1 and 2 rotation including cells that are blanks for Holidays

    Anybody please?

  3. #3
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Formula for Week 1 and 2 rotation including cells that are blanks for Holidays

    Hi,

    Can you post a sample excel file rather than image please? See the URL below for help on uploading a file.

    http://www.excelforum.com/members/da...ch-a-file.html

  4. #4
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Formula for Week 1 and 2 rotation including cells that are blanks for Holidays

    why not

    if (b2="","",if(b2=1,2,1))

    you will need to copy the formula down then manually override the formula and put the blank in for school holidays where applicable and again put the 1 in when the school season starts again
    Happy with my advice? Click on the * reputation button below

+ 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. Question: Conditional Formula including sum, blanks, and multiple cells
    By unfmarine in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-08-2015, 02:01 PM
  2. [SOLVED] simple 6-day workweek (including holidays)
    By opopanax666 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-23-2013, 06:16 AM
  3. List Dates Excluding Holidays but Including weekends
    By GuyHudson in forum Excel General
    Replies: 6
    Last Post: 09-22-2010, 05:58 AM
  4. Future date with six day week including holidays
    By ajitexcel in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-26-2010, 09:48 AM
  5. Networkdays in VBA including holidays
    By kingdt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-13-2007, 03:14 PM
  6. Business Days Including Holidays
    By Dmorri254 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-03-2006, 07:55 PM
  7. [SOLVED] Re: Dates not including weekends and holidays
    By Ron de Bruin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-13-2005, 06:05 PM

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