+ Reply to Thread
Results 1 to 6 of 6

Formula to get Week offs

  1. #1
    Forum Contributor
    Join Date
    01-21-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    227

    Formula to get Week offs

    Hello All,

    I have a table like attached.

    Put in the if loop to get the week offs, wanted to know if there is any other formula that would cut down the length of the already written formula.

    =IF(AND(A2="",B2=""),$A$1&","&$B$1,IF(AND(B2="",C2=""),$B$1&","&$C$1,IF(AND(A2="",G2=""),$A$1&","&$G$1,IF(AND(C2="",D2=""),$C$1&","&$D$1,IF(AND(D2="",E2=""),$D$1&","&$E$1,IF(AND(E2="",F2=""),$E$1&","&$F$1,IF(AND(F2="",G2=""),$F$1&","&$G$1)))))))

    Thanks!Weekoffs.xlsx

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

    Re: Formula to get Week offs

    This is a little bit shorter but maybe easier to understand at a glance.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The enclosed file has a very short formula if you use the number of the day attended instead of just 1's. Sun =1, Mon=2, Tue=3 etc.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by newdoverman; 03-22-2014 at 11:46 AM.
    <---------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

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula to get Week offs

    Try this array formula

    Please Login or Register  to view this content.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Contributor
    Join Date
    01-21-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    227

    Re: Formula to get Week offs

    that was awesome trick newdoverman, replacing with numbers...

    thanks...

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula to get Week offs

    Thank you for the feedback!

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

    Re: Formula to get Week offs

    Thanks for the feedback.

+ 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. Biggest turn-offs
    By Andrew-R in forum The Water Cooler
    Replies: 125
    Last Post: 03-21-2012, 05:09 AM
  2. Replies: 11
    Last Post: 04-06-2011, 02:33 PM
  3. Back-Dating to get an earlier date which excludes Holidays and Week-Offs
    By e4excel in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 02-06-2009, 11:27 AM
  4. multiple cut offs, possible array solution?
    By JoshuaSQ in forum Excel General
    Replies: 2
    Last Post: 11-25-2008, 12:26 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